Is it possible to let a SQL Server watch a folder for .mdf files and attach new .mdf files automatically?
Is it possible to let a SQL Server watch a folder for .mdf files
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, but is possible to write an app that does just that, see Obtaining Directory Change Notifications. Note that you need the MDF and the LDF, always. Also there are serious security considerations from attaching untrusted databases, and issues with in-place update of the database files (a drop of a SQL Server 2008 database would be automatically and irreversibly upgraded to SQL Server 2008 R2 for example).