BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

1 minute to connect sqlserver??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
EnergyWeb
Guest





PostPosted: Wed Dec 03, 2003 4:33 pm    Post subject: 1 minute to connect sqlserver?? Reply with 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
Aldemar
Guest





PostPosted: Wed Dec 03, 2003 4:44 pm    Post subject: Re: 1 minute to connect sqlserver?? Reply with quote



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





PostPosted: Wed Dec 03, 2003 10:13 pm    Post subject: Re: 1 minute to connect sqlserver?? Reply with 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
EnergyWeb
Guest





PostPosted: Thu Dec 04, 2003 6:29 pm    Post subject: Re: 1 minute to connect sqlserver?? Reply with 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...
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





PostPosted: Thu Dec 04, 2003 9:19 pm    Post subject: Re: 1 minute to connect sqlserver?? Reply with 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

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





PostPosted: Fri Dec 05, 2003 5:01 pm    Post subject: Re: 1 minute to connect sqlserver?? Reply with quote

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





PostPosted: Fri Dec 12, 2003 11:06 am    Post subject: Re: 1 minute to connect sqlserver?? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.