Viewing 15 posts - 1 through 15 (of 16 total)
Xml is indexable with the restriction that it is the only key column. See https://docs.microsoft.com/en-us/sql/relational-databases/sql-server-index-design-guide?view=sql-server-ver15.
If the question was worded as "Which of these data types are not allowed...
August 9, 2021 at 1:25 pm
GETDATE() returns the datetime of the server executed against. The AT TIME ZONE clause tells SQL that the datetime returned from GETDATE() is at the time zone US Mountain Standard...
March 31, 2020 at 1:56 pm
Technically, none of the choices are correct. Datetimeoffset is 34 characters in length. The length of @C truncates the value returned and results in "2018-09-03 11:55:34." Changing the...
September 29, 2018 at 6:57 pm
The query provided to detect heaps will also return table valued functions. The query below will return only user tables that are heaps.
SELECT
OBJECT_SCHEMA_NAME(i.object_id) AS SchemaName
, OBJECT_NAME(i.object_id) AS TableName
, i.*
FROM sys.indexes i
INNER...
February 16, 2016 at 7:07 pm
I have moved the resource database in previous version of SQL Server. Although, I do not recall if it was 2005 or 2008. I found an interesting quirk...
December 2, 2015 at 12:38 pm
Without knowing the answer or what the query store is, this question is guessable with a solid understanding of the system databases. But, it got me to thinking. ...
July 30, 2015 at 7:57 am
Sean Lange (6/4/2015)
Robert Eder (6/4/2015)
June 4, 2015 at 9:50 am
The problem with script A is the constraint name will be system generated. Script B is also written to use a system generated name. It is best practice...
June 4, 2015 at 9:29 am
I use BEGIN and END for readability. Though, I have been doing this for years, it was only recently that I was burnt. I passed the stored procedure...
May 14, 2015 at 8:33 am
There is a saying that locks keep honest people honest. The same holds true for any security scheme. Yes, a rogue administrator could get into SQL through this...
February 9, 2010 at 7:41 am
It is worth mentioning that after a repair with data loss, not only is the corrupted record lost, but the whole data page. The good news is that with...
February 8, 2010 at 7:45 am
Each programming language has its advantages and disadvantages. Problems are found with a programming language, so another one is created. To a large degree, ones personal opinion about...
November 13, 2009 at 8:33 am
Sometimes the problem is that management does not want to hear that you don't know how to do something. I have been faced with this several times. On...
October 15, 2009 at 7:20 am
In my 18 year career, I have not been fortunate enough to have my employers invest in me through training. The majority of my training has come from my...
October 9, 2009 at 7:38 pm
Microsoft has an outstanding recommendation for the maximum password age, a multiple of seven. The reasoning behind this is simple: your password will never expire on a weekend. ...
August 28, 2009 at 4:56 am
Viewing 15 posts - 1 through 15 (of 16 total)