howard7890
Programmer
I am new to Visual C++ and do not know the syntax to read records from my SQL database.
I have a database called "SLL"
name = howard
password = howard1
record = tests
record section = names
Could anyone give me a sample using these parameters.
I have acomplished this in visual basic but C++ looks complex.
Visual basic = (
Set con = New ADODB.Connection
con.Open "sql2000", "howard", "howard1
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
SQLstring = "Select * from oslist where osname = 'Windows 2000 Server'"
rst.Open SQLstring, con, adOpenStatic, adLockReadOnly)
How can I accomplish the same thing in VC++?
What include files do I need?
I have a database called "SLL"
name = howard
password = howard1
record = tests
record section = names
Could anyone give me a sample using these parameters.
I have acomplished this in visual basic but C++ looks complex.
Visual basic = (
Set con = New ADODB.Connection
con.Open "sql2000", "howard", "howard1
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
SQLstring = "Select * from oslist where osname = 'Windows 2000 Server'"
rst.Open SQLstring, con, adOpenStatic, adLockReadOnly)
How can I accomplish the same thing in VC++?
What include files do I need?