Re: VB6 ADO connection SQL Express 2005 SP2 - severe lag with network connection enabled



On Mar 29, 5:22 am, "Bob Barrows [MVP]" <reb01...@xxxxxxxxxxxxxxx>
wrote:
hboo...@xxxxxxx wrote:
The XP system, connecting over the network (crossover) connects
perfectly. Same program (EXE on both systems). It does NOT exhibit
ANY of the problems I'm about to describe on the Vista system with the
SQL Express 2005 SP2 installed.

I am using a DSN-less connection with a connection string like this:
Driver={SQL Server};server=(local)
\instancename;database=dbname;Uid=sa; Pwd=**********

All I can suggest is using the SQL Native Client instead of the obsolete
ODBC driver. See www,connectionstrings.com
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Hey, Bob, thank you. I replaced the conn string with a simple one I
found at the site you listed, for Native Client OLE DB and was able to
reference the computer as (local) with no problems. Changing the
connection string seems to have fixed the problem (it's pulling the
query that I was speaking of in the 0.4 to 1.2 second range
consistently and did not freeze/hang and drag on for 3 minutes 59
seconds. I'm going to call it good until I get back to the office
where I can beat up a Vista test box I have to learn more. I've
obviously been missing some important information.

Thank you again for your reply, time, and help.

--HC

.



Relevant Pages

  • Re: Problem w/ VBScript running against SQL Server 2000
    ... but bayID is always assigned the value of bay_id. ... account for sql injection anyway. ... This email account is my spam trap so I ...
    (microsoft.public.scripting.vbscript)
  • Re: Different results in SQL and Access
    ... do you mean using a recordset to loop through and select your ... Or do you mean using ADO to execute your sql queries (which would certainly ... This email account is my spam trap so I ...
    (microsoft.public.access.queries)
  • Re: Speed of reading recordsets
    ... Create a saved query in Access with the following sql: ... 'debugging - comment this out when debugging is complete: ... which violates one of the rules of normalization. ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: SQL Quotes Insanity !
    ... rules for delimiting data in dynamic sql? ... I hate dynamic sql so much I can't stand looking at it anymore ... Give a hungry man a fish and he'll have dinner that evening - give him ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: Different results in SQL and Access
    ... "After reading all your kind suggestions, ... Access to select records from SQL via Date/Time again. ... My first suggestion should work ... ... This email account is my spam trap so I ...
    (microsoft.public.access.queries)