Re: Connection from ASP- ODBC vs. SQLOLEDB

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Baisong Wei[MSFT] (v-baiwei_at_online.microsoft.com)
Date: 03/03/04


Date: Wed, 03 Mar 2004 12:01:05 GMT

Hi Patrick,

Thank you for your update.

In my last reply, I just want to say to choose the OLEDB, sorry for the
mistype. For you questions, I will answer them one by one

1)As for the ASP will use the ADO to connect the database and in my last
email, I said ADO is a higher-level object interface on top of OLE DB, so
the level of connect the database would be:
For the provider of OLEDB:
ASP -> ADO -> OLEDB -> Database
For the the provider of ODBC:
ASP -> ADO -> OLEDB -> ODBC -> Database

Also, if the database is SQL Server, you could get for more from OLEDB for
both of them are Microsoft technologies.

Please refer to the following link for detailed information
Choosing Your Data Access Strategy
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoledb/htm
l/choosingcomponents.asp

2) Named Pipes vs. TCP/IP Sockets
In a fast local area network (LAN) environment, Transmission Control
Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients are
comparable in terms of performance. However, the performance difference
between the TCP/IP Sockets and Named Pipes clients becomes apparent with
slower networks, such as across wide area networks (WANs) or dial-up
networks. This is because of the different ways the interprocess
communication (IPC) mechanisms communicate between
peers.
For named pipes, network communications are typically more interactive. A
peer does not send data until another peer asks for it using a read
command. A network read typically involves a series of peek named pipes
messages before it begins to read the data. These can be very costly in a
slow network and cause excessive network traffic, which in turn affects
other network clients.It is also important to clarify if you are talking
about local pipes or network pipes. If the server application is running
locally on the computer running an instance of Microsoft SQL Server?2000,
the local Named Pipes protocol is an option. Local named pipes runs in
kernel mode and is extremely fast.

For TCP/IP Sockets, data transmissions are more streamlined and have less
overhead. Data transmissions can also take advantage of TCP/IP Sockets
performance
enhancement mechanisms such as windowing, delayed acknowledgements, and so
on, which can be very beneficial in a slow network. Depending on the type
of
applications, such performance differences can be significant.TCP/IP
Sockets also support a backlog queue, which can provide a limited smoothing
effect compared to named pipes that may lead to pipe busy errors when you
are attempting to connect to SQL Server.

In general, sockets are preferred in a slow LAN, WAN, or dial-up network,
whereas named pipes can be a better choice when network speed is not the
issue, as it
offers more functionality, ease of use, and configuration options. You
could just choose which protocol to use depends on you production
environment.

3) As for Shared Memory Net-Library is used only for intra-computer
communications, you could let it as the default setting on the client
network utility.

Hope this helps!

Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.



Relevant Pages

  • Re: TCP/IP vs Named Pipes
    ... Named Pipes vs. TCP/IP Sockets ... Protocol/Internet Protocol Sockets and Named Pipes clients are ... network communications are typically more interactive. ...
    (microsoft.public.sqlserver.server)
  • Re: Conflicting SQL Client Settings
    ... Just wondering if you found a solution to your backup problem. ... > Network utility is set to use Named Pipes. ... > 3) The SQL Server, IIS and CMS are all on the same box! ...
    (microsoft.public.sqlserver.server)
  • Re: named pipes versus tcpip
    ... Named Pipes is equally secure ... since in those cases Named Pipes would be running _over_ TCP/IP. ... Back then you would choose the netlib which matched your LAN's ... Well today every network runs on IP, ...
    (microsoft.public.sqlserver.server)
  • Named pipes between VS6 and .Net C++
    ... I am having problems using named pipes over a network from ... a dev studio 6 application to a .Net application in C++. ... using two applications a VS6 app and a .Net one? ...
    (microsoft.public.dotnet.framework.interop)
  • design question
    ... this is a design question. ... I need to convert a stand-alone C application to a multi-user network ... I was considering developing an C++ or Visual Basic dll using ADO or OLEDB, ...
    (microsoft.public.data.oledb)