sqlserver 2005 db connection

PLZ help ! I cannot connect to the sqlserver 2005 db. The connection works fine in IDE. However when I run the project, it gives an error. I read other articles on the forum. I replaced the server name with ip address. But still no luck.

Here's my connect string:

jdbc:sqlserver://servername\name;databaseName=b2b;SelectMethod=cursor

How do I replace ://servername\name with servername:1433?

What is the right way to do this?

Thanks

pv.

[483 byte] By [pv_k] at [2007-11-26 8:49:20]
# 1
check out this FAQ: http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/technical /dbaccess/faqsqlserver.htmlHTH,-Sakthi
sakthivelgopal at 2007-7-6 22:38:48 > top of Java-index,Development Tools,Java Tools...