Generate a sql script
DerFrank
Posts: 4 New member
Hi REDGATE users / experts
I'm still at the beginning and have installed the RedGate "SQL Source Control" ... it is now also usable on SSMS 2017 ...
Here is my question:
How can I create an script to install the changes on a test server?
In my repository are many directories ... but now I am a NewBee and I dont know how can i this generate .. hmmm
REDGATE to installed on test server is not allowes! Only on developer Server.
Only installation scripts are allowed and are previously checked by the DB admins ...
the same thing will be done on PreProd / Prod!
How is the doing to do this?
Hope you can still help me.
VG
Frank
Tagged:
Answers
If you don't have privileges to connect to the target server, but have a test database that you are confident represents the schema state of production, then you can generate a SQL script in SQL Compare (an option in the deployment wizard) using the test DB as the target, and pass this script on to a DBA who has rights to apply the script to pre-prod or production.
All of this can also be set up using an automated pipeline if you have a CI server and an automated release tool.
Product Manager
Redgate Software
Okay, maybe I did not really explain what I want to do.
We are developing together on a database, expanding tables and adding or changing data in the tables.
These changes are committed with the source control in the GIT repository.
Now I want to deploy these changes as a script to a different environment in the database.
The deployment wizard creates a script with the changes to the database object, not the data itself.
These data are configuration data needed for generic SQL statements.
If so, then SQL Data Compare can deploy the static data.
Product Manager
Redgate Software
With SQL Source Control I pushed my database (SQL Server 2014) into this Ropository.
So, now I want to do a build and deploy with TFS.
I just want the DEV environment to provide the changes to the TEST / STAGING / PROD environment.
How does it work ?
Have I looked at many videos of REDGate but did not understand how the "REDGATE DML" be configured.
Is there no step-by-step instructions on how to do this on TFS 2015/2017?
I am already 2 days to understand this but slowly I am with my patience at the end.
Maybe LiquiBase better.... hmm
Hope there is someone who can explain that to me?
VG Frank
Product Manager
Redgate Software
- Use the VSTS Build extension with SQL Source Control Project
- Use the VSTS Release extension with an approval step
Hope this helps.Lead Software Engineer | Red Gate
Website: www.productivecsharp.com
Twitter: @angella_andrea
- Use the VSTS Build extension with SQL Source Control Project
- Use the VSTS Release extension with an approval step
Hope this helps.Lead Software Engineer | Red Gate
Website: www.productivecsharp.com
Twitter: @angella_andrea