IT Community - Software Programming, Web Development and Technical Support

data refresh automating on MS Sql 2005

This is a discussion on data refresh automating on MS Sql 2005 within the Database Support forums, part of the Web Development category; data refresh automating on MS Sql 2005 Frequently we get request of data refresh. Its curbersome process everytime to take ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 05-13-2009, 11:55 PM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default data refresh automating on MS Sql 2005

data refresh automating on MS Sql 2005

Frequently we get request of data refresh. Its curbersome process everytime to take backup from prod and restore in development/test region. I am thinking to automate this process using stored procedure. But I need to pass various parameters to SP to tell where is source, destination, domain, etc.,
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-13-2009, 11:56 PM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: data refresh automating on MS Sql 2005

Hi,

Here's a few questions I have (and this serves to test out neven's new List hack to YAF):

Do you need to do a full "data refresh" at the test server? In other words, do you basically delete the old database and replace it with a new copy?

Can you change structure of the tables of the production database to add a "Status" type of column?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-13-2009, 11:56 PM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: data refresh automating on MS Sql 2005

Hi,

We usually take latest backup copy of production database and then restore it in development/test server, overwriting the existing one. After that, map the users/logins.
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-13-2009, 11:59 PM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: data refresh automating on MS Sql 2005

Hi,

you're having trouble with users not mapping up to logins, eh? Having to resort to using sp_changeuserslogin? Ugggh! There are better ways

In your case, I think that the backup/restore is the perfect choice. Had you only needed certain parts of the database then I would've suggested SSIS and other techniques. Backup/restore is the fastest way and the easiest to manage. I have a few backup-related stored procedures that I use (in my SQL Server scripts) to do this very thing.

You'll also want to check out sp_helprevlogin for SQL Server - it may prevent you from needing to run sp_changeuserslogin ever again
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I run all VS Pro 2003, 2005 and 2008 as clients with VS Team System 2005? shaalini Server Management 1 05-08-2009 03:08 AM
Unable to save string data into a table in SQL Server 2005 database tskmjk VB.NET Programming 0 10-07-2008 03:12 AM
Is there any way to load data in dropdownlist based on the other without Page Refresh poornima ASP and ASP.NET Programming 2 03-15-2008 01:38 AM
Describe some problem that you had with automating testing tool? devarajan.v Software Testing 1 07-27-2007 06:04 AM
How did you see automating testing tools in your job? devarajan.v Software Testing 1 07-27-2007 04:32 AM


All times are GMT -7. The time now is 11:34 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0