How to create connection to MSSQL?

Forum related to MS SQL Server

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
avmesquita
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 25.10.2006, 20:37
Location: Niterói, RJ, Brasil
Contact:

How to create connection to MSSQL?

Post by avmesquita »

How to create connection to MSSQL?

What params, DLLs, etc?

tnks,

Andre
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi Andre,

in case you didn't solve your prolem, yet: The connection to any MSSQL Server is done by using the Microsoft OLE DB Provider for SQL Server. Be sure to have this provider installed. If this is done, the only thing you have to do is to drop a TZConnection on your data module or form and choose "ado" as protocol then click the "..." button found with the "Database" property of the TZConnection. Process the dialog that will pop up:

Provider: "Microsoft OLE DB Provider for SQL Server"

Connection: 1) the server(name) if resolved via DNS or its IP-address 2) username and password 3) the database to be used

Test your connection ... and confirm your setting by clicking "OK" ... that'll be all ... ;-)
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
avmesquita
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 25.10.2006, 20:37
Location: Niterói, RJ, Brasil
Contact:

Post by avmesquita »

Thanks!

Exists two kinks of "protocol" property: ADO and MSSQL.

ADO works fine. MSSQL didn't work.

;)
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi,

to use the MSSQL protocol you have to install the MSSQL Client Software ;-) ADO (SQL OLE DB) runs without any installations ...
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
avmesquita
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 25.10.2006, 20:37
Location: Niterói, RJ, Brasil
Contact:

Post by avmesquita »

Tnks!

I will install it.... :>
victorgugo
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 16.08.2009, 20:29

Post by victorgugo »

Hi!
I have installed ms sql server 2008 express edition and using "Microsoft OLE DB Provider for SQL Server" generates error: this driver doesn't exist! Can anyone explaine me how to connect to this version of server!

____________
Lazarus 9.0.27
ZEOSDBO 6.6.5 Stable
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Which protocol have you set? ADO or MSSQL?
victorgugo
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 16.08.2009, 20:29

Post by victorgugo »

Which protocol have you set? ADO or MSSQL?
ADO!
Post Reply