 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
EnergyWeb Guest
|
Posted: Wed Dec 03, 2003 4:33 pm Post subject: 1 minute to connect sqlserver?? |
|
|
Hello
Am I using Delphi6+SQLSERVER2000 through ADO, is the problem that in some
machines this being long about 1 minute to connect, did I already give PING
and this smaller one than 10ms, what can be?
My connection string is like this:
CSTRING := ' PROVIDER=MSDASQL; DRIVER={SQL SERVER}; SERVER = ' +CSERVER+';
DATABASE = ' +CSISTEMA+STRZ(NIDEMPRESA,3)+ '; UID=ENERGY; PWD=JEPCRX ';
|
|
| Back to top |
|
 |
Aldemar Guest
|
Posted: Wed Dec 03, 2003 4:44 pm Post subject: Re: 1 minute to connect sqlserver?? |
|
|
Refresh the installation of the "MDAC enviroment" of that PC with troubles.
Aldemar
--
ALDEMAR ARDILA PINTO
Director de Sistemas
LABORATORIOS AMERICA S.A.
"EnergyWeb" <rfermino (AT) uol (DOT) com.br> escribió en el mensaje
news:3fce1020 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello
Am I using Delphi6+SQLSERVER2000 through ADO, is the problem that in some
machines this being long about 1 minute to connect, did I already give
PING
and this smaller one than 10ms, what can be?
My connection string is like this:
CSTRING := ' PROVIDER=MSDASQL; DRIVER={SQL SERVER}; SERVER = ' +CSERVER+';
DATABASE = ' +CSISTEMA+STRZ(NIDEMPRESA,3)+ '; UID=ENERGY; PWD=JEPCRX ';
|
|
|
| Back to top |
|
 |
Dennis Passmore Guest
|
Posted: Wed Dec 03, 2003 10:13 pm Post subject: Re: 1 minute to connect sqlserver?? |
|
|
A much better connection string could be as follows:
CSTRING := 'Provider=SQLOLEDB.1;Persist Security Info=False;'+
'OLE DB Services=-2;User ID='+cLOGIN+';Password='+cPASWD+
';Data Source='+fDBServer+';Initial Catalog='+fDatabase;
Dennis Passmore
Ultimate Software, Inc.
|
|
| Back to top |
|
 |
EnergyWeb Guest
|
Posted: Thu Dec 04, 2003 6:29 pm Post subject: Re: 1 minute to connect sqlserver?? |
|
|
I already installed again, but the problem continues, I tested with the
provider sqloledb and it worked fast, the problem is that exists some
incompatibilities.
I will have to adapt the routines so that they use the new provider
in any way I thank the collaborations.
<Dennis Passmore> escreveu na mensagem
news:hpnssv48a3l2736mk88dg4sb96nd8qvdoh (AT) 4ax (DOT) com...
| Quote: | A much better connection string could be as follows:
CSTRING := 'Provider=SQLOLEDB.1;Persist Security Info=False;'+
'OLE DB Services=-2;User ID='+cLOGIN+';Password='+cPASWD+
';Data Source='+fDBServer+';Initial Catalog='+fDatabase;
Dennis Passmore
Ultimate Software, Inc.
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Thu Dec 04, 2003 9:19 pm Post subject: Re: 1 minute to connect sqlserver?? |
|
|
Check network settings instead. Something wrong with settings of
tcp-protocol
PS: what protocol is specified in client settings for MS SQL?
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"EnergyWeb" <rfermino (AT) uol (DOT) com.br> wrote
| Quote: | I already installed again, but the problem continues, I tested with the
provider sqloledb and it worked fast, the problem is that exists some
incompatibilities.
I will have to adapt the routines so that they use the new provider
in any way I thank the collaborations.
Dennis Passmore> escreveu na mensagem
news:hpnssv48a3l2736mk88dg4sb96nd8qvdoh (AT) 4ax (DOT) com...
A much better connection string could be as follows:
CSTRING := 'Provider=SQLOLEDB.1;Persist Security Info=False;'+
'OLE DB Services=-2;User ID='+cLOGIN+';Password='+cPASWD+
';Data Source='+fDBServer+';Initial Catalog='+fDatabase;
Dennis Passmore
Ultimate Software, Inc.
|
|
|
| Back to top |
|
 |
EnergyWeb Guest
|
Posted: Fri Dec 05, 2003 5:01 pm Post subject: Re: 1 minute to connect sqlserver?? |
|
|
This with TCP.
However I noticed that the ipxspx also exists in the net, this disturbs in
some thing, because my customer has a server nt and other novell.
Thank
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> escreveu na mensagem
news:3fcfa59d (AT) newsgroups (DOT) borland.com...
| Quote: | Check network settings instead. Something wrong with settings of
tcp-protocol
PS: what protocol is specified in client settings for MS SQL?
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"EnergyWeb" <rfermino (AT) uol (DOT) com.br> wrote in message
news:3fcf7cf8$1 (AT) newsgroups (DOT) borland.com...
I already installed again, but the problem continues, I tested with the
provider sqloledb and it worked fast, the problem is that exists some
incompatibilities.
I will have to adapt the routines so that they use the new provider
in any way I thank the collaborations.
Dennis Passmore> escreveu na mensagem
news:hpnssv48a3l2736mk88dg4sb96nd8qvdoh (AT) 4ax (DOT) com...
A much better connection string could be as follows:
CSTRING := 'Provider=SQLOLEDB.1;Persist Security Info=False;'+
'OLE DB Services=-2;User ID='+cLOGIN+';Password='+cPASWD+
';Data Source='+fDBServer+';Initial Catalog='+fDatabase;
Dennis Passmore
Ultimate Software, Inc.
|
|
|
| Back to top |
|
 |
Arthur Hoornweg Guest
|
Posted: Fri Dec 12, 2003 11:06 am Post subject: Re: 1 minute to connect sqlserver?? |
|
|
Dennis wrote:
| Quote: | 'OLE DB Services=-2;
|
What does this one mean?
--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|