Pushing database changes needn't be hard work with SQL Compare
Getting Started with Adobe After Effects - Part 6: Motion Blur
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.
Submit a Tip
Loading
vanne040
83 · 2% · 657

Learned it

Liked it

Knew it

Did you learn something today? Share It!

SQL Server - Finding the meaning of xtype in syscolumns

Jan 27 2012 12:37PM by vanne040   Edit
I came across a scenario, where I had to change the data in all the datatime columns with in a database. I made use of "xtype" column and wanted to share it. The system table which stores this information is systypes.
SELECT xtype, name FROM systypes 
/* output
34 image
35 text
36 uniqueidentifier
48 tinyint
52 smallint
56 int
*/
From 2005 onwards, MS recommends to use the SQL Server system views instead.
select SYSTEM_type_id,name from sys.types


1
Liked
1
Learned
0
Knew









Submit
Send to my friends
Subscribe to vanne040

     

Subscribe to Notifications

Your Comment


Sign Up or Login to post a comment.

Managed Windows Shared Hosting by OrcsWeb

Copyright © Rivera Informatic Private Ltd.