Solved

VS2003 ODBC SQLDatasources doesn't show SQL Server Express 2005

Posted on 2006-11-18
2
344 Views
Last Modified: 2012-06-21
I'm using VS2003, writing in C++.  I have SQL Server Express 2005 and SQL Server Management Studio Express installed.  SQL Server Management Studio express can connect to MyMachine\SQLEXPRESS using windows authentication.  I have C# code using (local)\SQLEXPRESS on this machine.

In C++, when I call SQLDataSources (SQL_FETCH_FIRST, SQL_FETCH_LAST) to enumerate the servers available on my machine, I see
    Visual FoxPro Tables
    Visual FoxPro Database
    MSSQL$VSdotNET
    Xtreme Sample Database
    Xtreme Sample Database 2003
    Xtreme Sample Database 2005

As near as I can tell, the ODBC driver for SQL Server Express 2005 is installed -- I've installed the Microsoft SQL Server Native Client (sqlncli.msi) and it claims to have installed successfully.  

Yet I can't enumerate it.

What am I missing?

Thank you.
0
Comment
Question by:josgood
2 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 250 total points
ID: 17973488
Do you have an ODBC sql data source setup?   Open up the Control Panel, Administrative Tools, Data Sources and add a DSN to your SQL server database-- System DSN,  Add...,  SQL Server, Finish... enter the name you want for your data source, select your Server instance, Next, select the database you want to associate the data source with and then finish.
0
 
LVL 13

Author Comment

by:josgood
ID: 17973532
clockwatcher,

Thank you, thank you, thank you!  That is exactly the solution!

I wasn't aware of that additional step.

Joe
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

773 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