I haven’t used firebird in a long time.  I can’t seem to get create a table
on the fly I get a -1 every time.

I create my table like this.
FbConnectionStringBuilder cs = new FbConnectionStringBuilder ();           
cs.ServerType = 1;
cs.Database = FBFile;
FbConnection.CreateDatabase (cs.ToString() );

Open the DB with
bConnectionStringBuilder cs = new FbConnectionStringBuilder ();         
cs.ServerType = 1;
cs.Database = FBFile;
con = new FbConnection (cs.ToString ());
con.Open ();

Create the table like so.
FbCommand command = new FbCommand ("CREATE TABLE chcdb (" +
"server VARCHAR(100), loginName VARCHAR(25), pword VARCHAR(100) )", con);
int rc = command.ExecuteNonQuery ();


The return code is -1 everytime.  Anyone see anything glaring… Again please
excuse me I am very rusty with this DB.

Thanks

-- 
View this message in context: 
http://www.nabble.com/Assistance-getting-table-created-programmatically-tp20014251p20014251.html
Sent from the firebird-net-provider mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to