SQL Server 2008 R2 Data Types

  • Kenneth.Fisher

    SSCoach

    Points: 19542

    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]

  • jeffrey.henninger

    SSC Journeyman

    Points: 82

    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!

  • roger.plowman

    SSChampion

    Points: 10140

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

  • Jeff York-176691

    SSC-Addicted

    Points: 427

    Nice work, thank you!

  • Mike Dougherty-384281

    SSCrazy

    Points: 2764

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

  • simon_kingston

    Valued Member

    Points: 51

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

  • Kenneth.Fisher

    SSCoach

    Points: 19542

    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]

  • Jagadish Kumar Punnapu

    SSChasing Mays

    Points: 645

    Thanks for sharing this info Kenneth...

  • Possinator

    Hall of Fame

    Points: 3402

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

    SSChampion

    Points: 10517

    Very nice. Thanks for sharing this.

  • Neha05

    Default port

    Points: 1494

    Thanks Kenneth for sharing 🙂

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply