Link to home
Start Free TrialLog in
Avatar of navalarya1982
navalarya1982

asked on

Accessing SQL server database

Hi,

I am trying to access SQL server database using the driver provided by microsoft.

The connection string used is jdbc:microsoft:sqlserver://mymachine:1433;DatabaseName=Temp

but the problem is my deployment machine is not able to support TCP/IP protocol for communication. Is there a way to specify the protocol of communication in connection string.

As far i knw SQL server supports 3 types of protocol 1.Names pipelines 2.Shared memory 3.TCP/IP

I want to use a connection string where i can specify first or second option as the protocol.


regards,
Naval
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Try the jtids driver - it supports named pipes
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

try jdts and set the namedPipe parameter
http://jtds.sourceforge.net/faq.html
Avatar of navalarya1982
navalarya1982

ASKER

is it free ?
YEs
can you send me sample connection string format :)

regards,
Naval
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By default, Windows XP will install TCP/IP when you install a network card
go to "network connections" and install it manually
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial