Subject | Can't create embedded db programatically... |
---|---|
Author | WATYF |
Post date | 2005-07-18T17:30:40Z |
Hi there. A while ago I was using fbembed in my app, but I had
abandoned it for various reason. I'm now trying to reimplement fbembed
as my backend db, but I'm having a problem. I can't create the db. It
errors out every time. Here's my code:
Dim ht as new Hashtable
ht.Add("User", "myuser")
ht.Add("Password", "mypass")
ht.Add("Database", "myfdb.db")
ht.Add("ServerType", 1)
FbConnection.CreateDatabase(ht)
During the createdatabase method, it throws an exception. Here's the
message:
"No message for code 335544324 found"
I looked up that message number, and it means:
"invalid database handle (no active connection)"
It also creates a file called firebird.log that contains this error
message:
"WNET/wnet_error: CreateFile errno = 2"
I obviously had this working before, but it's been a while since I
switched away from fb, so I don't have the original code I used.
Anyone know what the problem might be?
WATYF
abandoned it for various reason. I'm now trying to reimplement fbembed
as my backend db, but I'm having a problem. I can't create the db. It
errors out every time. Here's my code:
Dim ht as new Hashtable
ht.Add("User", "myuser")
ht.Add("Password", "mypass")
ht.Add("Database", "myfdb.db")
ht.Add("ServerType", 1)
FbConnection.CreateDatabase(ht)
During the createdatabase method, it throws an exception. Here's the
message:
"No message for code 335544324 found"
I looked up that message number, and it means:
"invalid database handle (no active connection)"
It also creates a file called firebird.log that contains this error
message:
"WNET/wnet_error: CreateFile errno = 2"
I obviously had this working before, but it's been a while since I
switched away from fb, so I don't have the original code I used.
Anyone know what the problem might be?
WATYF