显示标签为“mdf”的博文。显示所有博文
显示标签为“mdf”的博文。显示所有博文

2012年2月11日星期六

Basic SQL Server Question

After creating database in SQL Server , it generates .mdf , .ndf
datafiles .
Generally if we get those datafiles then we can create the database
with tables/data on another machine by using those datafiles.

I want to know, if we can we protect this? I don't want another user
to take those files and create database on another SQL Server. Is
there any option available in SQL server while creating database to
protect this file with password or any darn thing for protection that
would not allow to create the database by using those file or any
workaround.

Thanks in advance for your help."Ashwani" <engg_akyadav@.yahoo.com> wrote in message
news:c1710804.0410050549.7c3ab340@.posting.google.c om...
> After creating database in SQL Server , it generates .mdf , .ndf
> datafiles .
> Generally if we get those datafiles then we can create the database
> with tables/data on another machine by using those datafiles.
> I want to know, if we can we protect this? I don't want another user
> to take those files and create database on another SQL Server. Is
> there any option available in SQL server while creating database to
> protect this file with password or any darn thing for protection that
> would not allow to create the database by using those file or any
> workaround.
> Thanks in advance for your help.

No, that's not possible (you can set a password on a backup set, though).
However, since only administrators should be able to access the server
filesystem, the best approach is simply to ensure that you're following
standard security procedures: NTFS permissions are properly set
(administrators and the MSSQL service only), no users have direct access to
the filesystem, no one has sysadmin access except sysadmins etc.

You can use the MBSA to check your current security configuration:

http://www.microsoft.com/technet/se...s/mbsahome.mspx

Also see the resources here about securing SQL Server:

http://www.microsoft.com/sql/techin...ity/default.asp

Simon

2012年2月9日星期四

basic restore question

Is it possible in SS2K5 to restore from a backup between databases with
different MDF/LDF file locations? I don't have the option to recreate the
original directory structure on the target.
PaulCheck Books Online for the MOVE option to RESTORE DATABASE command.
"PJ6" <noone@.nowhere.net> wrote in message
news:ujFvDp1BIHA.536@.TK2MSFTNGP06.phx.gbl...
> Is it possible in SS2K5 to restore from a backup between databases with
> different MDF/LDF file locations? I don't have the option to recreate the
> original directory structure on the target.
> Paul
>|||Never mind, I got it. I finally found an example of RESTORE with MOVE and
discovered that the original file names must be specified without a path or
extention.
Paul
"PJ6" <noone@.nowhere.net> wrote in message
news:ujFvDp1BIHA.536@.TK2MSFTNGP06.phx.gbl...
> Is it possible in SS2K5 to restore from a backup between databases with
> different MDF/LDF file locations? I don't have the option to recreate the
> original directory structure on the target.
> Paul
>