stored procedures firing before connect

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Senad
Posts: 34
Joined: Tue 10 Dec 2013 08:07

stored procedures firing before connect

Post by Senad » Wed 22 Nov 2017 09:26

Why are the stored procedures, that set to fire on afterconnect event of the
uniconnection, firing in uniconnectdialog when trying to select a database ?
This is SQL server 2014 with unidac 7.0.2.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: stored procedures firing before connect

Post by Stellar » Thu 23 Nov 2017 09:56

When retrieving the list of databases, a connection to the master database of the selected server is established in the SQL Server instance. After a successful connection, the AfterConnect event occurs, which you process and execute the stored procedure.

Post Reply