Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27196

int identity the current AUTO_INCREMENT

$
0
0
I am working in .net 4.0 and Visual Basic 2010 Express.

I have tried this for the old AUTO_INCREMENT:

Code:

ALTER TABLE table1 ALTER COLUMN col1 int identity(1,1) NOT NULL;
Code:

CREATE TABLE table2 (col1 int identity(1,1) NOT NULL, col2 varchar(25) NOT NULL, col3 varchar(25) NOT NULL)
Neither of these work.

There is an error with "identity".

Viewing all articles
Browse latest Browse all 27196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>