RE: SQLOLEDB always uses Named Pipes
- From: Dougie Brown <dougiebrown@xxxxxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 03:08:00 -0700
Thanks for the information Charles.
I'll be using the tcp: prefix and removing network library from my
connectionstrings.
Cheers
Doug
"Charles Wang[MSFT]" wrote:
Hi Doug,.
Please refer to the following answers.
Is prefixing the server with tcp: the preferred means to request a tcp/ipYes, if a client use tcp:<servername\instancename> to connect to your SQL
connection? Or should we be specifying a network library?
Server instance. It means that it uses TCP/IP protocol to connect to the
server. The network library is DBNETLIB.
Also there's no mention of connection caching - how do you find out thisI did not find any document talking about this issue. It is my guess.
information?
I also guess that the cache may be the value in the registry key:
HKLM\SOFTWARE\Microsoft\MSSQLServer\Client\SuperSocketNetLib\LastConnect
Since SQL Native Client has been installed on my computer, I could not
perform simple test by using DBNETLIB; but you may test on your computer by
running "osql /Stcp:<servername\instancename> /E". After you run the
command, you should find that the value of <servername\instancename> in the
registry key should be changed to something like '0:tcp:Charles-03,1433';
then if you connect the server again without specifying tcp: prefix, check
if the registry value would change. If it is still something like
'0:tcp:Charles-03,1433' , it should be the "Cache". Of course, you can
verify that by using named pipes connections.
This articlehttp://support.microsoft.com/default.aspx?scid=kb;en-us;Q315159
recommends setting the network library to dbmssocn - what happens if thatdll
is not there as it's not shipped with later versions of MDAC? As I
understood it had been replaced with dbnetlib. Will this still be a valid
connection string?
If MDAC was installed on your computer, the DLL should be in the directory
%WINDIR%\system32. If it does not exist on your computer, the usage of
dbmssocn does not work. Actually SQL Server allows you to use the following
network libraries when establishing a connection. They are:
• dbnmpntw - Win32 Named Pipes
• dbmssocn - Win32 Winsock TCP/IP
• dbmsspxn - Win32 SPX/IPX
• dbmsvinn - Win32 Banyan Vines
• dbmsrpcn - Win32 Multi-Protocol (Windows RPC)
You can refer to:
How To Set the SQL Server Network Library in an ADO Connection String
http://support.microsoft.com/kb/238949
Yes, it is still a valid connection string; but I believe that the KB
article that you mentioned is just providing one way to use TCP/IP protocol
by specifying one specific network library, since by default DBNETLIB will
be prior used.
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Have a good day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
- References:
- RE: SQLOLEDB always uses Named Pipes
- From: Charles Wang[MSFT]
- RE: SQLOLEDB always uses Named Pipes
- From: Dougie Brown
- RE: SQLOLEDB always uses Named Pipes
- From: Charles Wang[MSFT]
- RE: SQLOLEDB always uses Named Pipes
- Prev by Date: Re: Query regarding Multiple parameter set using OLEDB
- Next by Date: Command Object and IColumnsRowset
- Previous by thread: RE: SQLOLEDB always uses Named Pipes
- Next by thread: Query regarding Multiple parameter set using OLEDB
- Index(es):
Relevant Pages
|
|