Solved

SQL Express 2005 ODBC Connection Problems

Posted on 2009-07-03
3
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

631 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