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 April 30th, 2006, 09:02 PM
krug3r krug3r is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 3 krug3r User rank is Private First Class (20 - 50 Reputation Level)krug3r User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 38 m 53 sec
Reputation Power: 0
Visual basic & firebird DB (in unix machine)

hi guys, one project in VisualBasic: i have this part of code which is workin' very fine on a local machine :

Dim cn As New ADODB.Connection
Dim sConnStr As String
sConnStr = "Provider=ZStyle IBOLE Provider;Password=masterkey;User ID=SYSDBA;SQL Dialect=3; Logging Level=0;Silent mode=True;Character Set=WIN1251;Data Source=" & App.Path & "\T20060428_Total.gdb"
cn.ConnectionString = sConnStr
cn.Open

how can i connect with this db through the network if it's located on a unix machine? someone please help me.
many thanks in advance.

Reply With Quote
  #2  
Old May 1st, 2006, 02:41 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Never ever used that driver, but network connections through Firebird ODBC driver work fine.

Reply With Quote
  #3  
Old May 1st, 2006, 09:20 PM
krug3r krug3r is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 3 krug3r User rank is Private First Class (20 - 50 Reputation Level)krug3r User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 38 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj
Never ever used that driver, but network connections through Firebird ODBC driver work fine.


code sample would be nice. thanks

Reply With Quote
  #4  
Old May 2nd, 2006, 03:23 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
You can find code samples with the odbc driver, see the sticky thread for download link (or directly from here)

Reply With Quote
  #5  
Old May 6th, 2006, 03:53 PM
krug3r krug3r is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 3 krug3r User rank is Private First Class (20 - 50 Reputation Level)krug3r User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 38 m 53 sec
Reputation Power: 0
thanks, so here is the code for who is interested:

Dim cn As New ADODB.Connection
Private Sub Command1_Click()
Dim sql As String
Dim sConnStr As String
sConnStr = "Provider=ZStyle IBOLE Provider;Password=masterkey;User ID=SYSDBA;SQL Dialect=3; Logging Level=0;Silent mode=True;Character Set=WIN1251;Server=192.168.0.78;Data Source =192.168.0.78:/DATABASE/TIME_DBS/T20060504_Total.gdb ;Uid=root;Pwd=saert2"
cn.ConnectionString = sConnStr
cn.Open
Comments on this post
pabloj agrees: Thanks for the code

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Visual basic & firebird DB (in unix machine)


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 2 hosted by Hostway
Stay green...Green IT