Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
when i run the application in visual studio 2010, the system throws a error i.e., unable start a programe http://localhost:
give the solutions to this problem
Posted
Updated 13-Mar-11 18:45pm
v2

Use the Sql Create Table[^] statement:
SqlCommand com = new SqlCommand("CREATE TABLE MyTableName(" +
                                "iD int NOT NULL, " +
                                "name nchar(10) NOT NULL)", con);
com.ExecuteNonQuery();
 
Share this answer
 
Comments
Ryan Zahra 10-Mar-11 5:29am    
My 5
 
Share this answer
 
Comments
kumarvits2 10-Mar-11 5:16am    
Thank YOU but i need every month create a new table, Is it possiable ?

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