Red Gate forums :: View topic - How to commit custom script in source control & deployment
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

How to commit custom script in source control & deployment

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



Joined: 30 May 2013
Posts: 11

PostPosted: Thu May 30, 2013 8:01 am    Post subject: How to commit custom script in source control & deployment Reply with quote

Hi Team,

Most part of our changes are not going to be schema or any other db object changes but it will be from DDLs, inserts, updates and deletes

1. How to make sure DDLs supported in this auto deployment, this is not just for static tables but any data manipulation script for any table

2. How we can commit and deploy the custom script through source control

3. How ordering of scripts can be done when required, there can be situation where script 1 need to be run after script 3 and check in order can be different.

Thanks in advance!!

Joseph
Back to top
View user's profile Send private message
james.billings



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

PostPosted: Mon Jun 03, 2013 12:44 pm    Post subject: Reply with quote

Thanks for your post.

Unfortunately you cannot easily commit custom scripts on their own with SQL Source Control.

We have a facility called "Migration Scripts" which lets you add your own scripts (see here) but these are created at the point you commit other changes (you can't create them on an ad-hoc basis)

You also cannot really control the ordering of the scripts. A migration script will cover changes between a pair of revisions of changes; so a script covering an earlier set of revisions would usually get run before a script covering later revisions, however the only way to ensure everything was run in a specific order would be to have one script containing everything.
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