Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Vista, ODBC and SQL Server 2005
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charax  
View profile  
 More options Jul 17 2007, 4:15 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Tue, 17 Jul 2007 10:15:34 +0200
Local: Tues, Jul 17 2007 4:15 am
Subject: Vista, ODBC and SQL Server 2005
[Discouraged by the lack of any response on
microsoft.public.access.odbcclientsvr, I'm now cross-posting to
microsoft.public.sqlserverconnect and microsoft.public.access. If the
message does not explain the problem adequately or is sent to the wrong
group, please let me know what else is needed.... Thanks.]

At home, I had totally unacceptable performance with an Access 2007 database
which was connected to an SQL Server 2005 database via ODBC on the same
laptop computer. But when linking to the database from Access 2003 on other
computers on the wireless home network, it linked to the db on the laptop
and worked great. Faced with leaving on an extended trip, I removed Access
2007 from the HP Pavilion laptop and installed Access 2003. I still couldn't
make the ODBC link reliably and resigned myself to not having access to the
db will on my trip.

Now that I'm on the trip with my laptop and only intermittently connect to
the Internet by dial-up. I've discovered by chance that:

(1) if I restart Vista and do not connect to the Internet, the Access 2003
front end will properly ODBC link to the SQL Server 2005 back end on the
laptop and run very fast so long as I do not connect to the Internet.

(2) if I restart Vista and connect by dial-up to the Internet BEFORE
starting Access, the slow linking to SQL Server and subsequent abominable
performance occurs, and Access remains unusable even after disconnecting
from the Internet.

(3) if I restart Vista and connect by dial-up to the Internet AFTER starting
Access, performance is OK for varying amounts of time before performance
degrades and Access becomes unusable.

So -- is it a network protocol issue of some sort? What changes when an
Internet connection is made that will inhibit ODBC links to the SQL Server
back end?

[At home, the laptop was always connected to my wireless network before
Access was started. I now realize that some
networking issue may have been causing the persistent bad performance since
I did all troubleshooting while connected to the wireless network.]

UAC is turned off and Access is run as administrator. Turning off the
firewall and virus protection are of no help. OS is Vista Home Premium.

Thanks for any insight to this problem.

Charax


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Shapiro  
View profile  
 More options Jul 17 2007, 7:41 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Paul Shapiro" <p...@hideme.broadwayData.com>
Date: Tue, 17 Jul 2007 07:41:57 -0400
Local: Tues, Jul 17 2007 7:41 am
Subject: Re: Vista, ODBC and SQL Server 2005
It sounds like Access could be using a different means of connecting to SQL
Server in those cases. Maybe when the network is disabled it uses shared
memory or local pipes, which should be faster, and when the network is
enabled it's using TCP/IP? I'm afraid I can't help with how to diagnose the
issue, but maybe looking into this area would help.

"Charax" <ch...@NOSPAMparthia.com> wrote in message

