here is the deal.

I have made a database application. It is using the MS-SQL as the Database server. At the time of deployement, i added the .MDF and the .LDF file of the database to the setup.exe file which is then copied to the installed directory of my program. Now what i want to do is to attach the copied .MDF and .LDF file to the MS-SQL server, so that my application can interact with the database.

I can do the same thing, from with in the Enterprise Manager of MS-SQL, right clicking on the Database > Attach Database.

Please help me out, this thing is sucking me up, and i have tried to search it every where i can, but no use