3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by __avd
0

Urgent sounds unfriendly. Being rude is not the best type of first post. Read the rules, learn how to ask a question.

Read forum rulesrules and homework policy here at Daniweb.

0

Also, some more details may be useful!
To create a database at run-time, you can't be running access, as it is a file-open type of application. You would need to have an access database containing the code too then create ANOTHER database, unless you are talking about writing a plug-in for access itself.
What are you trying to acheive from / by this?

0

i'm doing project in vb.net a window application i want to create a database and tables when application loads and ready to use

0

>how to create table in that using programme

Dim Cn as New OleDBConnection
Dim Cmd as New OleDBCommand

cn.ConnectionString="put_db_connection_string_of_database_you just created"
cmd.Connection=Cn
cmd.CommandText="Create table TestTable (col1 int primary key, col2 text(40))"
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.