LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel VBA connection to SQL Server using ADO

Hi there
I am using the ADO 2.7 Library to connect from an Excel workbook to a SQL
Server 2000 database over our local network. All works perfectly except,
when viewing the trace in SQL Profiler, I notice that, between each request
to the database, a connection object is destroyed and recreated, adding
significant overhead to our network requests. At first I though it was
because we were releasing the connection objects after each roundtrip to the
database, but still, when we use a single connection (opened at the outset
of the procedure and closed at the very end of the procedure), the "Audit
Login" and "Audit Logout" lines in SQL Profiler (with between 2000 and 6000
ms duration) continue. Do you have any suggestions about improving the speed
of execution?
Best regards
Taolo Morake


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO Connection to SQL Server [email protected] Excel Programming 3 August 3rd 05 12:29 PM
SQL Server Connection Pooling James W.[_2_] Excel Programming 2 June 3rd 05 01:17 PM
ADO connection problem when using server Bkraska Excel Programming 7 March 18th 05 02:15 PM
ado connection to access vs. sql server? Loane Sharp Excel Programming 7 November 16th 04 05:08 PM
sql server connection Andy Wiggins[_3_] Excel Programming 0 January 27th 04 08:40 AM


All times are GMT +1. The time now is 05:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"