Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i have problem which for many of you can be funny, but i'm really beginner.
I'm using Visual Basic 2010 express, and i would like to add function that after clicking button, application will create a new table in database which is connected to application. i tried to do that and i received error that "create" is not supported. Have anyone idea how to do that?
Any help will be appreciated.

Best Regards
Adam
Posted
Comments
Kschuler 8-Nov-11 16:56pm    
Can you please post the code you used to try to create a table? And let us know what database you are using? If I were going to do this, I'd use an SQL create table statement and run it non query with a command object.

1 solution

Hi Adam,
This is my first message here and I am not an expert either. Also, I'm not sure if it is acceptable to post a url but you could look at this website..
http://www.eggheadcafe.com/community/csharp/2/10044657/create-table-at-runtime.aspx[^]

Anyway, if it still gives create not supported error, I guess it is related to permissions. I hope it helps..

Burak
 
Share this answer
 

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