SQL DB to another server?

#1 VM Backup : Modern Data Protection for VMware vSphere and Microsoft Hyper-V

SQL DB to another server?

Postby nguyent » Mon May 16, 2011 10:08 pm

Hi,
What is best way to move SQL veeambackup and veeambackupreport DBs to another server?
Thanks
NguyenT
nguyent
Enthusiast
 
Posts: 65
Liked: never
Joined: Wed May 19, 2010 6:53 pm
Full Name: Tan Nguyen

Re: SQL DB to another server?

Postby Gostev » Mon May 16, 2011 11:55 pm

Hi, the best (and only) way to do this is to move SQL database to another server using standard procedures, and then update the registry settings for database connection on the Veeam server. Thanks.
Gostev
Veeam Software
 
Posts: 12991
Liked: 334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: SQL DB to another server?

Postby nguyent » Tue May 17, 2011 2:08 pm

Gostev,
Thanks, Is there document somewhere for standard procrdures?
Nguyent
nguyent
Enthusiast
 
Posts: 65
Liked: never
Joined: Wed May 19, 2010 6:53 pm
Full Name: Tan Nguyen

Re: SQL DB to another server?

Postby Alexey D. » Tue May 17, 2011 3:01 pm

Tan,

You have to stop Veeam services (Enterprise Manager's service as well), detach both databases, move MDF and LDF files to the desired server and register databases there. Then you should update these registry keys with corresponding (new) settings:

(for B&R console)
Code: Select all
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlServerName
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlInstanceName
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlDatabaseName

(for Enterprise Manager)
Code: Select all
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlServerName
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlInstanceName
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlDatabaseName

Then you can start services back, and everything should work fine.
Alexey D.
 

Re: SQL DB to another server?

Postby nguyent » Tue May 17, 2011 3:43 pm

Alexey,
Thanks
Tan
nguyent
Enthusiast
 
Posts: 65
Liked: never
Joined: Wed May 19, 2010 6:53 pm
Full Name: Tan Nguyen

Re: SQL DB to another server?

Postby nguyent » Thu Jun 09, 2011 7:21 pm

Alexey D. wrote:Tan,

You have to stop Veeam services (Enterprise Manager's service as well), detach both databases, move MDF and LDF files to the desired server and register databases there. Then you should update these registry keys with corresponding (new) settings:

(for B&R console)
Code: Select all
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlServerName
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlInstanceName
HKLM\Software\VeeaM\Veeam Backup and Replication\SqlDatabaseName

(for Enterprise Manager)
Code: Select all
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlServerName
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlInstanceName
HKLM\Software\VeeaM\Veeam Backup Reporting\SqlDatabaseName

Then you can start services back, and everything should work fine.



Alexey
I did move the DBs to another SQL and everything works fine until I am trying to upgrade to 5.0.2 230. I got error 27552. Error creating database VeeamBackupReporting server: Microsoft SQL server hcsql1 (this is old server that I did modify registry to new server hcsql). Where else can I modify it?
Thanks
Tan
nguyent
Enthusiast
 
Posts: 65
Liked: never
Joined: Wed May 19, 2010 6:53 pm
Full Name: Tan Nguyen

Re: SQL DB to another server?

Postby Alexey D. » Fri Jun 10, 2011 8:49 am

Tan, the error is related to Enterprise Manager's database. Are you sure you've properly set "HKLM\Software\VeeaM\Veeam Backup Reporting\SqlServerName" key? That's the only place to specify the server, please double-check it.
Alexey D.
 

Re: SQL DB to another server?

Postby Vitaliy S. » Fri Jun 10, 2011 8:52 am

Also I would recommend either looking at the setup log file located in the %TEMP% folder for other references causing this error message or reach our support team as usual :wink:
Vitaliy S.
Product Manager
 
Posts: 8299
Liked: 201 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: SQL DB to another server?

Postby nguyent » Fri Jun 10, 2011 1:17 pm

Alexey D., Vitaliy S.,
Thanks for reply. I had to delete DB and reinstalled Enterprise Manager that created new DB. However it took me to another problem that all test scripts were failing such as DNS, Domain Controller and etc. I will check with help desk.
Tan
nguyent
Enthusiast
 
Posts: 65
Liked: never
Joined: Wed May 19, 2010 6:53 pm
Full Name: Tan Nguyen

db question

Postby flavor4real » Wed Jul 13, 2011 6:17 pm

[merged]

Is there a way to point to a new db after you have installed and run veeam successfully? or do I have to completely uninstall Veeam and then point to the new db ?
flavor4real
Expert
 
Posts: 190
Liked: 5 times
Joined: Mon Nov 22, 2010 7:57 pm
Full Name: DS

Re: SQL DB to another server?

Postby Daveyd » Fri Jul 27, 2012 7:53 pm

If the Veeam DB is installed locally in a named instance "Veeam" and I want to move the DB to a remote SQL server under the default SQL instance and not into a separate named instance, on the Veeam server, what would I need to change the registry settings for "SqlInstanceName" to? Just the SQL server name?
Daveyd
Expert
 
Posts: 235
Liked: 6 times
Joined: Thu May 20, 2010 4:17 pm
Full Name: Dave DeLollis

Re: SQL DB to another server?

Postby Vitaliy S. » Sat Jul 28, 2012 7:25 pm

I guess it should be either blank or you will need to specify default SQL instance name - "Mssqlserver".
Vitaliy S.
Product Manager
 
Posts: 8299
Liked: 201 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: SQL DB to another server?

Postby Daveyd » Fri Aug 03, 2012 3:42 pm

After moving the SQL DBs to a remote server, would there be any reason to keep the embeded SQL version running on the original server?
Daveyd
Expert
 
Posts: 235
Liked: 6 times
Joined: Thu May 20, 2010 4:17 pm
Full Name: Dave DeLollis

Re: SQL DB to another server?

Postby Gostev » Fri Aug 03, 2012 3:46 pm

No... uninstall it.
Gostev
Veeam Software
 
Posts: 12991
Liked: 334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: SQL DB to another server?

Postby Daveyd » Fri Aug 03, 2012 3:50 pm 2 people like this post

Thanks Gostev. BTW, in response to my question about moving the DB to a remote SQL server with multiple instances...You have to blank out the SqlInstanceName registry setting if you want to use the default instance. Using Mssqlserver will not allow the Veeam services to start.
Daveyd
Expert
 
Posts: 235
Liked: 6 times
Joined: Thu May 20, 2010 4:17 pm
Full Name: Dave DeLollis


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, Gostev, HPersson, SmithJohn, Stephane B and 24 guests