Re: Local named pipes better than TCP/IP?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Matt Neerincx [MS] (mattn_at_online.microsoft.com)
Date: 01/07/05


Date: Thu, 6 Jan 2005 19:13:30 -0800

Yes in this case then shared memory for local connections and TCP-IP for
remote is a good recommendation. By default the driver will automatically
pick these methods, i.e. if the driver connects to local SQL it will use
shared memory and if the driver connects to remote SQL it will use TCP-IP.

One thing you can do as well is if you want local ONLY connections in this
case (for example to avoid remote users from trying to connect to the SQL
Server) then you could disable tcp-ip protocol for SQL and only use shared
memory. For example, to follow the standard security procedure of "reducing
the attack surface" to SQL you would do this.

Matt

"PerFry" <PerFry@discussions.microsoft.com> wrote in message
news:A0F3FEED-C578-4558-A8C0-7FF0F7A4636E@microsoft.com...
> It's about what I shall recommend all our customers. I want to recommend
> them
> the best configuration options when they choose to install our application
> server and SQL Server on the same machine. So when I have to recommend
> something, would it be shared memory?
> /Per
>
> "Matt Neerincx [MS]" wrote:
>
>> IMO -> In general you are not going to see huge differences in
>> performance
>> using the different network library options such as named pipes, shared
>> memory or tcp-ip sockets.
>>
>> The reason for this is the overhead network library performance is
>> usually
>> insignificant compared to perf of the client application and SQL query
>> performance.
>>
>> So you are better off spending time optimizing your SQL queries and your
>> client code.
>>
>> Matt
>>
>>
>> "PerFry" <PerFry@discussions.microsoft.com> wrote in message
>> news:161A939F-0102-46C2-80EB-6CC0B55DAD2F@microsoft.com...
>> > I'd like to stress that we're having the client and server on the same
>> > machine, so I'm referring to _local_ named pipes. Books Online states
>> > that
>> > "Local named pipes runs in kernel mode and is extremely fast" (
>> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbcsql/od_odbc_g_5l9r.asp )
>> > .
>> >
>> >
>> > "Rand Boyd [MSFT]" wrote:
>> >
>> >> With SQL Server 2000 the default for local connections (connections
>> >> made
>> >> on
>> >> the server itself) is shared memory. Steve is correct that named pipes
>> >> is
>> >> for the most part a legacy connection method. I would just use the
>> >> default
>> >> of shared memory for local connections and TCP/IP for remote
>> >> connections.
>> >>
>> >> Rand
>> >> This posting is provided "as is" with no warranties and confers no
>> >> rights.
>> >>
>> >>
>>
>>
>>



Relevant Pages

  • Re: How to keep SQL2000 in upgrade to R2
    ... You can keep R2 installation, subscribe downgrade media, and keep SQL 2000 ... Microsoft CSS Online Newsgroup Support ... When opening a new thread via the web interface, we recommend you check ...
    (microsoft.public.windows.server.sbs)
  • Re: Rank records automatically
    ... web resources or books that anyone can recommend? ... "SQL Queries for Mere Mortals" by Michael Hernandez ...
    (comp.databases.ms-access)
  • Re: Simple Best Practice Question
    ... The only thing I am unsure of is how I update only the fields ... > I recommend the following book: ... > Beginning SQL Programming (Programmer to Programmer), John Kauffman, Brian ...
    (microsoft.public.sqlserver.programming)
  • Re: Rename SQL 2000 Virtual servers on Windows 2003 cluster
    ... I do not recommend to change the SQL 2000 virtual server name from Cluster Admin as it may seem to work now but there is no guarantee that this will not affect the availability of the server later. ... Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. ...
    (microsoft.public.sqlserver.clustering)
  • Re: SQL Server 2005 and security patch issues?
    ... connection, and it worked fine, and I hadn't changed anything. ... it's a bit spooky with shared memory stopping to work. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.security)