Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2008 > SQL Server 2008
|
SQL Server 2008 General discussion of SQL Server *2008* version only - not related to a specific book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 26th, 2015, 12:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Copy ENTIRE database including table contents and user ids

Perhaps I'm just not searching using the right keywords, but is there really no SIMPLE way to copy an entire SQL Server database from one server to another, including:
  • ALL tables
    • Primary keys, indices, identity specifications and any other settings not specifically listed here but whose oimission cause problems
    • Complete table contents
  • ALL views created as actual VIEWS instead of changing them to tables (Why would I ever want a view converted to a table, MS?)
  • ALL Stored Procedures
  • ALL Functions
  • ALL Users
    • At the server level if they do not already exist there
    • Then foir the database with all the same permissions granted automatically
  • And any other database objects or features not explicitly listed here but which I might need in order to reproduce some problem in production in our test environment?
 
Old March 26th, 2015, 02:57 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Full backup should have all of that
 
Old March 26th, 2015, 03:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Not an option.

Any other suggestions?
 
Old March 26th, 2015, 07:22 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I have been told this before. No you cant create a .bak file, even if you could you cant restore it...... This is the easiest option for you. Someone has this access and can do it. It took me a few weeks but I did manage to email the right people and get it done in the end.

No other option I am aware of. Whoever has given you this requirement with such restrictions has unrealistic business expectations.

I use SQLServer TableDiff to move data from one instance to another. You do have this option available on 2008 but it will not move everything you need moved.
__________________
Wind is your friend
Matt
 
Old March 27th, 2015, 08:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

That's what I thought.

Thanks!
 
Old March 27th, 2015, 10:33 AM
Authorized User
 
Join Date: Mar 2015
Posts: 34
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Still looking for solution?
 
Old March 27th, 2015, 10:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

What do you suggest?
 
Old March 28th, 2015, 03:30 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

I believe you can also detach the database and attach it in a different location.

Why can't you make a backup of the database?
 
Old March 29th, 2015, 06:46 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

IMO detach and attach is no where near as good as taking a backup. Also i doubt your ability to detach a database given your limited permissions. Base don your post I assume permissions is why you cant create a backup...
__________________
Wind is your friend
Matt
 
Old March 30th, 2015, 01:12 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

It works though, doesn't it? I haven't seen any difference myself.

If you don't have permission to back up the database maybe you should leave it alone.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy entire XML except, but change a few nodes... vb89 XSLT 17 March 16th, 2011 03:26 PM
Copy entire document after transform macmillan01 XSLT 2 July 13th, 2009 07:28 AM
copy table from one access database to another acc fabdulla SQL Language 5 November 21st, 2007 11:13 AM
Copy/import a table from one database to another rguerett ADO.NET 4 May 16th, 2007 10:46 PM
copy entire row stealthdevil Access VBA 3 December 1st, 2006 11:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.