Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Collectiong data from SQL server / Repeat!

Hi I am using an macro to collect data from an SQL server, the problem I
have is if the server is locked "usally by someone connecting using access"
Iget an error massage saying that the SQL server is locked please try again.

is there a way of capturing this error and getting the macro to run the last
step?


Cheers

Mark



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Collectiong data from SQL server / Repeat!

Usually, a SQL connection has a timeout associated with it. Can you
set the timout to a large number? Or, if you are sure you will
eventually connect, specify 'forever' as the timeout interval?

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi I am using an macro to collect data from an SQL server, the problem I
have is if the server is locked "usally by someone connecting using access"
Iget an error massage saying that the SQL server is locked please try again.

is there a way of capturing this error and getting the macro to run the last
step?


Cheers

Mark




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Collectiong data from SQL server / Repeat!

Hmmm

I don't state a timeout "time" so I am unsure, what tends to happen it it's
not a timeout but more of a bugger off this is locked / blocked try later.

I know that the guys who use access to connect cos they can't / don't know
hoe to use pass through queries are at fault but I have no way of stopping
them as it's there server :o(
Mark


"Tushar Mehta" wrote in message
om...
Usually, a SQL connection has a timeout associated with it. Can you
set the timout to a large number? Or, if you are sure you will
eventually connect, specify 'forever' as the timeout interval?

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi I am using an macro to collect data from an SQL server, the problem I
have is if the server is locked "usally by someone connecting using

access"
Iget an error massage saying that the SQL server is locked please try

again.

is there a way of capturing this error and getting the macro to run the

last
step?


Cheers

Mark






Reply
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
How to import data from SQL Server amit Excel Discussion (Misc queries) 0 January 15th 07 05:35 AM
SQL Server -- Bulk Insert from Excel to SQL Server Madhan Excel Discussion (Misc queries) 0 December 12th 06 03:08 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM
Best way to get data out of SQL Server paul reed Excel Programming 2 October 3rd 03 10:34 AM


All times are GMT +1. The time now is 01:06 AM.

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"