Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Problem with connection to sql server from excel

Hi,
Has anyone had any random problems when trying to connect to a database
from excel?

I have just taken over the administration of an excel vba application that
reads and writes to a database.
It has worked ok until now but now many users sometimes have problems when
saving data. The problem for me is that I can not get the same error. It
happens for some users sometimes and I can not make any sense of it. I think
that the application stops when connectiong to the database. I wonder if this
can have anyting to do with other settings on the users computer. Can it be a
new office update, bad internet connection, to many people working with the
database at the same time or something else?
They use excel 2003 sp2 and sqlserver 2005 (I think it's sp 2)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Problem with connection to sql server from excel

well if multiple users are writing then they may locking out the others ....
this would cause a timeout and Excel would appear to freeze - because its
single threaded etc etc
our apps send data to a "load" table, with another column for a GUID that
excel sheets generates. when the load to the table is complete, an sp loads
any data from the load table with that guid to its target table.

"Lina" wrote:

Hi,
Has anyone had any random problems when trying to connect to a database
from excel?

I have just taken over the administration of an excel vba application that
reads and writes to a database.
It has worked ok until now but now many users sometimes have problems when
saving data. The problem for me is that I can not get the same error. It
happens for some users sometimes and I can not make any sense of it. I think
that the application stops when connectiong to the database. I wonder if this
can have anyting to do with other settings on the users computer. Can it be a
new office update, bad internet connection, to many people working with the
database at the same time or something else?
They use excel 2003 sp2 and sqlserver 2005 (I think it's sp 2)

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Problem with connection to sql server from excel

Hi,

Can you post the code that you're using to connect to the database? It could
be a number of things. If you're using windows authentication to connect it
could be that some users don't have sufficient rights to write etc.

Otherwise I'd look at locking

Sam


"Lina" wrote:

Hi,
Has anyone had any random problems when trying to connect to a database
from excel?

I have just taken over the administration of an excel vba application that
reads and writes to a database.
It has worked ok until now but now many users sometimes have problems when
saving data. The problem for me is that I can not get the same error. It
happens for some users sometimes and I can not make any sense of it. I think
that the application stops when connectiong to the database. I wonder if this
can have anyting to do with other settings on the users computer. Can it be a
new office update, bad internet connection, to many people working with the
database at the same time or something else?
They use excel 2003 sp2 and sqlserver 2005 (I think it's sp 2)

Thanks

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
RTD Server question, Excel to Excel connection mdwhite Excel Programming 2 August 3rd 06 03:47 PM
SQL Server (2005 or other) - Permissions on Views Excel Connection [email protected] Excel Programming 1 May 29th 06 05:39 PM
Excel VBA connection to SQL Server using ADO Taolo Morake Excel Programming 0 September 26th 05 04:06 PM
Populate QueryTable Using SQL Server - Connection Problem AMIT Excel Programming 1 September 7th 05 09:34 AM
ADO connection problem when using server Bkraska Excel Programming 7 March 18th 05 02:15 PM


All times are GMT +1. The time now is 10:01 PM.

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

About Us

"It's about Microsoft Excel"