SQL Server 2008 R2 Data Types

  • 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]

  • 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!

  • Very, very helpful. Maybe Microsoft should have a set of tables like this one at the front of the BOL! 🙂

  • Nice work, thank you!

  • "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.

  • Very helpful! Thanks Kenneth. One minor spelling correction - "spacial" should be "spatial".

  • 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]

  • Thanks for sharing this info Kenneth...

  • Thanks! Very helpful. I made myself a Word version. It's attached if anyone wants it.

    [font="Courier New"]Looking for a Deadlock Victim Support Group..[/font]
  • Very nice. Thanks for sharing this.

  • 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