This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How can I use named-pipes to connect to local SQL server 2005
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2007
08:27 AM
How can I use named-pipes to connect to local SQL server 2005
Hi,
I experience a problem with connections to the (local) SQL server 2005 (express edition). From our software, we solved this problem by using "np:" as part of the connection string (SERVER=np: (local)\INSTANCE).
However, I also have this problem during installation - we need to run SQL scripts as part of the installer. Now when I try to set the "Default Target Server Name" property of the connection element, adding np: to the server string does not work when I run the installer.
My question - how can I force the connection to use named-pipes? Another option - if someone already had this problem - how else can I make the connection to the local SQL more consistent?
Thx,
Ron
I experience a problem with connections to the (local) SQL server 2005 (express edition). From our software, we solved this problem by using "np:" as part of the connection string (SERVER=np: (local)\INSTANCE).
However, I also have this problem during installation - we need to run SQL scripts as part of the installer. Now when I try to set the "Default Target Server Name" property of the connection element, adding np: to the server string does not work when I run the installer.
My question - how can I force the connection to use named-pipes? Another option - if someone already had this problem - how else can I make the connection to the local SQL more consistent?
Thx,
Ron
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2007
03:57 PM
InstallShield uses the Win32 Winsock TCP/IP network library by default. In order to change it to the Win32 Named Pipes, you need to modify the AdoCxnNetLibrary column of the ISSQLDBMetaData table as follows:
From:
Network Library=DBMSSOCN
To:
Network Library=DBNMPNTW
From:
Network Library=DBMSSOCN
To:
Network Library=DBNMPNTW
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2007
06:16 AM
Looks like its working for us