Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've read and now can create tables. Thanks!!

But here I got error when I try the following code to create database:

==========================

OleDbConnection conn1 = new OleDbConnection();

conn1.Open();

 

string cmdstr = "create database MyDatabase";

OleDbCommand cmd = new OleDbCommand(cmdstr, conn1);

cmd.ExecuteNonQuery();

====================================

 

Obviously there are several problems in there. But where are they??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...