Board index » delphi » Exclusive connection to MS SQL Server 7.0

Exclusive connection to MS SQL Server 7.0

Hi, All

Dows anybody know how can I establish exclusive connection to MS SQL Server 7.0 with Delphi 5 in order to restore a database.

Thanks in advance

Best regards,
Vova Ilchenko

 

Re:Exclusive connection to MS SQL Server 7.0


Vova,

You can set the database as "for dbo use only" by using sp_dboption.
If there are existing connections to the database, either you kill them or
ask them to disconnect. :)

HTH,

Mio Nino Marquez

Other Threads