RE: [PHP-DB] MSSQL Identity Column

From: Date: Fri, 13 Apr 2001 13:45:20 +0000
Subject: RE: [PHP-DB] MSSQL Identity Column
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8540@lists.php.net to get a copy of this message
I don't have the full answer off hand, but I do remember that if you do: sp_columns your_table_name One of the columns of that result is a numeric value that indicates whether the column is a primary key. I think I had to create a test table with a primary key to figure out what the column and number was. HTH, matt -----Original Message----- Hello, I need a way to tell if a specified column is an identity column or not. All PHP seems to be able to tell me is the name, type and size of the field. any help would be appreciated thanks, >-------------------------------------------------------------------------< Sean Finkel

« previous php.db (#8540) next »