i checked this sql code with swl enterprise manager and it says "Syntax check successful!". But if i run my code it says unhandled exception, system error on the executenonquery line...
actually i want to use "create table if not exists", but if i check the syntax from this command it wont accept the "if not exists" part...
can someone help me?
thx in advance.
C#:
string createtbl = "CREATE TABLE typicals (typical varchar(200),typicalnr int);";
SqlCommand myinsertcommand = new SqlCommand(createtbl, mycon);
myinsertcommand.ExecuteNonQuery();
actually i want to use "create table if not exists", but if i check the syntax from this command it wont accept the "if not exists" part...
can someone help me?
thx in advance.