Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I am able to create a table using ADOX, but not able to change the property of each column. By default all the columns have Required=Yes. but I want to change it to No. Please let me know how to do?
Note: I think as a programmer not as a human, so use my answer at your will
Posted

Why are you useing ADOX for that?

 

ADOX is COM and you should avoid that.

 

Just use a "CREATE TABLE ( ID IDENTITY(1,1), Text VarChar(100), NotNullText VarChar(100) NOT NULL);"

 

And send this via a OleDbCommand.

Posted
Why are you useing ADOX for that?

 

ADOX is COM and you should avoid that.

 

Just use a "CREATE TABLE ( ID IDENTITY(1,1), Text VarChar(100), NotNullText VarChar(100) NOT NULL);"

 

And send this via a OleDbCommand.

 

If i use OleDB then I cannot create Columns with memo and ole datatype.

Note: I think as a programmer not as a human, so use my answer at your will
Posted

it worked...

 

Actually it worked using Create Table .... and oledb for now. I will test for some time and confirm.

 

Data types:

1. OLE Object = Binary

2. Double = Number

3. Text = text

4. Memo = Memo

5. Yes/No = Bit

rest is same.

Note: I think as a programmer not as a human, so use my answer at your will

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