Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2008 > SQL Server 2008
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 26th, 2015, 12:56 PM
Friend of Wrox
Points: 2,702, Level: 21
Points: 2,702, Level: 21 Points: 2,702, Level: 21 Points: 2,702, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 425
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?
Reply With Quote
  #2 (permalink)  
Old March 26th, 2015, 02:57 PM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Full backup should have all of that
Reply With Quote
  #3 (permalink)  
Old March 26th, 2015, 03:41 PM
Friend of Wrox
Points: 2,702, Level: 21
Points: 2,702, Level: 21 Points: 2,702, Level: 21 Points: 2,702, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 425
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Not an option.

Any other suggestions?
Reply With Quote
  #4 (permalink)  
Old March 26th, 2015, 07:22 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
  #5 (permalink)  
Old March 27th, 2015, 08:12 AM
Friend of Wrox
Points: 2,702, Level: 21
Points: 2,702, Level: 21 Points: 2,702, Level: 21 Points: 2,702, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 425
Thanks: 57
Thanked 2 Times in 2 Posts
Default

That's what I thought.

Thanks!
Reply With Quote
  #6 (permalink)  
Old March 27th, 2015, 10:33 AM
Authorized User
Points: 146, Level: 2
Points: 146, Level: 2 Points: 146, Level: 2 Points: 146, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Location: Dhaka, Bangladesh
Posts: 39
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Still looking for solution?
Reply With Quote
  #7 (permalink)  
Old March 27th, 2015, 10:39 AM
Friend of Wrox
Points: 2,702, Level: 21
Points: 2,702, Level: 21 Points: 2,702, Level: 21 Points: 2,702, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 425
Thanks: 57
Thanked 2 Times in 2 Posts
Default

What do you suggest?
Reply With Quote
  #8 (permalink)  
Old March 28th, 2015, 03:30 PM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
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?
Reply With Quote
  #9 (permalink)  
Old March 29th, 2015, 06:46 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
  #10 (permalink)  
Old March 30th, 2015, 01:12 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10: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 10:39 AM



All times are GMT -4. The time now is 02:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.