Delphi 6 OLEDB Question
- From: "LocutisofBorg" <bill.levine@xxxxxxxxxxxxxxxxx>
- Date: 21 Jul 2006 11:04:31 -0700
The string that we create for our connection object is as follows:
'Provider=SQLOLEDB.1;Persist Security Info=True;Data
Source=SQLSERVER;Initial Catalog=VMI;User ID=user;Password=password'
What get's sent to SQL Server is the following:
'Provider=SQLOLEDB.1;Password=password;Persist Security Info=True;User
ID=user;Initial Catalog=VMI;Data Source=CC-PF-DEV;Use Procedure for
Prepare=1;Auto Translate=True;Packet Size=4096;Workstation
ID=CC-PF-DEV;Use Encryption for Data=False;Tag with column collation
when possible=False
How do I get the Use Procedure for Prepare set to 0, so it doesn't use
temp. stored procs?
We are having some very strange results when queries are run from the
app versus when they are run from SQL Query Analyzer, for example a
query from the app makes 2 Million Page reads, but when run from Query
Analyzer it only takes 2000 page reads. Most of the queries and stored
procs are very complex, so our entire system is slowing to a halt.
Any help would be greatly appreciated and thanks in advance.
.
- Follow-Ups:
- Re: Delphi 6 OLEDB Question
- From: Riki Wiki
- Re: Delphi 6 OLEDB Question
- Prev by Date: Re: ADODataset and ClientDataset
- Next by Date: Re: ADODataset and ClientDataset
- Previous by thread: Re: Sybase ADO driver having problems with long strings and null
- Next by thread: Re: Delphi 6 OLEDB Question
- Index(es):
Relevant Pages
|