Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 27th, 2006, 10:01 PM
F00K33 F00K33 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 2 F00K33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 15 sec
Reputation Power: 0
Please..help, error in open connection

hi all,

i've just installed firebird 1.53 and was trying to use it in my vb.net application. i've downloaded and installed FirebirdNetProvider 1.71

however i cannot connect to the database, when i try to open the connection, an exception was thrown:

No message for error code 335544344 found.
No message for error code 335544734 found.


it failed with or without connectionstringbuilder.

Dim fcb As New FbConnectionStringBuilder
fcb.DataSource = "localhost"
fcb.Database = "sample.fdb"
fcb.UserID = "SYSDBA"
fcb.Password = "masterkey"
'fcb.Pooling = False
cn.ConnectionString = fcb.ToString

Try
cn.Open()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try


how to fix this problem?

Thanks.

Wei Fuk

Reply With Quote
  #2  
Old January 28th, 2006, 04:28 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,808 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 21 h 29 m 33 sec
Reputation Power: 278
Mhhh, sorry, the only help I can give you is the list of firebird error codes (pdf).

Reply With Quote
  #3  
Old January 28th, 2006, 04:29 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,808 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 21 h 29 m 33 sec
Reputation Power: 278
And this result from Google (same problem as you)

Reply With Quote
  #4  
Old January 31st, 2006, 03:13 PM
F00K33 F00K33 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 2 F00K33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 15 sec
Reputation Power: 0
i found the solution: finally..

Dim fcb As New FbConnectionStringBuilder
fcb.DataSource = "localhost"
fcb.Database = "localhost:sample.fdb"
fcb.UserID = "SYSDBA"
fcb.Password = "masterkey"
'fcb.Pooling = False
cn.ConnectionString = fcb.ToString

and note that if the connectionstring is written in one line, the text "User ID" must be type with space, a "UserID" won't work.

dim str as string = "DataSource=localhost;Database = localhost:\sample.gdb;User ID=SYSDBA;Password=masterkey;Dialect=3"

cn.connectionstring = str

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Please..help, error in open connection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway