Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
connecting to mssql server
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[TLineSeries] Slow Prepar...
by
Martok
[
Today
at 01:11:28 am]
help choosing laptop
by
Weiss
[
Today
at 12:35:31 am]
Threads - stringlist and ...
by
Warfley
[May 28, 2023, 10:23:41 pm]
Tips for deep debuging of...
by
Martin_fr
[May 28, 2023, 10:14:09 pm]
How to use customize outp...
by
Martin_fr
[May 28, 2023, 09:52:29 pm]
Fpcupdeluxe
by
Awkward
[May 28, 2023, 08:56:04 pm]
LAMW - simple esc/POS pri...
by
jmpessoa
[May 28, 2023, 08:40:57 pm]
Are We Dead Yet?
by
jmpessoa
[May 28, 2023, 08:30:58 pm]
MemDataset validate not d...
by
eldonfsr
[May 28, 2023, 07:02:49 pm]
New version of BGRABitmap
by
circular
[May 28, 2023, 05:18:09 pm]
first generic attempt
by
Paolo
[May 28, 2023, 04:59:25 pm]
Best way to delete an ins...
by
Handoko
[May 28, 2023, 04:46:46 pm]
Bluetooth on Raspberry, d...
by
pascalbythree
[May 28, 2023, 04:21:35 pm]
Online Package Manager
by
GetMem
[May 28, 2023, 03:54:17 pm]
Non-local goto example ne...
by
alpine
[May 28, 2023, 01:56:19 pm]
Can't load because <x> de...
by
marcov
[May 28, 2023, 01:23:43 pm]
Hole punching - Step by S...
by
nummer8
[May 28, 2023, 12:04:20 pm]
Providing *.deb files for...
by
TRon
[May 28, 2023, 11:49:40 am]
Insert variant array to e...
by
TRon
[May 28, 2023, 11:36:03 am]
Load local HTML file into...
by
c4p
[May 28, 2023, 10:27:28 am]
ZenGL +android + MacOS Co...
by
Seenkao
[May 28, 2023, 02:34:38 am]
[SOLVED] Using high inste...
by
lagprogramming
[May 27, 2023, 07:50:48 pm]
LAMW - default manifest r...
by
jmpessoa
[May 27, 2023, 07:25:21 pm]
Improvements in rtl/objpa...
by
PascalDragon
[May 27, 2023, 06:35:26 pm]
Optimization of for loops...
by
lagprogramming
[May 27, 2023, 03:56:09 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: connecting to mssql server (Read 4624 times)
rcmz
Jr. Member
Posts: 70
connecting to mssql server
«
on:
July 31, 2021, 07:28:13 pm »
hello to all,
I searched the forum for this question and did not find anything helpful.
How can I connect to mssql server ?
TIA
Ramiro
Logged
nouzi
Sr. Member
Posts: 269
Re: connecting to mssql server
«
Reply #1 on:
August 01, 2021, 02:29:05 am »
Use zeosdb
Logged
My English is bad
Lazarus last version free pascal last version
Lazarus trunk free pascal trunk
System : Linux mint 64bit Windows 7 64bit
rcmz
Jr. Member
Posts: 70
Re: connecting to mssql server
«
Reply #2 on:
August 01, 2021, 05:09:30 am »
thx,
do you have a sample project ?
TIA
Ramiro
Logged
LacaK
Hero Member
Posts: 682
Re: connecting to mssql server
«
Reply #3 on:
August 03, 2021, 07:54:46 am »
To connect to MS SQL Server you can use either:
native TMSSQLConnection
or TODBCConnection
both components are placed on
sqlDB
tab in Lazarus IDE
Logged
dseligo
Hero Member
Posts: 984
Re: connecting to mssql server
«
Reply #4 on:
August 03, 2021, 10:14:37 am »
Quote from: rcmz on August 01, 2021, 05:09:30 am
do you have a sample project ?
I also use ZeosDBO for MSSQL. Put TZConnection on form or data module, set database, hostname, protocol and user properties in Object inspector. For protocol I use 'FreeTDS_MsSQL>=2005'. You'll also need library dll (try here:
https://sourceforge.net/projects/zeoslib/files/3rd%20party/FreeTDS/
).
Then set Connected property to true - if there are no errors you are connected.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
connecting to mssql server
TinyPortal
© 2005-2018