Home > Back-end >  Dynamically create the odbc data source of the problem
Dynamically create the odbc data source of the problem

Time:10-15

How to dynamically create the odbc data source use SQL server driver configuration using the network login id Windows NT validation, is to use the program to let his configuration is to use network login id Windows NT authentication, the default is to use the user to enter the login id and password of the SQL server authentication

CodePudding user response:

Procedure TForm1. Button1Click (Sender: TObject);
The begin
//create ODBC DSN SQL Server data source
If the trim (edit1. Text) & lt;> "' then
The begin
If CreateSQLServerDsn (trim (Edit1. Text), trim (Edit2. Text), trim (edit7. Text), trim (Edit3. Text)) then
The begin
Showmessage (' ODBC to create success! ');
End the else
The begin
Showmessage (' ODBC create failure! ');
end;
End
end;


May refer to

CodePudding user response:

  • Related