Tired of studies ;( and SQL Server interview preparation. Take a break and laugh for few minutes and get back to work again. All the best with Interview!
TechBrothersIT is the blog spot and a video (Youtube) Channel to learn and share Information, scenarios, real time examples about SQL Server, Transact-SQL (TSQL), SQL Server Database Administration (SQL DBA), Business Intelligence (BI), SQL Server Integration Services (SSIS), SQL Server Reporting Services (SSRS), Data Warehouse (DWH) Concepts, Microsoft Dynamics AX, Microsoft Dynamics Lifecycle Services and all other different Microsoft Technologies.
Label
- Azure Data Factory Interview Question & Answers
- Azure Data Factory Tutorial Step by Step
- C# Scripts
- DWH INTERVIEW QUESTIONS
- Google Cloud SQL Tutorial
- Kusto Query Language (KQL) Tutorial
- MS Dynamics AX 2012 R2 Video Tutorial
- MariaDB Admin & Dev Tutorial
- MySQL / MariaDB Developer Tutorial Beginner to Advance
- MySQL DBA Tutorial Beginner to Advance
- SQL SERVER DBA INTERVIEW QUESTIONS
- SQL SERVER DBA Video Tutorial
- SQL Server / TSQL Tutorial
- SQL Server 2016
- SQL Server High Availability on Azure Tutorial
- SQL Server Scripts
- SQL Server on Linux Tutorial
- SSIS INTERVIEW QUESTIONS
- SSIS Video Tutorial
- SSRS INTERVIEW QUESTIONS
- SSRS Video Tutorial
- TSQL INTERVIEW QUESTIONS
- Team Foundation Server 2013 Video Tutorial
- Team Foundation Server 2015 Video Tutorial
- Windows 10
- Windows Server 2012 R2 Installation Videos
How to store file names in SQL Server Table by using SSIS Package
Scenario:
In this blog post we are going to learn how to read the file name from a Folder and Sub Folders and insert into a SQL Server Table. This can be helpful for Audit and to know how many files we have in folders.
Solution:
We will be using For-each loop container to get the files information. Let's start step by step
Step 1:
To save the file name we need to have a SQL Server table. Let's create a SQL Server table by using below script.
CREATE TABLE dbo.FileInformation ( FileID INT IDENTITY(1, 1), FileName VARCHAR(250) )
Step 2:
Create an SSIS Package by using BIDS or SSDT. Create a variable as shown below that is holding your files and also have sub folders with files.
Fig 1: Create FolderPath variable in SSIS Package
FileNamewithPath variable will be used in Foreach Loop Container to hold the value of file name with path that we will insert into our SQL Server table.
Step 3:
Drag For-each loop container from SSIS Toolbox on Control Flow Pane and configure as shown below. If you are only interested to save file name then use Name only and if you are interested to save file name with extension then use Name and Extension. As I want to save file name with folder , I have chosen Fully qualified in #5.
Fig 2: Configure Foreachloop Container to read the file names with path
Map the value read by Foreach loop container to FileNamewithPath varible.
Fig 3: Map the value to Variable in Foreach loop container
Step 4:
Create OLE DB Connection to the database where you have created dbo.FileName table.
Step 5:
As now we can read the file name with path by using Foreach loop and values will be saved in variable for each iteration , we can save the value of variable in our SQL Server Table. To save the variable value in SQL Server Table, we can use Execute SQL Task. Bring the Execute SQL Task inside the Foreach Loop container and configure as shown below.
Fig 4: Configure Execute SQL Task to insert variable value in SQL Server Table in SSIS Package
Map the variable to Execute SQL Task insert statement.
Fig 5: Map variable in Execute SQL Task in SSIS Package
Output:
Our package is ready. Let's run our SSIS Package and see if the file names are saved in SQL Server table from folder/s.
Fig 6: SSIS Package to load file names from folder/s in a SQL Server Table
Output from SQL Server Table
Fig 7: File Names in SQL Server table stored by SSIS Package
As we can see that the file names with folder information is successfully inserted in SQL Server table.
Video Tutorial for this post
What are Different ways to Execute SSIS Package
This is short post to answer one of the interview questions " What are different ways to execute SSIS Package"?
SSIS Package can be executed by multiple ways, here are some of them.
When you connect to SSIS Instance by using SSMS and then run the package , it initiates DtExecUI. The graphical interface provide you different options to change the values of variables , connection mangers etc.
If your packages are stored in file system task and you double click the .dtsx file, it opens with DtexecUI. It is stand alone utility.
DtexecUI can be started from command line as well.
http://msdn.microsoft.com/en-us/library/ms136090.aspx
I have written as post how to run SSIS Package from Excel.You can check here. What I am doing in that post, I am calling dtexec.exe to execute SSIS Package on button click that I created in Excel by using VBA. You can use any program of your choice that can start dtexec.exe to run your SSIS Package, that can be custom application.
SSIS Package can be executed by multiple ways, here are some of them.
1) By using BIDS/ SSDT
You can run your SSIS Package by using Business Intelligence Development Studio ( BIDS that is available for SSIS 2005,2008/R2) or you can use SQL Server Data Tools ( SSIS 2012 and SSIS 2014). These tools you will be using while developing your SSIS Packages, testing and debugging.2) DtExecUI
Execute Package Utility (DtExecUI) is graphical interface to run the SSIS Packages. The Utility can run packages from different locations such as MS SQL Server Database,SSIS Package Stored or packages stored in file system.When you connect to SSIS Instance by using SSMS and then run the package , it initiates DtExecUI. The graphical interface provide you different options to change the values of variables , connection mangers etc.
If your packages are stored in file system task and you double click the .dtsx file, it opens with DtexecUI. It is stand alone utility.
DtexecUI can be started from command line as well.
3) Dtexec.exe
Dtexec.exe is command line way to run your package. You have to provide information such as package path to run the package from command line. You can also provide the values of variables or Connection managers from command line to run the package with specific requirements.4) SQL Server Agent Job
SQL Server Agent can be used to create job that can run the SSIS Package on demand or schedule. The SQL Server Agent Job can be single Step calling a SSIS Package or it can consist of multiple steps calling more than one SSIS Packages. In most of the companies the packages are scheduled by using SQL Server Agent. SQL Server agent can access the packages those are stored in SQL Server or from folder storage.5) Windows Scheduler or Any third party Scheduler
Once way is to create a batch file in which you use dtexec.exe with required parameters. The batch job can be executed by Windows Scheduler or any third party scheduler.6) Run SSIS Package Programmatically
You can run the package programmatically, here is link that can provide the code.http://msdn.microsoft.com/en-us/library/ms136090.aspx
I have written as post how to run SSIS Package from Excel.You can check here. What I am doing in that post, I am calling dtexec.exe to execute SSIS Package on button click that I created in Excel by using VBA. You can use any program of your choice that can start dtexec.exe to run your SSIS Package, that can be custom application.
How to find users with sysadmin role in SQL Server
The below script can be used to find out the users with sysadmin role in SQL Server.
SELECT SP.name AS LoginName, type_desc AS LoginType, Cast(create_date AS DATE) DateCreated FROM sys.server_principals SP inner join sys.syslogins SL on SP.sid=SL.sid WHERE SL.sysadmin=1
Msg 15404, Level 16, State 19, Procedure sp_replcmds, Line 1
Today when I was trying to drop publisher for replication that I had set up for one of the SQL Server database by using below script, got error.
Msg 15404, Level 16, State 19, Procedure sp_replcmds, Line 1
Could not obtain information about Windows NT group/user 'username', error code 0x5.
To solve this problem you have to check the owner of database and then change the ownership to sa by using below statement.
use [YourDataBaseName] exec sp_droppublication @publication = N'PublisherName' GO
Msg 15404, Level 16, State 19, Procedure sp_replcmds, Line 1
Could not obtain information about Windows NT group/user 'username', error code 0x5.
To solve this problem you have to check the owner of database and then change the ownership to sa by using below statement.
ALTER AUTHORIZATION ON DATABASE::YourDataBaseName to sa
SSIS Video Tutorial
If you are looking for the real time scenarios/ Examples or type of work developer perform on Job as ETL developer. You are looking at the right place. The videos explain different scenarios those can answer your so many questions and also helpful if you are going for SSIS/ETL developer interview.
Starting with SSIS
Sources
- How to Load Tab Delimited File To SQL Server Table in SSIS Package
- How to Load Pipe Delimited File into SQL Server Table in SSIS Package
- How to Load Multiple Comma Delimited Files to SQL Server Table in SSIS Package
- How to Load Fixed Width Text File to SQL Server Table in SSIS Package
- How to load Data From Comma Delimited text file to SQL Server Table in SSIS Package
- How to convert blank values to Null in Flat File Source in SSIS Package
- How to use Raw File Source in SSIS Package
- Fast Parse Flat File Source Property in SSIS Package
- How to Redirect Rows from Flat File Source for Data Conversion Error and Truncation Error?
- How to use Stored Procedure with Parameters in OLE DB Source in Data Flow Task in SSIS Package
Destinations
- How to Create Fixed Width Text File with DateTime from SQL Server Table in SSIS Package
- How to Create Pipe Delimited file with Date Time in SSIS Package from SQL Server Table
- How to Create Comma Delimited file with Date Time from SQL Server Table in SSIS Package
- How to Create Tab Delimited text file from SQL Server Table with Date Time in SSIS Package
- How to use Raw File Destination in SSIS Package?
- How to Enable/Disable Trigger while Loading Data to OLE DB Destination
- How to use RecordSet Destination in SSIS Package?
Excel Source And Excel Destination
- How to Create Excel file with Date-time on Each Package Execution in SSIS Package?
- How to Load Multiple Sheets to a SQL Server Table in SSIS Package?
- How to Load Data Excel File to SQL Server Table and Solve Data Conversion Issues?
- How to Load Multiple Sheets From Multiple Excel Files to Different Tables in SSIS Package?
- How to Load Data to Pre-Formatted Excel Sheet (Excel Report) in SSIS Package?
- How would you split Full Address Column into Multiple Columns in SSIS Package?
- How to Read Alpha Numeric Data from Excel Source File
Containers
- How to Read Files according to Extension and Load them to a SQL Server Table in SSIS Package
- How To Load Files to Different Tables according to the File Name in SSIS Package
- How to load multiple Excel files to SQL Server Table and then archive them by adding date time to them?
- How to Execute Multiple dot SQL files by using SSIS Package
- How to Extract file names from Folders and save in SQL Server Table by using SSIS Package
- How to Archive files with Date-time after loading into SQL Server Table in SSIS Package
- How to Create Multiple Files from a SQL Server Table in SSIS Package
SSIS Logging
- How to configure Windows Event Log type logging in SSIS Package
- How to Create SQL Server Profiler Type logging in SSIS Package
- How to create XML file file with Datetime for each SSIS Package execution
- Enable SQL Server type logging in SSIS Package
- How to create Text Log file with Date-time on each SSIS Package execution
Precedence Constraints
- Annotated Precedence Constraints in SSIS Package
- How to use Precedence Constraints in SSIS Package
- What are Precedence Constraint in SSIS and How to Write Expression on them
Variables/Parameters/Expressions
- What are System Variables in SSIS Package
- Project and Package Parameters - How to Create Package and Project Parameters in SSIS Solution and SSIS Package
- How to create folder with Date in SSIS Package
- How to create Monthly Archive Folders in SSIS Package
- How to display variable value by using Script Task while debugging SSIS Package
Tasks
FTP Task / Script Task
- FTP Task - How to Upload Single File to FTP Server from Local Folder in SSIS Package
- FTP Task - How to Download Single File from FTP Server to Local Folder in SSIS Package
- FTP Task - How to Upload Multiple Files from Local Folder To FTP Server Folder in SSIS Package
- FTP Task - How to Download All the files from FTP Server Folder to Local Folder in SSIS Package
- FTP Task - Filter Files by using WildCard in FTP Task in SSIS Package for downloading
- FTP Task - Delete Specific Files or All Files from FTP Server Folder by using SSIS Package
- FTP Task - Download Only Current Day Files from FTP Server by using FTP Task in SSIS Package
- FTP Task - Create A Directory Folder For Each Day and Load Files on FTP Server by using SSIS Package
- Get File Names from FTP Server and Save to SQL Server Table in SSIS Package by using Script Task
- FTP Task and Script Task - How to Avoid FTP Task error when no file found on FTP Server
- FTP Task and Script Task - How to Delete Folder with Files from FTP Server by using SSIS Package
- FTP Task and Script Task - Download a File from FTP Site and Delete after Download in SSIS Package
- FTP Task and Script Task - Sync Local Folder to FTP Server Folder without Upload Existing Files by SSIS Package
- Sync FTP Folder to Local Folder without Downloading Existing Files by using Script Task in SSIS Package
- FTP Task/Script Task - Rename File on FTP Server After Downloading in SSIS Package
- FTP Task/Script Task -How to move file from one folder to another folder on FTP server by using SSIS Package
- FTP Task - Create Local Folder with Date on Daily basis and load files from FTP Folder in SSIS Package
- FTP Task - How to Save Password,User Name,Ftp Server Name as variables/Parameters in SSIS Package to make SSIS Package Dynamic to run in SIT, UAT, QA and Prod.
Script Task
- Project and Package Parameters - How to use Project Level Parameters and Package Level Parameters in Script Task in SSIS Package
- Script Task - How to use Variables in Script Task by using C# or VB NET Scripting Language
- Script Task - How to Run Stored Procedure in Script Task in SSIS Package and log FTP Folder Names to SQL Server Table
- How to display variable value from Script Task in SSIS Package
- How to use ReadOnlyVariables and ReadWriteVariables feature in Script Task
- How to Delete Top N Rows from Flat File Source
- How to load file's information to SQL Server Table in SSIS Package
- How to Purge Old Files (Delete Old Files From Folders By using SSIS Script Task)
Zip/Unzip in SSIS Package by using Script Task
- How to change .NET Framework version in Script Task and Add Reference to Assembly(ZipFile Demo)
- Load Text Files,Zip them to Folder with Datetime and Delete From Input Directory in SSIS Package
- Extract Files From Zip Files and Delete the Zip Files once Unzipped in SSIS Package
- Load File/s, Zip and Delete from Source Folder in SSIS Package
- Zip ( Compress) Files and Add them to Folder According to Extension in SSIS Package
- Zip or Compress Files according to the Name of Files in SSIS Package
- Get File names from Zip Files and Insert into SQL Server Table in SSIS Package
- How to Zip ( Compress) Multiple Folders and Delete in SSIS Package
- Create Zip file per day with Date Only and Add Files to it in SSIS Package
Excel Source and Destinations (Script Task- Dynamic)
- How to Load Data from Excel Files when Number of Columns can decrease or order is changed in Excel Sheet
- How to Load Only Matching Column Data to SQL Server Table from Multiple Excel Files (Single Sheet per file) Dynamically in SSIS Package
- How to Load Excel File Names with Sheet Names ,Row Count,Last Modified Date, File Size in SQL Server Table
- How to Load Multiple Excel Files with Multiple Sheets to Single SQL Server Table by using SSIS Package
- How to Load Matching Sheets from Excel to Table and Log Not Matching Sheets Information in SQL Server Table
- How to create Table for each sheet in Excel Files and load data to it dynamically in SSIS Package
- How to Create Table per Excel File and Load all Sheets Data Dynamically in SSIS Package by using Script Task
- How to create CSV file per Excel File and Load All Sheets from Excel File to it in SSIS Package
- How to Create CSV File for Each Excel Sheet from Excel Files in SSIS Package
- How to Load Excel File Name and Sheet Name with Data to SQL Server in SSIS Package
- How to Import data from Multiple Excel Sheets with a pattern of sheet names from Multiple Excel File in SSIS Package
- How to import Data from Excel Files for specific Sheet Name to SQL Server Table in SSIS Package
- Load Data To Tables according to Excel Sheet Names from Excel Files dynamically in SSIS Package
- How to Load Excel Files with Single/ Multiple Sheets to SQL Server Tables according to Excel File Name Dynamically
- How to Read Excel Sheet Data after Skipping Rows in SSIS Package by using Script Task
- How to read data from Excel Sheet and Load to Multiple Tables by using Script Task in SSIS Package
- How to create Excel File Dynamically from SQL server Table/View by using Script Task in SSIS Package
- How to create Excel File Dynamically for Stored Procedure Results in SSIS Package by using Script Task
- How to Export SQL Server Tables from Database to Excel File Dynamically in SSIS Package by using Script Task
- How to Convert CSV/Text Files to Excel Files in SSIS Package by using Script Task
- How to Load All CSV Files to Excel Sheets ( Sheet Per CSV) in single Excel File in SSIS Package
- How to Load All CSV Files to Single Excel Sheet with File Names in an Excel File Dynamically in SSIS Package
- How to Create Sample Excel file with Sheet from each table with Top 1000 Rows per sheet in SSIS Package
- How to Export Data to Multiple Excel Sheets from Single SQL Server Table in SSIS Package
- How to split large table data into multiple Excel Sheets on Single Excel File by using SSIS Package
- How to Export All tables of a database to Excel Files with Date-time in SSIS Package
- How to read Cell Value from Excel by using Script Task in SSIS Package
Dynamic Text / CSV Files with Script Task
- How to Import Multiple Text or CSV files to SQL Server Table by using Script Task in SSIS Package
- How to Load Text /CSV files with same or less columns than destination table by using Script Task in SSIS Package
- How to load Data from Multiple Text / CSV Files to SQL Server Table with File Name by using Script Task in SSIS Package
- How to Create Tables Dynamically from Flat Files and load Data in SSIS Package
- How to load Flat files to SQL Server Tables according to the Name of Flat File in SSIS Package
- How to Create Multiple Text/CSV Files Dynamically From a SQL Server Table depending upon Distinct Column Value in SSIS Package
- How to Export large table to multiple text/csv files by row count in SSIS Package
- How to create Text / CSV File Dynamically from Table or View in SSIS Package
- How to create Text / CSV File Dynamically from Stored Procedure Results in SSIS Package
- How to Load all text/csv files to single Text/CSV File from a folder in SSIS Package
- How to export all the tables from a database to CSV files with date-time in SSIS Package
- How to create Tables Dynamically from Tab Delimited Files and Load data in SSIS Package
Execute SQL Task
- Execute SQL Task Demo for Max Size of SQL Statement in Execute SQL Task Query Editor and Solution
- Execute SQL Task Demo- How to Build Dynamic SQL Query to Execute Multiple Stored Procedures those names are saved in a SQL Server Table
- Execute SQL Task Demo - How to Execute SQL Queries from a SQL Server Table in SSIS Package ( SQLStatementType= Variable)
- Execute SQL Task Demo - How to Execute SQL Queries from Excel file in SSIS Package ( Record Set Destination, Object Type Variable and Foreach Loop Container Demo as well)
- Execute SQL Task Demo - How to use Single Row Result Set in Execute SQL Task and Control the Flow Tasks by using that value ( Precedence Constraint Demo as well).
- Execute SQL Task Demo - How to use Insert Query in Execute SQL Task and Map the variables to Parameters ( Insert File Name and Record Count after Loading the File).
- Execute SQL Task Demo - How to use Stored Procedure with Input/Output Parameters in Execute SQL Task in SSIS Package( Load File Name, Package Name , Record Count and File Load Time in SQL Server Table).
- Execute SQL Task Demo - How to build Query by using Variables in Execute SQL Task ( File Name validation and move files to Archive folder and Bad File Folder if does not validation correctly)
- Execute SQL Task Demo - How to use Full Result Set in Execute SQL Task ( Get Folder Path and File Names from SQL Table and Load those files)
- Execute SQL Task - How to Load Files from Specific Folder Paths Saved in a SQL Table By using SSIS Package
- Execute SQL Task ( use Variable value in Expressions Demo) - How to Reject Already Loaded Files and Load Only New Files in SSIS Package
- Execute SQL Task ( Handle Single Row Result Set Blank Error) -Single Row result set is specified, but no rows were returned in Execute SQL Task in SSIS Package
- Execute SQL Task ( Save Result Set to Variable Demo) - How to Return Deleted and Update
- Record Count from Execute SQL Task and Write to Flat File in SSIS Package
- Execute SQL Task ( Build Dynamic Query in Variable and use as Source ) - How to Save Query in Variable and Use in Execute SQL Task
- Execute SQL Task Expression's Demo - Using Variable in IF Clause in Execute SQL Task in SSIS Package
- Execute SQL Task ( Parameter Mapping Demo for Stored Procedures) - How to Run multiple Stored Procedure in Execute SQL Task with Input Parameters
- Read Single Cell Value from an Excel File in SSIS Package
File System Task
Expression Task
Bulk Insert Task
- Create Load Summary Email logic in SSIS Package
- How to Configure Send Mail Task and Send Email in SSIS Package
- Create a file with Date From SQL Server Table and Send as Attachment in SSIS Package
- Attach Multiple Files Dynamically in Send Mail Task in SSIS Package
- Send Error Email with Error Code, Error Description by using Send Mail Task in SSIS Package
- Send List of Files from A Folder as Email by using Send Mail Task
- Use Send Mail Task with Precedence Constraints in SSIS Package
- Read Subject,Recipient and Body from SQL Server Table and Send Email by Using Send Mail Task
- Read EmailTo,EmailFrom,Subject and Body From Text File and Send Emails by using Send Mail Task in SSIS Package
- Send Load Summary Email by using Send Mail Task in SSIS Package
Transformations / Data Flow Task
Data Flow Task
- How to Load Single File to Multiple Server, Change Destination Connection Dynamically
- How to Load Specific Excel Sheet from Excel File to SQL Server Table
OLE DB Command Transformation
- Introduction to OLE DB Command Transformation( Perform Update/Delete)
- How to use Stored Procedure Output Parameter in OLE DB Command Transformation in SSIS Package?
- OLE DB Command Transformation - Insert Operation Demo
- OLE DB Command Transformation - Delete Operation Demo
- OLE DB Command Transformation - Update Operation Demo
- OLE DB Command Transformation - Call Stored Procedure with Input Parameters Demo
- OLE DB Command Transformation - Use Sub Query with Parameters in OLE DB Command Transformation to update records in a Table
- OLE DB Command Transformation ( Use Common Table Expressions to Delete Duplicate Records in OLE DB Command Transformation with Input Parameters)
- OLE DB Command Transformation ( How to Call Multiple Stored Procedure with input parameters in OLE DB Command Transformation in SSIS Package)
- OLE DB Command Transformation ( How to Run Multiple Statements Update/Insert/Delete with parameters in OLE DB Command Transformation in SSIS Package)
- OLE DB Command Transformation ( How to build Dynamic SQLCommand for OLE DB Command Transformation in SSIS Package)
Lookup Transformation
- How To Use Dynamic Query in Lookup Transformation in SSIS Package
- Use Stored Procedure with Parameters in Lookup Transformation ( Full Cache Mode) in SSIS Package
- How to Force Lookup Transformation to Work as Case In-Sensitive in SSIS Package
- Does Lookup Transformation perform Left Outer Join or Not in SSIS Package
- How Null values will be matched in Lookup Transformation in Diff Modes(Full Cache,Partial or No Cache)
- How to Handle "Row yielded no match during lookup". Error in SSIS Package
- How Lookup Transformation works for Duplicate Records in Reference Data Set
- How to Load Slowly Changing Dimension Type 1 by using Lookup Transformation ( UpSert Operation)
- Detailed Demo on Lookup Transformation Modes ( Full Cache, Partial, No Cache) by using SQL Server Profiler
- Diff between Inner join ( Merge Join Transformation) and Lookup Transformation ( Matched Output)
Cache Transformation
- Introduction to Cache Transformation and How to use Flat file data in Lookup Transformation in SSIS Demo
- How to use File Cache feature of Cache Transformation to make use of CAW file in multiple SSIS Packages
- How to use Excel Data in Lookup Transformation ( Cache Transformation Demo)
- Load Lookup Data Parallel ( SSIS Package Performance Tip and Demo) by using Cache Transformation
Sampling Transformations
Conditional Split Transformation
- How to filter Rows with Null values in Data Flow Task in SSIS Package
- How to filter Rows with Blank values in Data Flow Task in SSIS Package
- How To Redirect or Remove Duplicate Records in Data Flow Task in SSIS Package
- How to filter Null records in Data Flow Task by using Conditional Split Transformation in SSIS Package
- How to write expressions in Conditional Split Transformation in SSIS package
- How to use Conditonal Split to Load Data To Multiple Tables in SSIS Package
Aggregate Transformation
- How to load unique records from Flat File by using SSIS Package
- How To Redirect or Remove Duplicate Records in Data Flow Task in SSIS Package
Row Count Transformation
Sort Transformation
Union Transformation
- Intro to Union All Transformation in SSIS Package
- How to perform Union Operation in Data Flow Task in SSIS Package
- What is the difference between Union All and Merge Transformation in SSIS Package
Merge Join Transformation
- Intro to Merge Join Transformation in SSIS Package
- How to perform Cross Join in Data Flow Task in SSIS Package
Merge Transformation
- How to use Merge Transformation in Data Flow Task in SSIS Package
- What is the difference between Union All and Merge Transformation in SSIS Package
Derived Column Transformation
- Intro to Derived Column Transformation in SSIS Package
- How to split single column into multiple columns in Data Flow Task in SSIS Package
- How to write IF Else statement in derived column Transformation in Data Flow task in SSIS Package
- How to convert Null values to Unknow in Data Flow Task in SSIS Package
- Convert Month Number into Month Name in Derived Column Transformation
- How to Load Unique Identifier values from Excel file to SQL Server Table
- Write Case Statement in Derived Column Transformation in SSIS Package
Multicast Transformation
Audit Transformation
Import Column Transformation
Export Column Transformation
Pivot Transformation
UnPivot Transformation
Event Handlers
- What are Event Handlers in SSIS Package
- What are the advantages of using Event Handlers in SSIS Package
- What Type of Tasks we can use in Event Handlers
- Understanding Executable in Event Handlers
Parent Child Packages
Debugging SSIS Package
SSIS Package Warnings
SSIS Package Annotations ( Comments)
- What is Annotation in SSIS Package
- Annotated Precedence Constraints in SSIS Package
- How to write comments in SSIS Package
SSIS Package Deployment / Configuration
SQL Server DBA Tutorial
Below are the links that provide video learning on You Tube our channel " Tech Brothers" - These videos walk you through step by step of SQL Server 2014 DBA Tutorial/Training. Video Tutorials provide beginner to advance level Training on SQL Server 2014 DBA Topics.
- Installation of Upgrade Advisor 2014 and Upgrade Advisor Overview
- Upgrading SQL Server 2012 Engine
- Upgrading SQL Server 2012 Management components
- Upgrade checklist overview
b) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 2
- Identifying database
- Backing up all source databases
- Scripting out login
- Scripting out Server Roles
- Scripting out Backup devices
- Scripting out Server Level Triggers
- Scripting out Data Collection
- Script out Linked Servers
c) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 3
- Mirroring Information from the database
- Script out All SQL Server Agent Jobs
- Viewing DBMail information on the source
- Scripting out Proxy and credentials
- Scripting out Operator and Alerts
- Scripting out SQL Server Configuration
d) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 4
- Overview of Destination Checklist
- Restoring Databases on Destination
- Changing compatibility to SQL Server 2014
e) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 5
- Transferring Logins (Executing Scripted Logins on destination server
- Transferring Replication (Executing Source Replication on destination)
- Transferring Linked servers (Executing Scripted Linked server)
- Transferring Server Level Triggers (Executing Scripted Triggers on destination server)
- Scripting out Operator and Alerts
- Server Audit and Audit Specification script execution
f) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 6
- Creating databases backup Maintenance plan
Installation
- How to find installed Features in windows 8.1
- How to install SQL Server 2014 step by step
- How to Install SQL Server 2016 Step by Step
- How to Install Data Quality Services (DQS) in SQL Server
- How to Install and configure Master Data Services in SQL Server
- How to Install Data Quality Services Client
- How to Install SSIS in SQL Server 2014
- How to Create Integration Services Catalog
- How to install and configure Reporting services in SQL Server 2014
- How to Install SQL Server Data Tools ( SSDT )
SQL Server /Windows Cluster
- How to Install SQL Server 2014 in Cluster mode
- How to Add a Disk to Existing Cluster?
- Cluster Pre-requisites Checklist
- Setting Up Service Accounts for Cluster Nodes
- How to Install Clustering Services on the First Node
- How to Install Clustering Services on the second Node
- How to add a new Node to Cluster
- How to verify Cluster Installation
- Configure Distributed Transaction Coordinator(DTC) in SQL Server Cluster
- Active Active and Active Passive Cluster Configuration Overview
- How to Install SQL Server in Active Passive Cluster
- How to Configure Active Active Cluster
- Checklist before we start SQL Server Installation for Cluster
- How to Configure Static IP Address for SQL Server Instance/s in Cluster
- Fail over the Main Node Resource to Another Node
- How to Set Preferred Node Order for Failover
- Cluster Configuration Manager Demo: Manage SQL Server 2012 Failover Cluster
- How to Install Service Packs, Hot Fixed and Patches in Cluster
- Verify/Validate Cluster configuration
- How to Evict a Node from Cluster
- How to Remove SQL Server Cluster instance from a Node
- How to configure and use Windows Cluster Aware Updating Role - Part 1
- How to configure and use Windows Cluster Aware Updating Role - Part 2
- How to Rename Windows Cluster
Databases
- SQL Server Create Database Best Practices
- How to Create Database in SQL Server
- How to Attach and Detach Databases
- How to Shrink Database And Database Files
- How to Take Database Offline and Bring it Online
- How to create Database Snapshot
- How to Script out an Entire Database in SQL Server
- How to change Compatibility level of a database and why do we do that?
- How to get Database out of Single User Mode in SQL Server?
- How to shrink MDF File of Database in SQL Server?
- How to Rename a Database in SQL Server?
- How to change database collation from Case Insensitive to Case Sensitive?
- How to Retrieve the suspect database ?
- How to find out Owner of Any Database in SQL Server?
- How do I change the ownership of a database?
- How to avoid using C drive for Database Create in SQL Server?
- How to disable Auto growth of Database in SQL Server?
- How we can reduce Temp DB size with out restart Server?
- How to release unused space of the Tempdb to Operating System(OS)?
- How to update stats on all the databases on SQL Server or on Single Database in SQL Server?
Security
- What is Login, User, Role and Principals in SQL Server?
- How to create Windows Authenticated Login?
- How to create SQL Authenticated Login?
- How to create Windows Authenticated group login?
- How to check Login Status in SQL Server?
- How to disable/enable Login in sql server?
- How to create a Database user?
- How to map a user to an existing Login?
- How to create User define Schema in a database?
- How to create database role?
- How to create an application Role?
- How to provide explicit permission to specific tables to a user in a database?
- How to provide execute permissions to a specific store procedure?
- How to provide View definition permission of database objects to a user?
- How to create server Role in SQL Server?
- How to create Credentials in SQL Server?
- How to see the SQL Server user password in SSMS, Can we script out SQL Server user password?
- How to assign default Schema to AD Group in SQL Server?
Contained Database
Backup Database
- What is Database Backup and How Many Types of Backups available in SQL Server
- How to manually (Adhoc) take Full backup of database in SQLServer?
- How to manually take Differential Backup of a database in SQL Server?
- How to manually take Transactional Log Backup of a database in SQL Server?
- How to manually Take Tail Log Transactional Log Backup of a database in SQL Server?
- How to create backup Maintenance Plan in SQL Server?
- How to Schedule databases backup in SQL Server?
- How to cleanup Old Backups in SQL Server?
Restore Database
- How to restore a database from Full Backup in SQL Server?
- How to restore a database from Differential Backup in SQL Server?
- How to restore a database to specific time (Point in Time) in SQL Server?
- Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.)
- How to turn a database status from "in recovery" to "online"?
How to Restore / Rebuild / Recover System Databases
- How to Restore MSDB Database in SQL Server
- How to Restore Master DataBase in SQL Server
- How to Rebuild MSDB in SQL Server
- How to Rebuild Master Database in SQL Server Method1
- How to Rebuild Master and Other System Databases in SQL Server
- How to Move TempDB Data and Log Files in SQL Server
- Overview of Model Database in SQL Server
Server Level Auditing
- How to Create Server Audit Specifications in SQL Server?
- How to create server level Audit in SQL Server?
- How to create server level Trigger in SQL Server?
- How to create Policies in SQL Server?
- How to create Policy Conditions in SQL Server?
- How to create and use Facets in SQL Server?
Data Collection and Management Data Warehouse
- How to configure Data collection in SQL Server?
- How to configure Management Data Warehouse in SQL Server?
Introduction to Extended Events
- What is Extended Events in SQL Server?
- How to create an Extended event in SQL Server?
- How to Enable and Disable Extended Events in SQL Server?
SQL Server Configuration Manager
Replication
- What is replication, Types of replication and when to use each type
- Why do we use Replication, Provide couple scenarios
- How to Configure Distribution in SQL Server Replication
- How to Create Snapshot Replication?
- How to Create Transactional Replication?
- How to create Merge Replication?
- When do we use snapshot replication
- What is re initializing means in replication
- What is Orphan replication And how would you cleanup replication
- Under what circumstances will you re initialize replication
- How the schema changes are handled in SQL Server Replication
- How would you add new tables in existing replication
- How would drop replicated database
- How will you truncate the replicated table
- Replication Error, can't connect to actual server, @@servername returns Null
- How to find out if Replicaiton is failed or broken
- How to setup Peer-to-Peer Transactional Replication?
- How to add Article in Peer-to-Peer Transactional Replication?
- How to create Merge Replication with Multiple Subscribers and Perform Diff Scenarios
- How to Change Sync Time for 60 Seconds to 0 Seconds in Merge Replication
Resource Governor
- What is Resouce Governor in SQL Server?
- How to Create Resource Pool in Resource Governor of SQL Server?
- How to Create WorkLoad Group in Resource Governor of SQL Server?
- How to create Classifier Function in Resource Governor?
- How to Enable and Disable Resource Governor in SQL Server?
Mirroring
- How to setup Database Mirroring in SQL Server?
- How to Stop and Start Database Mirroring Endpoints in SQL Server?
- How to Remove Database Mirroring in SQL Server
Database Log Shipping
Linked Server
SQL Server Agent
- Overview of SQL Server Agent Configuration?
- How to create Job using SQL Server Agent?
- Job Categories Overview in SQL Server Agent?
- How to create an alert in sql server?
- How to create an Operator in SQL SERVER?
- How to run SQL Server Agent jobs in Batch file?
- How to Run SQL Server Agent Job from Local or Remote SQL Server Agent Job
- How to Enable/Disable SQL Server Agent Job, How to Enable Job after some days automatically?
- How To Delete ERROR LOGS IN SQL SERVER?
- How to get the detail for the cause of the SQL Server Agent job failure?
- How to send email to multiple email accounts from SQL Server Agent Job if fails?
- How to find out which SQL Server Agent Jobs are running at the moment on SQL Server?
Sql Server Proxies
Configure Database Mail
SQL Server Profiler
Maintenance Plan
- How do I temporarily disable my maintenance plan?
- How to create Maintenance plan for Backups and delete old backup files in SQL Server?
Built-in Tools
- How to connect to SQL Server from another computer?
- How to find out what configuration changed on sql server last hour?
- How can I connect the database from SQLCMD Tool?
- How to find if Database is in use?
- What is Dedicated Administration Connection ( DAC ) and What is use of DAC?
- How to Change Port and IP Address for SQL Server?
- How to save query results to text file from SSMS in SQL Server?
Blocking Locking
- How to find blocking and deadlock in SQL Server?
- How to send Alter when a process is blocked in SQL Server
Server Level Settings
- How can I reset Maximum number of concurrent connections in Sql server 2014?
- How much memory is allocated to SQL Server instance?
- How to rename SQL Server Instance Name?
- How to check CPU % Usage by SQL Server?
- How to check Port SQL Server is using?
Migration
- Migration strategy for SQL Server 2008 to SQL Server 2012/ SQL Server 2014
- What is Difference between In place and Parallel Migration in SQL Server?
- Explain all the Steps or documents Or a checklist for Migration in SQL Server?
- Demo: In Place Migration of SQL Server 2012 to SQL Server 2014
- Installation of Upgrade Advisor 2014 and Upgrade Advisor Overview
- Upgrading SQL Server 2012 Engine
- Upgrading SQL Server 2012 Management components
- Upgrade checklist overview
b) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 2
- Identifying database
- Backing up all source databases
- Scripting out login
- Scripting out Server Roles
- Scripting out Backup devices
- Scripting out Server Level Triggers
- Scripting out Data Collection
- Script out Linked Servers
c) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 3
- Mirroring Information from the database
- Script out All SQL Server Agent Jobs
- Viewing DBMail information on the source
- Scripting out Proxy and credentials
- Scripting out Operator and Alerts
- Scripting out SQL Server Configuration
d) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 4
- Overview of Destination Checklist
- Restoring Databases on Destination
- Changing compatibility to SQL Server 2014
e) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 5
- Transferring Logins (Executing Scripted Logins on destination server
- Transferring Replication (Executing Source Replication on destination)
- Transferring Linked servers (Executing Scripted Linked server)
- Transferring Server Level Triggers (Executing Scripted Triggers on destination server)
- Scripting out Operator and Alerts
- Server Audit and Audit Specification script execution
f) Upgrade of SQL Server 2008 R2 to SQL Server 2012 Part 6
- Creating databases backup Maintenance plan
SQL Server Database Deployment
- What does "Deployment" means for SQL Server DBA?
- What are the best practices for SQL Server Deployment?
- How to Perform a SQL Server Deployment Step by Step
- How to use Team Foundation Server (TFS) and DeploymentDocument for Database Deployment
AlwaysOn Availability Groups
- How to Setup/Configure AlwaysOn Availability Group in SQL Server 2014 Step by Step
- How to Resolve Availability Group Listner Errors
- Setup AlwaysOn Availability group when SQL Server instances are installed in Cluster mode Part1 ( 2 Node Scenario)
- Setup AlwaysOn Availability group when SQL Server instances are installed in Cluster mode Part2 ( 2 Node Scenario)
- AlwaysOn Availability Group on SQL Server Failover Instances Installed in Cluster Mode ( 4 Node Scenario)
- How to provide Permissions to User on AlwaysOn Availability Group in SQL Server?
- How to Plan Backups with Always On Availability Groups in SQL Server
- AlwaysOn Availability Group Dashboard Introduction
- Setup Alerts for AlwaysOn Availability Group Failover in SQL Server
- How to Restore A database which is part of AlwaysOn Availability Group
- Patching Or Updating AlwaysOn Availability group Replicas in SQL Server Best Practices
- Patching or Updating Availability Group with SQL Server Failover Cluster Instance - Part 1
- Patching or Updating Availability Group with SQL Server Failover Cluster Instance - Part 2
- Patching or Updating Availability Group with SQL Server Failover Cluster Instance - Part 3
- Patching Or Updating SQL Server with multiple AlwaysOn Availability Groups
- Patching or Updating Availability Group with one Secondary
- How to Apply Windows Updates to Failover Clusters Hosting SQL Server AlwaysOn Availability Groups
- How to setup Replication on AlwaysOn Availability Groups in SQL Server Part1 Part2
Miscellaneous
- What are Synonyms and How to Create Synonyms in a Database of SQL Server - DBA Tutorial
- How to compare these two databases and find what is the difference between these two databases?
- How to Scripts Users with permissions from SQL Server Database?
- How to find out who has deleted the Login in SQL Server?
- How to find out who has modified or created object in SQL Server?
- How to access SQL Server Instance from the network?
- How to know the reason why sql server restarted.
- How to find when and who dropped my database?
- How to find if a server in a cluster is running on Primary node?
- How to check the size of SQL Error Log in SQL Server?
- How to automate Back up and Restore
- How to migrate the integration services (SSIS)
- How to send Alter When Storage Drives are 80% filles from SQL Server
- How to Drop login with all users from multiple database in SQL Server?
- How to Find Users and their AD Groups in SQL Server?
- How to Find Port Number of SQL Server instance by using SQL Server Management Studio?
Subscribe to:
Posts (Atom)