• This solution is working, the database desapear from the SQL Server 2005...:)

    But the file aux_bd.mdf and aux_bd.LDF still in the derectory "...\Microsoft SQL Server\MSSQL.1\MSSQL\Data" and if i try to create again other db with the same name gives error.

    Is possible to delete those files too?

    (The application is portable so the path to the data derectory can change)....

    eheh, a few hours and google help:

    Select filename From master..sysdatabases Where Name = 'mydatabase'

    returns the path of mydatabase.mdf... for delete the *.ldf is possible to work withe the properties strings

    [In Vb.net is just string.replace()]

    Thanks to all for the help 😀