Re: ADO executing stored procedures for all calls, bad performance



Randy Stroede (RandyStroede@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Thanks for your response. The connection string is:

Provider=SQLOLEDB.1;Password=ups_test;Persist Security Info=True;User
ID=xyz;Initial Catalog=upsproduction;Data Source=BARKLEY2;Use Procedure
for Prepare=0

OK, you are not turning off connection pooling in the connect string,
that's good. Still you are seeing Audit Login/Logout. I would rather
expect to see an sp_reset_connection, which would indicate that a
connection was reused from the pool.

Unfortunately, since I don't see the code, I don't have much more to add.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: MS SQL 2005, .NET, logins/sec and page faults
    ... Al least connection pooling is working! ... Connection pooling is particular useful in things like web applications, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Query training -- Complex queries
    ... > Update PositionsEOM ... Here you don't have a derived table, but a correlated subquery. ... UPDATE in Books Online. ... is not written for SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Linked Server: How to check if server exists?
    ... The root problem is described in the Books Online topic Batches. ... Rick Byham, SQL Server Books Online ... linked server don't run on those development machines not having that linked ...
    (microsoft.public.sqlserver.connect)
  • Re: STORED PROCEDURE - passing table name as a parameter
    ... T-SQL, is that you get problems if the view definition does not fit into ... will need to query other system tables, for instance syscolumns. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Problem when changing Views
    ... There aree several reasons. ... I use neither of the tools, but I guess that Design View resubmits the ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)

Loading