Red Gate forums :: View topic - Generate migration scripts on command line
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 3
SQL Source Control 3 forum

Generate migration scripts on command line

Search in SQL Source Control 3 forum
Post new topic   Reply to topic
Jump to:  
Author Message
toeairina



Joined: 09 Apr 2013
Posts: 2

PostPosted: Wed Apr 10, 2013 10:42 am    Post subject: Generate migration scripts on command line Reply with quote

Hi!
I have one SQL Sever database using RedGate SQL Source Control.
And i want to generate migration scripts between 2 versions in source control using command line for the same database.

Can anyone help me about this issue?
Thanks
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1113
Location: My desk.

PostPosted: Fri Apr 12, 2013 1:08 pm    Post subject: Reply with quote

Migration scripts can only be generated through the SQL Source Control interface unfortunately, and not at the command-line.

Feel free to request this ability on our Uservoice though, and we can see how many other users would like to see it as an option.
Back to top
View user's profile Send private message
toeairina



Joined: 09 Apr 2013
Posts: 2

PostPosted: Fri Apr 12, 2013 1:38 pm    Post subject: Reply with quote

Thanks for your response.
I found a solutions that helps me:

sqlcompare /Sourcecontrol1 /versionusername1:username /versionpassword1:passwd /revision1:100 /scriptsfolde
rxml:C:\SourceControlLocation.xml /SourceControl2 /versi
onusername2:username /versionpassword2:passwd /revision2:90 /scriptFile:C:\Scripts\WidgetSyncScrip.sql
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group