Solved

SQL Express 2005 ODBC Connection Problems

Posted on 2009-07-03
3
443 Views
Last Modified: 2012-05-07
Hi

I am in the process of setting up a sql express 2005 on windows xp pc.  I am experiencing problems when trying to connect to the database via odbc (screen shot attached)
I have tried the SA account and the domain administrator account.
I have enabled TCP connections for remote and local.  At this stage i am only trying to connect locally on the same machine.  I have also tried using the name localhost when selecting the database server, rather than the netbios name.

Any help would be greatly appreciated.

thanks..
odbc-error.jpg
0
Comment
Question by:bains1000
3 Comments
 
LVL 9

Accepted Solution

by:
drequinox earned 500 total points
ID: 24771181
specify your connection string like this
x.x.x.x\sqlexpress
or if its local try .\sqlexpress
 do it when it asks which sql server you want to connect to , in drop down box, just type .\sqlexpress

notice the dot !!!
0
 

Author Comment

by:bains1000
ID: 24771898
thanks for this, I am not recieving a slightly different error:

Connection failed:
SQLstate: '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.

I seem to be one step closer, any ideas?
0
 
LVL 26

Expert Comment

by:tigin44
ID: 24779165
1. Do your sql installation default or a named instance? if its a named instance then you should give the instance name in your server definition.
2. Did you define any aliases for your sql server? misconfigured alliases may prevent your connection. check it under SQL server configuration manager -> SQL Native Client Configuration -> Aliases..  if exists you should delete them and then try connecting.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question