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 December 27th, 2006, 11:14 AM
defluc defluc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 1 defluc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 31 sec
Reputation Power: 0
Connection lost to database

Hi

Following code

Zquery.Sql.Clear;
ZQuery.SQL.Add('INSERT INTO TableDiv (');
ZQuery.SQL.Add('Div,Localite,Commune,DivCode,CadaLang) ');
ZQuery.SQL.Add('Values (');
ZQuery.SQL.Add(IntToStr(Division)+','+QuotedStr(Localite) +',');
ZQuery.SQL.Add(QuotedStr(Commune) +','+ IntToStr(DivCode)+','+ IntToStr(CadaLang)+')');
Zquery.ExecSQL;


runs without any problem on my Pc and some others but on others the last statement generates "Connection lost do database" error.

Database is local in Firebird 1.5.
Then, I suppose that cannot be a network problem.

The error may be produced on PC with the same version of Windows than others where there is no error.

My idea is that's a question of Windows configuration (default charset ?).

Have anyone a solution.

Thank you for advance

Reply With Quote
  #2  
Old December 27th, 2006, 11:15 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,815 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 1 Day 14 m 37 sec
Reputation Power: 278
Check client library version and explictly set charset in connection.
Hope this helps

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Connection lost to database


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 5 hosted by Hostway