Problem with TZConnection and MSSQL

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
User avatar
marco.giacinti
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 04.01.2006, 13:22
Location: Ancona

Problem with TZConnection and MSSQL

Post by marco.giacinti »

Greetings to evrybody !!!
I'm in trouble: I wrote a standard Windows application using ZeosLib to connect to a MSSQL db and everything works; if I try to use the same piece of code in a Windows service my app hangs.
This behaviour is strange because even in services I'm able to let ZeosLib connect to MySQL for example.
So, the problem could be the fact I'm in a service (in EXE it works) but in the same service with the same TZConnection I'm able to connect to MySQL.

Can anybody help me please?
Thanks guys !!
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

Could be a some kind of privileges problem? Doesn't MSSQL accept only logged users (and your service are logged in as System)?
User avatar
marco.giacinti
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 04.01.2006, 13:22
Location: Ancona

Post by marco.giacinti »

Well, I tried to configure service using Administrator account and let the service run when I was logged on... the same bad result :(
nego
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 12.04.2006, 09:25

Question

Post by nego »

marco.giacinti wrote:Well, I tried to configure service using Administrator account and let the service run when I was logged on... the same bad result :(
Hi Marco!
Could you solve the problem with connection to MSSQL from Windows service? I can't understand why it does not work.
Post Reply