Deploying SSRS on SQL Server via tfs - sql-server

I want to deploy a SSRS project from a TFS server to another server (ProdServer) as a job in SQL Server and run it dynamically.
How I can do it please.

You can try to write Batch script or use utility such as RS.exe to deploy the report, then in TFS Build definition call the script or utility.
Write script to deploy the report, reference this article. For
Utility reference this thread:
Reporting Services Deployment
Create a Scheduled build definition and add the step
BatchScript/Command Line/PowerShell to call the script/utility
Below threads also for your reference:
Best Practice for Deploying SSRS Reports
SQL Server Reporting Services Basics: Deploying Reports

Related

Enable Integration Services on a remote server

I am attempting to deploy an SSIS package on a remote SQL Server by following the following tutorial. My issue is that the Integration Services Catalogs folder is empty and when I try to create a catalogue, I get the following error:
The path to the catalog backup file could not be determined.
Integration Services might not be installed on this server, or the user may not have the appropriate access permissions
Is it even possible to achieve my goal on a remote server or do I absolutely need access to the machine on which it is running on?
Once SSIS is installed on the server, you can create the SSIS catalog and deploy SSIS projects to the catalog remotely.

SQL Database Project build and publish thru jenkins

Database - SQL Server
Version control - GIT/Bit bucket
Automation - Jenkins pipeline.
Question/task - I need to build SQL database project & deploy thru jenkins pipeline.
Currently we manually build & publish the database but I have scripts which I can use to build(dacpac) & publish to the database but problem scripts only work in VS(visual studio) command prompt.
Build SQL database project thru Jenkins - Is it possible, if so how?
Publish SQL database project thru Jenkins - Is it possible, if so how?
Please help me understand the process involved.
I used the DacFx API provided by Microsoft and created an API service that I integrated with jerkins. In the middle of the pipeline, I passed the SqlProject location, my target database information, and dacpac destination. The API uses Publish Method to Deploy and generate the delta and deploy it to the target database.
See the link below.
https://www.nuget.org/packages/Microsoft.SqlServer.DACFx

How to create a SQL Server database on production server

I'm working on an Angular / .Net core project, and I want to deploy it on my homemade server equipped with Windows Server 2016.
I'm stuck at figuring out the best way to create my database from my migrations files. I've seen some topics on stackoverflow about it, but I don't want to make mistakes on my server, so I'm asking for the best way to do that.
The first option I think is to install Visual Studio IDE on my server. Then I can open my project and run an Update-database command, which will read all migrations files and create database.
But I don't think I'm supposed to install Visual Studio on a server...
The second option is something I saw on StackOverflow. In my development environment, I can use the command dotnet ef migrations script, which will generate a script.
But I'm not sure where I should put this script. I think probably in Microsoft SQL Server Management studio, New query and put my script.
Could you please tell me the best way ?
you need dotnet sdk in order to use dotnet ef migrations script but you can use your development pc to connect to your remote SQL Server and do migrations. for this, just point your connection string to remote SQL Server and use either Update-Database or dotnet ef update database
Another solution exists and You can use SQL server Generate Script to query all your database objects and execute it on target SQL server.
The best way you can do "first create" of your database in production environment is to Generate Script from SSMS (SQL Server Management Studio) and run that script on production Db server. The reason of that is because your database is empty (you can put all of data in script) and you can easily change the name, etc.
After that, on new versions of your application, the best way is to use Update-Database -Script and save/add that script to your deployment scripts.
When you are preparing for go-live, try that scripts with ROLLBACK TRANSACTION, if something fails...

What actually happen background when an SSIS package is being created?

Can any one explain what actually happens in the background of SQL SERVER while a SSIS Package is being created.
what does SQL SERVER actually do to create a package?
Help would be appreciated.
You create a package using a tool such as Visual Studio. Sql Server is not involved at all.
There are multiple deployment options. If you deploy to a file system the package can be run with CMD, Powershell, a windows app... In this case, again, Sql Server is not involved until the package is run.
If you deploy to MSBD the package is stored there. This was called deploying to Sql before version 2012.
If you deploy to the Integration Services Catalog then info is stored in the SSISDB database.
There is plenty of information available on the specific details of these scenarios.
SSIS packages are just automated processes that gives us Interactive drag and drop interface and when we do that using particular tool for a particular purpose(say importing csv file into DB) it automatically creates all coding behind the scenes like query to create table and insert commands for inserting all data from csv to DB table.

Using SSIS to build a database from a VS2005/2008 database project

How do I allow an SSIS package to consume a Visual Studio 2005 or 2008 Database project which houses the creation scripts for the tables and other objects (note: this is not Visual Studio Database Edition - just Pro with Business Intelligence)?
The idea is to use this to recreate my test instance by building the schema from source safe and the data from prod.
I have access to both VS2005 and 2008 Pro and this is hitting Sql Server 2005 for both Prod and Test.
The short answer is, you cannot "allow an ssis package to consume a VS 2005 or 2008 db project". I am not sure why you want to use SSIS to run the create scripts. You can run the scripts from sqlcmd utility.
If you still want to use SSIS, this is what I would do:
create a deployment script (VS for DB Pro can do that)
create a package
in your control flow, use Execute Process Task and configure it to run sqlcmd with the script file as your input
You can call the scripts in the DB project through Execute SQL tasks in the SSIS package. However, there's not a direct way to consume them.

Resources