news:62DEB5E8-F50D-4FC1-94C6-04F84703524B@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Byham, (MSFT)  
View profile  
 More options Jul 17 2007, 12:06 pm
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Rick Byham, \(MSFT\)" <rick...@REDMOND.CORP.MICROSOFT.COM>
Date: Tue, 17 Jul 2007 09:06:22 -0700
Local: Tues, Jul 17 2007 12:06 pm
Subject: Re: Vista, ODBC and SQL Server 2005
In Vista, the protocol options are available when I click the Client
Configuration button in the ODBC Data Source Administrator wizard. You
should have a choice of either TCP or named pipes.
Create a pass-through query in Access (I'm using 2007) with the following
query that returns the protocol of the connection:
SELECT net_transport
FROM sys.dm_exec_connections
WHERE session_id = @@SPID;

Now with the pass-through query above, you at least know which protocol is
being used. I received a TCP connection initially. I don't know if that's
the default, or whether it was because I configured something earlier. At
any rate, while you are connecting locally, you will probably get better
performance if you choose named pipes and avoid the TCP stack. If you
connect locally using named pipes and the SQL Server Native Client, I think
you'll get a shared memory connection (a local named pipe) which should be
the fastest connection.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Paul Shapiro" <p...@hideme.broadwayData.com> wrote in message

news:eOiC7dGyHHA.4300@TK2MSFTNGP04.phx.gbl...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charax  
View profile  
 More options Jul 18 2007, 9:00 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Wed, 18 Jul 2007 15:00:40 +0200
Local: Wed, Jul 18 2007 9:00 am
Subject: Re: Vista, ODBC and SQL Server 2005
Thanks, Rick. I hate to be dense, but I cannot find the ODBC Data Source
Administrator in Vista Home Premium. At the control panel (regular view not
Classic) there is an Additional Options view, but no Data Sources in it. How
else can I navigate to it? I looked all through Control Panel for ODBC... or
Data Sources... and couldn't find it. Must be there somewhere!

I ran the pass-thru query and get TCP as the net_transport.

Charax

"Rick Byham, (MSFT)" <rick...@REDMOND.CORP.MICROSOFT.COM> wrote in message
news:EEF2024D-60E9-4A9C-B80A-EA254A61F4B3@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Byham, (MSFT)  
View profile  
 More options Jul 18 2007, 12:00 pm
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Rick Byham, \(MSFT\)" <rick...@REDMOND.CORP.MICROSOFT.COM>
Date: Wed, 18 Jul 2007 09:00:26 -0700
Local: Wed, Jul 18 2007 12:00 pm
Subject: Re: Vista, ODBC and SQL Server 2005
To find the ODBC Data Source Administrator:
1. In Vista, on the Start menu, click Control Panel.
2. In regular (not classic) view, click Administrative Tools.
3. Click Data Sources (ODBC), and then in User Account Control click
Continue.

Your existing data source name (DSN) is probably either a User DSN available
only to you, a System DSN available to all users on your computer, or a File
DSN, stored in a file that could be moved to another computer. Either find
the DSN of interest and click Configure, or click Add to create a new one.

As I play around with this more this morning, I realize that the Client
Configuration option, which lets you select a protocol, is only available if
you select SQL Server as your driver. But that's an older version of the
driver (SQL Server 6 and SQL Server 7.0). That's the driver Access 2007
picked for me. To connect to SQL Server 2005, you should select SQL Native
Client as your driver. In that case you won't be presented with the protocol
option. You must use the SQL Server Configuration Manager to configure your
protocol choices.
I suspect you are currently using the old driver (called just SQL Server)
and it has selected TCP/IP as your protocol. Your best connection would be
to use the SQL Native Client driver. That will give you a named pipes
(actually a local pipe using shared memory) by default when connecting to
the local SQL Server.

Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Charax" <ch...@NOSPAMparthia.com> wrote in message

news:7D816EFA-00FD-4293-879D-0E38040CE982@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charax  
View profile  
 More options Jul 19 2007, 2:31 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Thu, 19 Jul 2007 08:31:04 +0200
Local: Thurs, Jul 19 2007 2:31 am
Subject: Re: Vista, ODBC and SQL Server 2005
I'm about to chuck Vista out the Window. Admin Tools does not appear in the
Control Panel, but I found it by going to Control Panel > Programs>
Administrative Tools > Data Sources (ODBC)

Once there, it is clear that I had no DSN data source for SQL Server
established, so my original connection string is DSN-less. The string I have
been successfully using for some years now looks like this:
"ODBC;Driver={SQL
Server};Server=PAVILION;UID=myusername;DATABASE=mydatabase;Trusted_Connecti on=Yes"

If I change to a DSN, I'll have to rewrite all my ODBC linking code which
will then not be usable for connecting to web-served databases when I get
back to my home network.

I appreciate the DSN approach as an interim solution for SQL Server local
use on my traveling laptop, but isn't there a way I can continue to use
DSN-less connections on Vista? I guess I'm restating the problem to "how
does one get DSN-less connections to work reliably on Vista?"

Cheers,

Charax

"Rick Byham, (MSFT)" <rick...@REDMOND.CORP.MICROSOFT.COM> wrote in message
news:681C3E4A-A3ED-4EC5-AC2E-4219CA0B1B76@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Byham, (MSFT)  
View profile  
 More options Jul 19 2007, 11:04 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Rick Byham, \(MSFT\)" <rick...@REDMOND.CORP.MICROSOFT.COM>
Date: Thu, 19 Jul 2007 08:04:53 -0700
Local: Thurs, Jul 19 2007 11:04 am
Subject: Re: Vista, ODBC and SQL Server 2005
For the best connection string for a DSN-less connection to SQL Server 2005,
switch providers to the SQL Native Client with the following:
"ODBC;Driver={SQL Native
Client};Server=PAVILION;DATABASE=mydatabase;Trusted_Connection=Yes"
That should get you a shared memory connection through the newest provider.
The SQL Native Client will be smart enough to use shared memory locally and
TCP for a remote connection, without any hints. I also removed the
UID=myusername since you are using a trusted connection. This is working for
me, from Access 2007.

If you want to keep using the older SQL Server driver, for a DSN-less
connection, try connecting with named pipes by adding np: before the server
name, as in:
"ODBC;Driver={SQL
Server};Server=np:PAVILION;UID=myusername;DATABASE=mydatabase;Trusted_Conne ction=Yes"
Again, that may improve your performance when connecting locally. It's worth
a try.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charax  
View profile  
 More options Jul 20 2007, 2:53 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Fri, 20 Jul 2007 08:53:03 +0200
