Solved

VS2003 ODBC SQLDatasources doesn't show SQL Server Express 2005

Posted on 2006-11-18
2
353 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
[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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

732 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