Solved

Remote Access to MS SQL Express

Posted on 2011-03-08
3
371 Views
Last Modified: 2012-05-11
Here is my situation:

I am using software that requires a direct database connection to a DB on a hosted server running MS SQL Express 2005. By direct connection, I mean I need to be able to connect via ODBC as a DSN.

The server is a virtual server Windows Server 2003 hosted by a major national host. I've configured the DB to allow for remote connections. I also installed MS SQL Express on my remote machine. How exactly do I connect?

I try using the IP address\SQLEXPRESS and the SQL username/password but no luck. The windows firewall is not configured on the remote machine. Am I missing something here? I assumed that I would be able to connect and access all the tables of the DB just as if I was connected locally.

The error I receive is:

Cannot connect to xx.xx.xx.xx\SQLEXPRESS
Additional informaiton: Login failed for user 'xxxxxx' (Microsoft SQL Server, Error 18456)

Or, is there a better way to connect remotely so that I can establish an ODBC connection via DSB.

Thank you
0
Comment
Question by:youponder
[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
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
devlab2012 earned 500 total points
ID: 35070954
Check that SQL Authentication is enabled. For this, on the remote server open sql express. Right click server node  > Properties > Security > select Sql Server and Windows Authentication.

Expand the Security node. Right click on Logins and create a new login.

Now, use the id/pwd of this newly created account.
0
 

Author Comment

by:youponder
ID: 35072863
That worked - thank you!

I was able to connect via ODBC. Only question is where do I specify the default database that ODBC should connect to.

I've done similar projects with MySQL where the MySQL ODBC driver clearly asks which database to log into. I can't seem to find that in windows.
0
 
LVL 13

Expert Comment

by:devlab2012
ID: 35078797
When you create a ODBC, there is an option of "Change the default database to". See the attached snapshot.
Capture.JPG
0

Featured Post

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

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

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…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

632 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