 |
|
 |
|
Next: image type
|
| Author |
Message |
External

Since: Nov 25, 2008 Posts: 4
|
(Msg. 1) Posted: Tue Nov 25, 2008 5:26 pm
Post subject: Linked Tables - ODBC SQL Server Driver Timeout Expired Archived from groups: microsoft>public>sqlserver>odbc (more info?)
|
|
|
Environment: Access 2003 front-end, SQL Server 2005 back-end with a named
instance.
I need to use the SQL Server driver instead of the Native Client driver when
linking the table since the former is not available in all our pc's. On the
first attempt to open one of these linked tables, I get the SQL Server Driver
Timeout Expired error. But if I immediately try to open the table a second
time, the error goes away and I can connect to the table. The same error
occurs even for tables with only 1 record. (Note: the Native Client driver
works, but it is difficult to distribute the driver to the client pc's since
our pc's are in a locked down evironment.)
Is there some setting that I need to change? Is there a way to trap this
error, perhaps in a table linking code? Am I beating a dead horse? I have
spent days researching/testing and nothing has fixed this error. Missed my
deliverable date  Thanks in advance for any assistance. >> Stay informed about: Linked Tables - ODBC SQL Server Driver Timeout Expired |
|
| Back to top |
|
 |  |
External

Since: Nov 25, 2008 Posts: 4
|
(Msg. 2) Posted: Tue Nov 25, 2008 5:30 pm
Post subject: RE: Linked Tables - ODBC SQL Server Driver Timeout Expired [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Also, I tested both SQL and Windows Authentication --> same error
"REC" wrote:
> Environment: Access 2003 front-end, SQL Server 2005 back-end with a named
> instance.
>
> I need to use the SQL Server driver instead of the Native Client driver when
> linking the table since the former is not available in all our pc's. On the
> first attempt to open one of these linked tables, I get the SQL Server Driver
> Timeout Expired error. But if I immediately try to open the table a second
> time, the error goes away and I can connect to the table. The same error
> occurs even for tables with only 1 record. (Note: the Native Client driver
> works, but it is difficult to distribute the driver to the client pc's since
> our pc's are in a locked down evironment.)
>
> Is there some setting that I need to change? Is there a way to trap this
> error, perhaps in a table linking code? Am I beating a dead horse? I have
> spent days researching/testing and nothing has fixed this error. Missed my
> deliverable date Thanks in advance for any assistance. >> Stay informed about: Linked Tables - ODBC SQL Server Driver Timeout Expired |
|
| Back to top |
|
 |  |
External

Since: Dec 13, 2003 Posts: 301
|
(Msg. 3) Posted: Wed Nov 26, 2008 12:06 am
Post subject: Re: Linked Tables - ODBC SQL Server Driver Timeout Expired [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Maybe a problem with the discovery service or for finding the right port to
use if you are using a dynamically allocated port. Could also be a problem
with the DSN or the AD server on your network.
Try to force to use either the Named Pipe or the TCP/IP protocol by adding
the name of the library in the connection string (Network=DBMSSOCN; in the
case of TCP/IP, see
http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForSQLServer ),
by using the prefix np: or tcp:, by adding the port number at the end, by
adding the name of the instance if it's a named instance or even better, by
creating and using an alias (in the Sql-Server Network Client Utility or
something like that) as the address of the server. By creating an alias,
you're pretty sure to use exactly the protocol that you want and not some
old cr*p like the Multi-protocol. By using a TCP/IP address (192.168.100.2
for example) for TCP/IP; you're also short-circuting any problem with name
or domain resolution.
Does this problem occurs only for the first table to open?
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"REC" wrote in message
> Environment: Access 2003 front-end, SQL Server 2005 back-end with a named
> instance.
>
> I need to use the SQL Server driver instead of the Native Client driver
> when
> linking the table since the former is not available in all our pc's. On
> the
> first attempt to open one of these linked tables, I get the SQL Server
> Driver
> Timeout Expired error. But if I immediately try to open the table a
> second
> time, the error goes away and I can connect to the table. The same error
> occurs even for tables with only 1 record. (Note: the Native Client
> driver
> works, but it is difficult to distribute the driver to the client pc's
> since
> our pc's are in a locked down evironment.)
>
> Is there some setting that I need to change? Is there a way to trap this
> error, perhaps in a table linking code? Am I beating a dead horse? I
> have
> spent days researching/testing and nothing has fixed this error. Missed
> my
> deliverable date Thanks in advance for any assistance. >> Stay informed about: Linked Tables - ODBC SQL Server Driver Timeout Expired |
|
| Back to top |
|
 |  |
External

Since: Nov 25, 2008 Posts: 4
|
(Msg. 4) Posted: Wed Nov 26, 2008 4:52 am
Post subject: Re: Linked Tables - ODBC SQL Server Driver Timeout Expired [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thank you, Sylvain for your suggestions. I will try them out when I get to
work today.
To answer your question, yes it happens only to the first table I try to
open. Once I open this first table using the trick I described, then all the
other tables work fine.
"Sylvain Lafontaine" wrote:
> Maybe a problem with the discovery service or for finding the right port to
> use if you are using a dynamically allocated port. Could also be a problem
> with the DSN or the AD server on your network.
>
> Try to force to use either the Named Pipe or the TCP/IP protocol by adding
> the name of the library in the connection string (Network=DBMSSOCN; in the
> case of TCP/IP, see
> http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForSQLServer ),
> by using the prefix np: or tcp:, by adding the port number at the end, by
> adding the name of the instance if it's a named instance or even better, by
> creating and using an alias (in the Sql-Server Network Client Utility or
> something like that) as the address of the server. By creating an alias,
> you're pretty sure to use exactly the protocol that you want and not some
> old cr*p like the Multi-protocol. By using a TCP/IP address (192.168.100.2
> for example) for TCP/IP; you're also short-circuting any problem with name
> or domain resolution.
>
> Does this problem occurs only for the first table to open?
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
> E-mail: sylvain aei ca (fill the blanks, no spam please)
>
>
> "REC" wrote in message
>
> > Environment: Access 2003 front-end, SQL Server 2005 back-end with a named
> > instance.
> >
> > I need to use the SQL Server driver instead of the Native Client driver
> > when
> > linking the table since the former is not available in all our pc's. On
> > the
> > first attempt to open one of these linked tables, I get the SQL Server
> > Driver
> > Timeout Expired error. But if I immediately try to open the table a
> > second
> > time, the error goes away and I can connect to the table. The same error
> > occurs even for tables with only 1 record. (Note: the Native Client
> > driver
> > works, but it is difficult to distribute the driver to the client pc's
> > since
> > our pc's are in a locked down evironment.)
> >
> > Is there some setting that I need to change? Is there a way to trap this
> > error, perhaps in a table linking code? Am I beating a dead horse? I
> > have
> > spent days researching/testing and nothing has fixed this error. Missed
> > my
> > deliverable date Thanks in advance for any assistance.
>
>
> >> Stay informed about: Linked Tables - ODBC SQL Server Driver Timeout Expired |
|
| Back to top |
|
 |  |
External

Since: Nov 25, 2008 Posts: 4
|
(Msg. 5) Posted: Wed Nov 26, 2008 2:06 pm
Post subject: Re: Linked Tables - ODBC SQL Server Driver Timeout Expired [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Oops I guess my last post didn't go through...
First and Foremost, THANK YOU Sylvain for your help! You just made my day.
If you were running for politics, I would vote for you. Now I can do some
real development work with this out of the way.
The fix (please let me know if any of the settings are unnecessary):
1) Go to SQL Server Configuration Manager
2) Click Protocols for MyInstance.
3) TCP/IP Properties:
Protocol tab:
Enabled=Yes
Keep Alive=30000
Listen All=No
No Delay=No
IP Addresses tab:
IP1:
Active=Yes
Enabled=Yes
IP Address=xxx.xxx.xxx.xxx
TCP Dynamic Ports=4454 (automatically assigned)
TCP Port=blank
IP2:
Active=Yes
Enabled=No
IP Address=127.0.0.1
TCP Dynamic Ports=0
TCP Port=blank
IPAll:
TCP Dynamic Ports=1072 (automatically assigned)
TCP Port=blank
4) Restart SQL
"REC" wrote:
> Thank you, Sylvain for your suggestions. I will try them out when I get to
> work today.
>
> To answer your question, yes it happens only to the first table I try to
> open. Once I open this first table using the trick I described, then all the
> other tables work fine.
>
> "Sylvain Lafontaine" wrote:
>
> > Maybe a problem with the discovery service or for finding the right port to
> > use if you are using a dynamically allocated port. Could also be a problem
> > with the DSN or the AD server on your network.
> >
> > Try to force to use either the Named Pipe or the TCP/IP protocol by adding
> > the name of the library in the connection string (Network=DBMSSOCN; in the
> > case of TCP/IP, see
> > http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForSQLServer ),
> > by using the prefix np: or tcp:, by adding the port number at the end, by
> > adding the name of the instance if it's a named instance or even better, by
> > creating and using an alias (in the Sql-Server Network Client Utility or
> > something like that) as the address of the server. By creating an alias,
> > you're pretty sure to use exactly the protocol that you want and not some
> > old cr*p like the Multi-protocol. By using a TCP/IP address (192.168.100.2
> > for example) for TCP/IP; you're also short-circuting any problem with name
> > or domain resolution.
> >
> > Does this problem occurs only for the first table to open?
> >
> > --
> > Sylvain Lafontaine, ing.
> > MVP - Technologies Virtual-PC
> > E-mail: sylvain aei ca (fill the blanks, no spam please)
> >
> >
> > "REC" wrote in message
> >
> > > Environment: Access 2003 front-end, SQL Server 2005 back-end with a named
> > > instance.
> > >
> > > I need to use the SQL Server driver instead of the Native Client driver
> > > when
> > > linking the table since the former is not available in all our pc's. On
> > > the
> > > first attempt to open one of these linked tables, I get the SQL Server
> > > Driver
> > > Timeout Expired error. But if I immediately try to open the table a
> > > second
> > > time, the error goes away and I can connect to the table. The same error
> > > occurs even for tables with only 1 record. (Note: the Native Client
> > > driver
> > > works, but it is difficult to distribute the driver to the client pc's
> > > since
> > > our pc's are in a locked down evironment.)
> > >
> > > Is there some setting that I need to change? Is there a way to trap this
> > > error, perhaps in a table linking code? Am I beating a dead horse? I
> > > have
> > > spent days researching/testing and nothing has fixed this error. Missed
> > > my
> > > deliverable date Thanks in advance for any assistance.
> >
> >
> > >> Stay informed about: Linked Tables - ODBC SQL Server Driver Timeout Expired |
|
| Back to top |
|
 |  |
| Related Topics: | SQL Server 2005 Link server to ODBC driver *SEVERE ERROR* - I am using the latest IBM INFORMIX ODBC DRIVER 3.00.00.13223 - ICLIT09B.DLL I then use a SQL Server 2005 link server – Microsoft OLE DB Provider for ODBC Driver. Both ODBC and SQL Server Linked server test connection successfully and I can return..
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRea.. - Hello, i an custiomer environment, we have sporadic ODBC Errors. This ist the error message: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()) Environment: Client/Server with Windows Server 2003 Enterprise OS, new Service Packs...
SQL Server 2008 + ODBC SQL Driver 2000.85.1022 - Hello, Could machine having ODBC SQL Driver version 2000.85.1022 connect properly to SQL Server 2008 on other machine? This version of ODBC driver is default in windows 2000 and it works improperly with SQL Server 2008. It produces random errors in..
ODBC Timeout from application - We use an application that, among otehr things, runs queries against our SQL 2000 server. It has always ran just fine. However, today a user tried running one of the built in queries to retrieve some records and it timed out with a SQL timeout error...
#DELETED returned by Access query using SQL Server linked .. - The following query: SELECT U.User_ID, U.Org, NZ(GV.Gap_Likelihood, 0) as Gap_Likelihood, NZ(GV.Gap_Impact, 0) as Gap_Impact FROM (SELECT User_ID, NZ([Org_Abbr], [Last_Name]) as Org, 29 as GapID FROM tbl_Users ... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|