February 22, 2012 at 12:01 am
Comments posted to this topic are about the item SQL Server 2008 R2 Data Types
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
February 22, 2012 at 6:12 am
Good information. You forgot to mention the time component of the Datetime data type (00:00:00 through 23:59:59.997). Otherwise, thanks for sharing!
February 22, 2012 at 6:59 am
Very, very helpful. Maybe Microsoft should have a set of tables like this one at the front of the BOL! 🙂
February 22, 2012 at 7:28 am
Nice work, thank you!
February 22, 2012 at 7:48 am
"A column of type sql_variant may contain rows of different data types."
fwiw: I parse that sentence at least two ways. I believe the correct meaning is that the field value on any particular row may contain a different data type than some other row.
It might also be taken as: the sql_variant type is something similar to an array that could contain rows of data. I'm sure there are a few programmers out there who would like to store a complex object like an array in a single row.
My assumption is that most DBA here simply avoid this type. I'm curious to know how/why this type is being used in the real world - and whether it can be indexed.
February 22, 2012 at 8:23 am
Very helpful! Thanks Kenneth. One minor spelling correction - "spacial" should be "spatial".
February 22, 2012 at 10:46 am
Thanks for all of the great comments. I'm working on having the one spelling error corrected. I should also point out (if anyone didn't already notice) that the data type names have links to the BOL article about that particular data type.
I'll probably end up doing one of these for 2012 and I'll make sure to add in all of the corrections mentioned here.
Thanks
Kenneth
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
February 22, 2012 at 5:31 pm
Thanks for sharing this info Kenneth...
February 23, 2012 at 3:46 pm
Thanks! Very helpful. I made myself a Word version. It's attached if anyone wants it.
February 24, 2012 at 9:39 am
Very nice. Thanks for sharing this.
August 3, 2012 at 5:55 am
Thanks Kenneth for sharing 🙂
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply