You need to use the SQL-DMO Active-X object. So you will first need to 
import the type library then use the object. SQL-DMO is only installed 
during the SQL server installation. You should be able to find more 
information as to how to use SQL-DMO by googling SQL-DMO Delphi.

-Jeremy

Emmanuel Lamy wrote:
>
> Hi everybody,
>
> Anyone knows if there is a Delphi method that accomplishes the same
> action as the VB "AttachDatabase" method that the VB programer can use
> to "attach" an existing database defined by one or several files to a
> defined instance of SQL Server? Or better, is there an alternative as
> to register an external SQL database file with another instance of a
> SQL Server, or SQL Express? Any hint or suggestions welcome. TIA.
>
> Emmanuel
>
>  

Reply via email to