If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ms sql server and delphi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-04, 20:58
popskie popskie is offline
Registered User
 
Join Date: Oct 2004
Location: In cousin's house
Posts: 303
Unhappy ms sql server and delphi

hi,
how to acces ms sql server from delphi front end. Can you give a sample code.

thanks...
Reply With Quote
  #2 (permalink)  
Old 01-04-05, 02:37
prajesh prajesh is offline
Registered User
 
Join Date: Jan 2005
Posts: 8
Quote:
Originally Posted by popskie
hi,
how to acces ms sql server from delphi front end. Can you give a sample code.

thanks...
Can you please provide the versions of SQL Server and Delphi that you are using ?
Reply With Quote
  #3 (permalink)  
Old 02-22-05, 04:23
firasarramli firasarramli is offline
Registered User
 
Join Date: Oct 2003
Location: Jordan
Posts: 28
Talking

Hi

Place an ADO Connection in your form. then



procedure TForm1.FormCreate(Sender: TObject);
begin

ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;Password=password;Persist Security Info=True;User ID=sa;Initial Catalog=DATABASE;Data Source=SERVERNAME'

or SERVERNAME can be (local) if you're using MSDE on local pc


to connect

Try
ADOConnection1.Open;
Except
End;
end;
__________________
Firas arramli
Systems Analyst
Reply With Quote
  #4 (permalink)  
Old 02-23-05, 03:25
popskie popskie is offline
Registered User
 
Join Date: Oct 2004
Location: In cousin's house
Posts: 303
hi
I have delphi 5 professional editon and ms sql 2000 but I have no ado componet.

Thanks for the reply but i already migrating to C#.

popskie.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On