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 14th, 2006, 07:14 PM
erman.olca erman.olca is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 1 erman.olca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 41 sec
Reputation Power: 0
Angry Database on another computer

hi all,

can anybody tell me ho can i set my database property of my connection string if my database is on the other machine on my network. I am developing with c# and my connecitonstring is like this : @"User=SYSDBA;Password=masterkey;Database="+Application.StartupPath+@"\TICARI.FDB;DataSource="ERMAN";Port=3050;Dialect=3;Charset=NONE;Role=;Connection lifetime=0;Connection timeout=15;Pooling=True;Packet Size=8192;Server Type=0"

When i show my string via messagebox it shows database property like this : \\ERMAN\dms\TICARI.FDB but it gives me I/O error for file CreateFile(open) "\dms\TICARI.FDB" error while trying to open file.
it means it eats my computer name \\ERMAN

How can i solve this problem? Thanks a lot.

Reply With Quote
  #2  
Old January 15th, 2006, 01:00 AM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 816 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 28 m 19 sec
Reputation Power: 19
Quote:
Originally Posted by erman.olca
When i show my string via messagebox it shows database property like this : \\ERMAN\dms\TICARI.FDB


Database needs to be in format:
ServerName:FullPathOnServer

Example:
If the server was ERMAN and the path (ON ERMAN) was
D:\Firebird\Data\TICARI.FDB
Then Database should be:
Code:
ERMAN:D:\Firebird\Data\TICARI.FDB

HTH
Clive

Reply With Quote
  #3  
Old January 15th, 2006, 02:38 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,917 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 14 h 16 m 7 sec
Reputation Power: 279
Also note that you can configure aliases to avoid the remote path assle.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Database on another computer


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