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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connect to a SQL server 2005 database

Status
Not open for further replies.

707230

Programmer
Nov 21, 2006
2
0
0
BE
hello,
if i want to connect for example to an access database
i do it simple like this:
exec SQL
connect to "jdbc:eek:dbc:Driver={Microsoft Access Driver (*.mdb)};
DBQ=C:\Stage.mdb"
DRIVER "sun.jdbc.odbc.JdbcOdbcDriver"
end-exec
exec SQL
set transaction read only
end-exec.
But how can i connect a SQL server database db.mdf?
I am searching for 4 hours..
Please help me
 
I am using PERCobol.
I know that i can find the connection strings on that link, but no one works in cobol..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top