Click here to Skip to main content
15,886,659 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create table in database using this code

sqlcommand.commandtext="create table EM(no int,text
varchar);"
sqlcommand.executenonquery() 


but i cant create primary key as no. please help me. im using vb.net and.sql server. thanks
Posted
Updated 3-Feb-12 16:15pm
v2
Comments
Rajesh Anuhya 3-Feb-12 22:15pm    
Edited: Code Tags added
--RA

1 solution

 
Share this answer
 
Comments
Amal anjula 3-Feb-12 22:37pm    
thanks u lot frd. i slvd problem. tax lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900