Objects must implement IConvertible

G

Gav

Hi All,

I'm trying to create a table in a sql database.

When I run
ExecuteNonQuery();

I get an error "Objects must implement IConvertible".

I put the same statement in a textbox, after getting the error I copied the
statement into SQL's query analyser and the command works fine.

Anyone know where I might be going wrong?

Thanks
Gav
 
G

Gav

I'm sorry it really was a silly mistake of my part I just didn't spot it.

I was creating parameters in the command too early. (there are parameters
for the insert which comes next, and I was setting the parameters before I
called the CREATE TABLE command!! - really must take more care in my coding
before scratching my head)

Thanks anyway
Gav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top