SQLEXPRESS in Windows7

Questions and answers regarding general SQL and backend databases

SQLEXPRESS in Windows7

Postby rogel » Thu Jan 12, 2012 1:28 am

Hi!

I installed SQLEXPRESS on Windows7 and trying to connect from Developer.
URL: jdbc:jtds:sqlserver://localhost/tsmseven;instance=SQLEXPRESS
Driver: net.sourceforge.jtds.jdbc.Driver

I get this error message:
Code: Select all
"Server localhost has no instance named SQLEXPRESS"


But when I open SQL Management Studio Express and query the servicename
Code: Select all
select SQL@@servicename


I get SQLEXPRESS

Thanks in advance.
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: SQLEXPRESS in Windows7

Postby AlanBourke » Thu Jan 12, 2012 6:08 pm

You might have to specify the port or something. I use this format which works:


Code: Select all
jdbc:jtds:sqlserver://mycomputer:61775/mydatabase;instanceName=SQLEXPRESS
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 198
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 18 guests

cron