Local: Fri, Jul 20 2007 2:53 am
Subject: Re: Vista, ODBC and SQL Server 2005
Many thanks, Rick. I'll try these connection string options and report the
results.

Cheers,

Charax

"Rick Byham, (MSFT)" <rick...@REDMOND.CORP.MICROSOFT.COM> wrote in message
news:C07A2DE3-45A3-47F1-940D-B71D4FD5DC48@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DAVID  
View profile  
 More options Jul 20 2007, 5:58 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: DAVID <da...@nospam.nspam>
Date: Fri, 20 Jul 2007 19:58:51 +1000
Local: Fri, Jul 20 2007 5:58 am
Subject: Re: Vista, ODBC and SQL Server 2005
For TCP/IP, include the option (old)
NETWORK=DBMSSOCN
or (not so old)
NETWORK=dpnetlib

for named pipes,
NETWORK=DBNMPNTW

These words are actually the name of windows
DLL's: the NETWORK option tells the SQL Server
driver which network library to load. Other
drivers (or new SQL Server drivers) might have
the same feature, but use different words
and libraries.

(david)


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charax  
View profile  
 More options Jul 20 2007, 8:10 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Fri, 20 Jul 2007 14:10:31 +0200
Local: Fri, Jul 20 2007 8:10 am
Subject: Re: Vista, ODBC and SQL Server 2005
Bingo! Success (I think)....

I put Vista into the "bad" configuration (online connection to a dial-up
ISP) and confirmed the bad performance with Access 2003 FE to SQL Server
2005 BE, using Driver={SQL Server} in the connect string.

I fixed the startup code in Access to instead use your suggestion of
Driver={SQL Native Client} to link to SQL Server, then shut Access down.
When I restarted Access there was a small but noticeable decrease in time
required to drop/reestablish ODBC links, and the performance of the ODBC
linked tables behind a complex Access form with about 50,000 records is now
excellent.

Many thanks for the solution. I don't know if there are other implications
to switching to the SQL Native Client driver, but for the time being my db
is working as well as it did on Win XP. The real test will occur when I
return home and test out the connections to the local and web SQL servers
that I can't test for now, using Access 2007 (which I removed before my
trip).

Thanks again for the right answer to a nagging issue.

Cheers,

Charax

"Rick Byham, (MSFT)" <rick...@REDMOND.CORP.MICROSOFT.COM> wrote in message
news:C07A2DE3-45A3-47F1-940D-B71D4FD5DC48@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charax  
View profile  
 More options Jul 20 2007, 8:14 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Charax" <ch...@NOSPAMparthia.com>
Date: Fri, 20 Jul 2007 14:14:45 +0200
Local: Fri, Jul 20 2007 8:14 am
Subject: Re: Vista, ODBC and SQL Server 2005
Thanks, David. I'll play with these suggestions when I return home to my
development environment. In the meantime, Rick's suggestion to use "SQL
Native Client" for the driver has got my Access 2003 linked to SQL Server
2005 on Vista, so I'm back in business with my laptop.

Cheers,

Charax

"DAVID" <da...@nospam.nspam> wrote in message

news:u9qhUSryHHA.484@TK2MSFTNGP06.phx.gbl...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Toews [MVP]  
View profile  
 More options Jul 26 2007, 8:22 pm
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "Tony Toews [MVP]" <tto...@telusplanet.net>
Date: Thu, 26 Jul 2007 18:22:31 -0600
Local: Thurs, Jul 26 2007 8:22 pm
Subject: Re: Vista, ODBC and SQL Server 2005

"Charax" <ch...@NOSPAMparthia.com> wrote:

Thanks for asking this question.  I've blogged it and updated the
Access Performance FAQ.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
   Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David W. Fenton  
View profile  
 More options Jul 27 2007, 11:17 am
Newsgroups: microsoft.public.sqlserver.connect, microsoft.public.access
From: "David W. Fenton" <XXXuse...@dfenton.com.invalid>
Date: Fri, 27 Jul 2007 10:17:28 -0500
Local: Fri, Jul 27 2007 11:17 am
Subject: Re: Vista, ODBC and SQL Server 2005
"Charax" <ch...@NOSPAMparthia.com> wrote in
news:62DEB5E8-F50D-4FC1-94C6-04F84703524B@microsoft.com:

> UAC is turned off and Access is run as administrator. Turning off
> the firewall and virus protection are of no help. OS is Vista Home
> Premium.

You need something that monitors outgoing connection requests, I
think. My software firewall will notify me and I can log connections
specific to a particular application. I know that Windows firewall
can't do either of those things, but maybe there's some free or
trial software that someone could suggest that would do that.

--
David W. Fenton                  http://www.dfenton.com/
usenet at dfenton dot com    http://www.dfenton.com/DFA/


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google