Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ATL and C++ question

Status
Not open for further replies.

JasonDBurke

Programmer
Jun 20, 2001
54
US
I am trying to access a database on SQL Server 2000 from an already existing app that does socket reads.. These are my steps:
Insert -> New ATL Object -> Data Access -> Consumer -> Select DataSource -> Microsoft OLE DB Consumer for SQL Server -> "All the login and Server Info needed" -> The Test connection "succeeds" -> I pick the table "dbo.alert_Info" -> Click change, Insert, and Delete.
A HEADER named dboalertInfo.H is added to my project automatically. How do I go about accessing the information in the "dbo.alert_Info" table now??!! Please help..
Jason
 
This may seem elementary, but did you set the datasource/datafield properties of the controls you want to use to display the data? If the "test connection" succeeded, it sounds like this is the only thing left.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top