Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
i create a program that it use database(sql).

i tested it in another computer that installed sqlexpress with Advanced Services in it.
i installed part of sqlexpress(only SQL Server Database Engine and Full-Text Search) in target computer.

Now,service of sqlexpress don't protect from delete mdf file when it Attached to sqlexpress.

i want that service of sqlexpress protect from mdf file when it Attached to sqlexpress.

Please guide me,Thanks.
Posted
Updated 3-Sep-10 8:29am
v5

1 solution

You might want to setup SQL user accounts so that other accounts do not have permission to drop the database, only look at / add things.

If you are talking about the fact the it seems that SQL Express 2008 will let you delete the mdf file from under it when you startup if nobody is using the database then you could always make a small app/service that gets put on the startup of the system to start pinging that database so that it gets loaded into memory. I know that is a bit extreme way to do it but it is not hard to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900