Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I want to create a table in my database, and also create a field in it named "Names" which is text, and also set a primary key named ID.

So I use this string connection:

 

"CREATE TABLE '" + TableTextBoxX.Text + "' (ID INT PRIMARY KEY, Names Text(255))"

 

But I get syntax error!

I played around with that but could not find how it should be correct!

Please help me:(

Posted

PlausiblyDamp really thank you!

you are great!

It works now, just one problem is that it does not create the primary key for my table I want ID to be primary key.

Where I am wrong? :confused:

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...