Board index » delphi » How to connect to mssql with named pipes instead of tcp/ip?
no_spam_to_anders.lin...@perceptive.se (Anders Linden)
![]() Delphi Developer |
Sat, 17 Jan 2004 14:53:27 GMT
|
no_spam_to_anders.lin...@perceptive.se (Anders Linden)
![]() Delphi Developer |
Sat, 17 Jan 2004 14:53:27 GMT
How to connect to mssql with named pipes instead of tcp/ip?
Hi!
I have tried some days now to communicate with a mssql server It was when I had disabled the tcp/ip on the sql server and only had I have dropped the following database components on the form: TDatabase The three components are connected through the SessionName property. What to do? I have tried to put things in the Params property of the Best regards |
Travis L. Ren
![]() Delphi Developer |
Sat, 17 Jan 2004 19:34:30 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?This may not be a delphi problem. First, make sure that you can communicate with SQL server using the default You will have to run the SQL client config tool on each client and set the Quote"Anders Linden" <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> Hi! |
Anders Lind
![]() Delphi Developer |
Sat, 17 Jan 2004 20:02:05 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?tr...@kc.rr.com (Travis L. Reno) wrote in <3b6697fa_1@dnews>: Quote>This may not be a delphi problem. Quote>First, make sure that you can communicate with SQL server using the pipes with the help of enterprise manager or query analyzer. Quote>You will have to run the SQL client config tool on each client and set Quote>"Anders Linden" <no_spam_to_anders.lin...@perceptive.se> wrote in |
Kevin Frever
![]() Delphi Developer |
Sat, 17 Jan 2004 22:33:11 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?Anders, If you set Microsoft's Client Network Utility to use Named Pipes, then Good luck, QuoteAnders Linden <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> tr...@kc.rr.com (Travis L. Reno) wrote in <3b6697fa_1@dnews>: |
Dimk
![]() Delphi Developer |
Sat, 17 Jan 2004 23:45:40 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?If You are using System DSN - check Client Configuration -> Network Library. It must correspond server's configuration (see Kevin's reply) Dimka Quote"Anders Linden" <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> Hi! |
Anders Lind
![]() Delphi Developer |
Sun, 18 Jan 2004 14:33:52 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?Yeah! Now it works with named pipes! Thanks a lot! The question is... shouldnt it be up to the application what transport it Why named pipes? When you connect to a named pipe, you get a direct kernel When I have looked at the api, it seems like a named pipe only allows a And if a named pipe is on the same computer as the one you are connecting Isnt there a setting in my application to override the settings in the Thanks again. Best regards kfrev...@midwayusa.com (Kevin Frevert) wrote in <3b66a5b7_1@dnews>: Quote>Anders, |
Kevin Frever
![]() Delphi Developer |
Sun, 18 Jan 2004 22:50:25 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?QuoteAnders Linden <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> The question is... shouldnt it be up to the application what transport it someone who is an ADO expert might better answer that question. Like I wrote, your mileage may vary, but all the docs I've read (sorry, I don't have any links off the top of my head), Named Pipes is a huge network hog and the cause for a lot of network related bottlenecks. Ok for a small network, but for large, dispersed network, TCP/IP is the best choice. Quote> Why named pipes? When you connect to a named pipe, you get a direct kernel and performance was so bad, the apps (Delphi apps and M$'s native tools) were almost unusable. Switched to TCP/IP and queries that took 2-3 minutes now are instantaneous. Quote> When I have looked at the api, it seems like a named pipe only allows a Quote> And if a named pipe is on the same computer as the one you are connecting might do some looking around. Just curious, why? |
Anders Lind
![]() Delphi Developer |
Mon, 19 Jan 2004 14:58:43 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?kfrev...@midwayusa.com (Kevin Frevert) wrote in <3b67fb43_1@dnews>: Quote
Therefore tcp/ip would just only add a layer, I think. Did your tests include cases where the client and the server was the same computer? - Hide quoted text - - Show quoted text - Quote>> Why named pipes? When you connect to a named pipe, you get a direct same time, if possible. queues just _have_ to speed up the cpu, because it doesnt have to switch between tasks all the time. Quote
Without changing the registry. Best regards |
Kevin Frever
![]() Delphi Developer |
Mon, 19 Jan 2004 22:42:56 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?QuoteAnders Linden <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> But if the computer talks with itself, there can be no network hog. against MSSQL desktop on my local machine (using TCP/IP) with a small subset of our production database, so my mileage varies. Quote> >How do you "use the cycles"? Assembler, I don't see how you can control what/how the CPU decides to time-slice instructions. Quote> Of course, I want my application to act in the way I have defined. bad venereal disease than attempt to write my own network protocol interface. krf |
Anders Lind
![]() Delphi Developer |
Mon, 19 Jan 2004 22:45:16 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?Quote>Just courious, why would you want to do that yourself? I'd rather have to use named pipes or tcp/ip is hardly an attempt to write a protocol of any kind. Best regards |
Kevin Frever
![]() Delphi Developer |
Tue, 20 Jan 2004 01:00:36 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?Then I'm confused. You wrote you want to manipulate the network protocol, but you don't want to modify the registry. The only other way I know is to write your own protocol (I'm sure there are the C headers somewhere you could use). Of course, this is getting way outside the bounds of any Borland/Delphi/VCL Good luck, QuoteAnders Linden <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> Putting the responsibility on the application instead of the system |
Anders Lind
![]() Delphi Developer |
Tue, 20 Jan 2004 15:53:10 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?What I want is to use the VCL components and in some way change some property so that they will use named pipes instead of tcp/ip. (Regardless of the settings in the "client network utility"). Hope I was expressing myself better this time :) /Anders kfrev...@midwayusa.com (Kevin Frevert) wrote in <3b696b47_2@dnews>: Quote>Then I'm confused. You wrote you want to manipulate the network |
Al Cant
![]() Delphi Developer |
Wed, 18 Feb 2004 13:24:14 GMT
Re:How to connect to mssql with named pipes instead of tcp/ip?If you are using ADO, set the Network Library property of the connection string to the DLL name of the protocol you want to use (without the .DLL extension). If you are using the BDE and ODBC, it is a little trickier. You may be able If you do use TCP/IP socket connectivity, you cannot do Trusted Security Hope that helps. Al Quote"Anders Linden" <no_spam_to_anders.lin...@perceptive.se> wrote in message Quote> What I want is to use the VCL components and in some way change some |
3. TCP/IP PING using Novell TCP/IP stack
4. TCP/IP (RPC) versus TCP/IP (Sockets)
5. Error using TCP/IP connecting to AS400
6. Connect to SQL Server using Tcp/ip
7. Connect Interbase Server with TCP/IP
8. How do we connect to an oracle server via tcp/ip network