Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database File, .mdf

Author  Topic 

free_2flygirl
Starting Member

1 Post

Posted - 2010-09-02 : 01:17:28
I want to attachDBFileName from application to .mdf file..

for example this mdf file in D:\test.mdf

in this database, there is a table, and it has data ->
users : ba and password : ba

however, if i remove this database file from D:\, the application still can connect to database and provides result.

Thank you

agnes

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2010-09-02 : 02:30:00
quote:
however, if i remove this database file from D:\, the application still can connect to database and provides result.
Then this file is not the one connected to your database. In management studio, right-click the database, go to Properties and then go to Files. There you will see the path and the file names of your database files.

- Lumbago

My blog (yes, I have a blog now! just not that much content yet)
-> www.thefirstsql.com
Go to Top of Page
   

- Advertisement -