Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need create new table in sql database using vb.net
table name is "EM" and
1st Column name is "no" and type is "integer"
2nd column is name and type is "text"
pls lps help me guyss... plss
Posted
Updated 29-Jan-12 22:06pm
v2

 
Share this answer
 
you can run create table statement by command object from your code as you do to select/insert/update data in database

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

sqlcommand.executenonquery()
 
Share this answer
 
v2
Comments
Amal anjula 30-Jan-12 9:51am    
tax u lot.its worked

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