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
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+[;]thanks for yuor reply.
I also use ado to connect to sql dbase,
but i have an old program with odbc connection.
before to convert the old program to ado instructions,
i would like to make the automatic creation of the odbc dsn.
ciao, marzio
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+[;]