I read the FAQ.....
I've got the DevArt SDAC trial components installed and I am trying to establish a connection to the SQL server.
I'm using Delphi 7 with sql server 2008 standard R2. I would really appreciate a step by step tutorial on how to set up the connection; sql server is a brand new install and I am reading MSDN articles, but could really use a hand.
Does anyone have any suggestions, please?
Thanks you,
Mark
SQL server to Delphi
-
AndreyZ
Hello,
To connect to SQL Server, you can use the following code:If you cannot connect, please specify the exact error that occurs.
To connect to SQL Server, you can use the following code:
Code: Select all
MSConnection.Server := 'server';
MSConnection.Username := 'username';
MSConnection.Password := 'password';
MSConnection.LoginPrompt := False;
MSConnection.Open;-
AndreyZ