hi,
can someone post to me the file TDSN.CH for the class tdsn?
(to automatically create a dsn in ODBC)
thanks in advance
marzio
cConnectString := "DRIVER={Progress OpenEdge 10.2A Driver};host=trg-triniumdb;uid=MyUserId; password=MyPassWord; port=12000;db=us_live;"
oRecordSet := CreateObject( "ADODB.Recordset" )
cSql := [SELECT * FROM MyTable]
? 'Connect String = '+cConnectString
? 'Sql String = '+cSql
oRecordSet:Open( cSql, cConnectString, 0, 1 )
::cDriver := [{"Driver={Microsoft Access Driver (*.mdb)}]
::cHost := []
::cUserId := []
::cPassword := []
::cDatabase := [\\Trg210\webcenter\Database\webcenter40.mdb]
::cConnectString := [DRIVER=]+::cDriver+[;]+ ;
[dbq=]+::cDatabase+[;]
oConn.Open "Driver={SQL Server};" & _
"Server=MyServerName;" & _
"Database=myDatabaseName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
Or in xHarbour
::cDriver := [{SQL Server}]
::cServer := [MyServerName]
::cUserId := [myUsername]
::cPassword := [myPassword]
::cDatabase := [\\Trg210\webcenter\Database\webcenter40.mdb]
::cConnectString := [Driver=]+::cDriver+[;]+ ;
[Server=]+::cServer+[;]+;
[Database=]+::cDatabase+[;]+;
[Uid=]+::cUserId+[;]+;
[Pwd=]+::cPassword+[;]
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 96 guests