Re: Can see deleted data in MDF & Backup



Elmo,

All of those things can be scripted, but they will need to be sure to
include all parts. I don't know which version of SQL Server you are on, but
(although there are differences) you can script out from the GUI.

SQL Server 2000 is easier, since the script database has options to choose
all of these things.

SQL Server 2005 is not as encompassing a script.
1. Roles and Users can be selected and scripted.
2. There is no GUI tool to generate role memberships, but here is one
Erland Sommarskog wrote:

SELECT 'EXEC sp_addrolemember ''' + r.name + ''', ''' + u.name + ''''
FROM sys.database_role_members rm
JOIN sys.database_principals u
ON rm.member_principal_id = u.principal_id
JOIN sys.database_principals r
ON rm.role_principal_id = r.principal_id
WHERE u.name <> 'dbo'

3. The create database can be scripted.
4. All Objects (tables, views, stored procedures, etc, (except for encrypted
stored procedures.)) with permissions are scriptable.

Moving data from one database to another is not really scripted, but the
Import and Export wizards work fine, provided you are at an up-to-date
service pack for both the server and the tools.

Or there are tools, such as Red Gate SQL Compare, that can be instructed to
handle all of those issues. (Compare original database to blank database
and get a script of everything that needs to be scripted into the new
database.) I use Red Gate, but there are others and I really recommend that
a SQL Server shop have such tools on hand at all times.

Getting this done this way is obviously a lot more work than just getting a
backup, but it may reduce the concerns for your clients.

RLF


"Elmo" <Elmo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6DB58D4B-EFBE-4D45-8250-C720511C630E@xxxxxxxxxxxxxxxx
Thanks Russell

Will this include all of the security and users/user groups and existing
data from the tables etc. Would they be able to do this using scripts?



"Russell Fields" wrote:

Elmo,

Have them use scripts (these can be generated from Enterprise Manager
(2000)
or Managment Studio (2005)) to create another database. Then use the
data
import wizards to import the remaining data from their database into the
new
database. Only the data will come over, not the pages that still contain
undeleted fragments of sensitive data.

Then they can send you the new database.

RLF

"Elmo" <Elmo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0351943A-B16E-4351-B3C6-12A5BBC5B7B2@xxxxxxxxxxxxxxxx
I have a customer who need to send us their database but wont do so
because
of sensitive info contained in it. They have tried deleting and
truncatng
the data but you can still see the data if you open the mdf or backup
with
a
text editor?





.



Relevant Pages

  • Re: Enterprise Manager Newbie Question
    ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
    (microsoft.public.sqlserver.tools)
  • Re: Cannot Open SQL Server Table in Access.ADP File.
    ... Other possiblities would be that you didn't refresh the database window ... I have an SQL Server 2005 database which functions properly with my ... the Generate Script Wizard to recreate the SQL Server Database. ... Then, If I attempt to open another table, it opens. ...
    (microsoft.public.access.adp.sqlserver)
  • RMAN backup strategy on 10g r2 on linux
    ... "Oracle Database 10g Linux Administration" book in order to understand ... how to efficiently backup and restore our instance of the db. ... I wrote a shell script that is called by cron every night. ...
    (comp.databases.oracle.server)
  • Re: RMAN backup strategy on 10g r2 on linux
    ... running (e.g. if your database was created after Oracle installation ... database, which of course is the proverbial chocolate fireguard. ... how to efficiently backup and restore our instance of the db. ... I wrote a shell script that is called by cron every night. ...
    (comp.databases.oracle.server)
  • Re: SQL Security
    ... except I'm having problems making it work in a script. ... ;Set properties of DB objects and open connection to database ... > from Books Online (within the SQL Server program group): ... > communicate with SQL Server. ...
    (microsoft.public.sqlserver.server)