aspose file tools
The moose likes JDBC and the fly likes sqlServer  connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "sqlServer  connection" Watch "sqlServer  connection" New topic
Author

sqlServer connection

omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
hi, i want to create a connection with
sqlServer can someone tell me what are
the steps that i shoul do .
thx for any help
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Go find yourself a SQL Server JDBC driver. Microsoft's or Sybase's websites (depending on which SQL Server) would be a good start. Then read the instructions it comes with and come back here if you have problems.

Jules
Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
This should help
http://support.microsoft.com/default.aspx?scid=kb;en-us;313100
http://www.microsoft.com/downloads/details.aspx?FamilyID=9f1874b6-f8e1-4bd6-947c-0fc5bf05bf71&displaylang=en
omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
thx for the help
Prashant Jain
Greenhorn

Joined: Aug 19, 2004
Posts: 29
Micorsofts JDBC driver for SQL Server 2000 is freely available on their site.(Something is Free at Microsoft :-))The documentation is not very exhaustive but will definitely guide you through to configuring the connection.Here is a sample code,

public String driverName = "com.microsoft.jdbc.sqlserver.SQLServerDriver";

public String connectionString ="jdbc:microsoft:sqlserver://<<servername>>"+
";User=,,username>>"+";Password=<<password>>"+";SelectMethod=cursor";
Class.forName(driverName);
final Connection conn = DriverManager.getConnection(connectionString1);

Hope it helps!

Happpy Programming!
Prashant Jain
prashantjainn@yahoo.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sqlServer connection
 
Similar Threads
SqlServer
how to create connection pool by using Jboss
Anyone know about 'cursor position'?
JDBC Drivers
Setting a database connection