MS Server jdbc driver

Questions and answers regarding general SQL and backend databases

MS Server jdbc driver

Postby Riccardino » Tue Jun 03, 2003 11:04 pm

Hi, everybody

I'm looking for a free Ms Server jdbc driver: does it exists? :-)
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby mpwiedemann » Tue Jun 03, 2003 11:13 pm

You can get it at www.microsoft.com/sql

It is one of the top downloads.

Good luck,
Martin
mpwiedemann
 
Posts: 49
Joined: Sun Jun 01, 2003 9:08 pm
Location: Seattle, WA

Postby Riccardino » Wed Jun 04, 2003 12:31 am

mpwiedemann wrote:You can get it at www.microsoft.com/sql

It is one of the top downloads.



Thanks. :-)
I copied the driver in Servoy's driver folder, I created a new connection with the string:
jdbc:SQLserver://dbaddress/dbname

But it refuses to connect.
The error message tells me:
Error establishing socket

Is there some mistake in the string I'm using?
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Aleman » Wed Jun 04, 2003 1:03 am

MS SQL server is in the auto setup pulldown, it will return:

URL:
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=<database_name>;SelectMethod=cursor

and driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver

all you need to do is replace localhost and database name.

Make sure that your SQL Server accepts TCP connections (YES by default but can be turned off). I personally use MS SQL Servers during all my demos so I can assure you it works very well :wink:
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Riccardino » Wed Jun 04, 2003 6:09 pm

jaleman wrote:MS SQL server is in the auto setup pulldown, it will return:

URL:
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=<database_name>;SelectMethod=cursor

and driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver

all you need to do is replace localhost and database name.

Make sure that your SQL Server accepts TCP connections (YES by default but can be turned off). I personally use MS SQL Servers during all my demos so I can assure you it works very well :wink:


Hi, Jan

i put this string but it doesn't work.
jdbc:microsoft:sqlserver://1.2.3.4:1433;DatabaseName=<databasename>;SelectMethod=cursor/

Is there any mistake or is it a server problem? :wink:
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby bcusick » Wed Jun 04, 2003 7:19 pm

Riccardino wrote:
jaleman wrote:MS SQL server is in the auto setup pulldown, it will return:

URL:
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=<database_name>;SelectMethod=cursor

and driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver

all you need to do is replace localhost and database name.

Make sure that your SQL Server accepts TCP connections (YES by default but can be turned off). I personally use MS SQL Servers during all my demos so I can assure you it works very well :wink:


Hi, Jan

i put this string but it doesn't work.
jdbc:microsoft:sqlserver://1.2.3.4:1433;DatabaseName=<databasename>;SelectMethod=cursor/

Is there any mistake or is it a server problem? :wink:


Make SURE that you replace <databasename> with the actual name of your database (i.e. Northwind) - and also make sure you SQL Server is running on port 1433 (which is the default). I use MS SQL Server all the time - and have had no problems.

Hope this helps,

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby edward » Wed Jun 04, 2003 10:02 pm

Its also case-sensitive so double check that...
Edward Callaghan
Servoy
edward
 
Posts: 142
Joined: Wed Apr 23, 2003 9:35 pm
Location: London, UK

Postby Jan Aleman » Wed Jun 04, 2003 10:13 pm

Code: Select all
jdbc:microsoft:sqlserver://1.2.3.4:1433;DatabaseName=<databasename>;SelectMethod=cursor/


Couple of things:
1. replace <Databasename> with the actual databasename
2. make sure the slash at the end is not there
3. make sure the server IP is correct

Is it a Microsoft 2000 SQL Server? it will not work with older versions as far as I know.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Riccardino » Thu Jun 05, 2003 9:35 pm

jaleman wrote:
Code: Select all
jdbc:microsoft:sqlserver://1.2.3.4:1433;DatabaseName=<databasename>;SelectMethod=cursor/


Couple of things:
1. replace <Databasename> with the actual databasename
2. make sure the slash at the end is not there
3. make sure the server IP is correct

Is it a Microsoft 2000 SQL Server? it will not work with older versions as far as I know.


Good point. I'll try to call them tomorrow :-)
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 8 guests

cron