all groups > sql server connect > june 2005 >
You're in the

sql server connect

group:

Unable to connect to SQL Server Personal Edition


Unable to connect to SQL Server Personal Edition guian NO[at]SPAM att.net
6/26/2005 1:42:18 PM
sql server connect:
I'm trying to connect to a local SQL Server 2000 'Personal Edition'
running on Windows XP Professional. I've tried everything, and
searched the forums for similar problems, but I can't get the
connection to work... :(

Using jdbc, with the follwing URL

jdbc:microsoft:sqlserver://localhost:1433;databaseName=mydb;

I call:

DriverManager.getConnection(url, userName, password)

and I get the following:

jdbc:microsoft:sqlserver://GS-DELL:1433;databaseName=gpldb;
SQLState: 08001
code: 0
Error establishing socket.
Connection refused: connect
Error establishing socket.

I've also tried using ADO but I 'Login refused: Not associated with a
trusted connection'

However, Query Analyzer connects just fine, and I can even use ISQL
with no problem from a DOS command prompt!!

I have set Mixed Authentication (SQL Server and Windows) for the
server, and I've confirmed my user/psw about 6 times (Query Analyzer
has no problem accessing the database...)

Please help! Any suggestions???

Are there some restrictions with SQl Server Personal Edition on XP???

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
RE: Unable to connect to SQL Server Personal Edition Curt
6/29/2005 9:03:04 AM
I've recently had some simillar issues with Personal Edition. I was testing
the FreeTDS driver from and AIX server and wasn't able to connect to personal
but was able to connect fine to Standard / Enterprise editions. I belive it
ended up being the version of the TDS protocal that I was using. If I used
TDS version 5.0 or lower I was able to connect fine to personal edition. If I
used 7.0 or 8.0 I couldn't connect to personal but could connect to
standard/enterprise.

You may want to look at the driver that your using and see if there are
settings for selecting TDS protocal version.

Hope this helps!
Curt

[quoted text, click to view]
AddThis Social Bookmark Button