Results 1 to 1 of 1
-
05-28-2010, 10:33 AM #1
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,175
- Thanks
- 744
- Thanked 699 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
How to Check if a Column is Identity - MS SQL
How to Check if a Column is Identity in MS SQL
SELECT name, is_identity
FROM sys.columns
WHERE [object_id] = object_id('MyTable')
This will list all the table column names with is_identity column value set to 1 if the column is identity.Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
Similar Threads
-
Frame height problem
By hilda_mateiu in forum HTML / DHTMLReplies: 14Last Post: 05-16-2012, 03:15 AM -
MS SQL Code Snippest
By manik in forum DatabasesReplies: 5Last Post: 04-05-2011, 02:08 AM -
Set Identity Insert On Off - Microsoft SQL
By manik in forum DatabasesReplies: 3Last Post: 04-05-2011, 02:08 AM -
Variable Column Name - MS SQL
By manik in forum DatabasesReplies: 3Last Post: 12-13-2010, 01:05 PM -
Data Import Export with Microsoft SQL DTS
By manik in forum DatabasesReplies: 1Last Post: 06-26-2009, 09:05 AM


Reply With Quote

