SSIS - How To Pass Parameter Value In OLE DB Source
Scenario: Let's say we have to create a SSIS Package in which we need to extract data from one of the table but only for date provided in the variable.Solution: I created a table and inserted few...
View ArticleSSIS- How to Use Row Count Transformation [Audit Information]
Scenario: Let’s say we receive flat file from our client that we need to load into our SQL Server table. Beside loading the data from flat file into our destination table we also want to track how many...
View ArticleSSIS -How To Use Derived Column Transformation [Replace Null Values]
Scenario: Let’s say we are extracting data from flat file or from Database table. Few of the columns have Null values. In our destination we do not want to insert these values as NULL. We want to...
View ArticleSSIS - How to Redirect Invalid Rows From Flat File Source [Data Validation]
Scenario: Let’s say we load data from flat file on daily basis. There is SaleAmount Column that should have only integer (numbers). If somehow the wrong data is provided in that column we do not want...
View ArticleSSIS -How to Check IF File Exists In Folder [Script Task]
Scenario: Sometime we get requirement something like this: Your Package should check a flag (Cell Value) in table and if it is 1 then run the remaining tasks in Package OR Check I flag file exists in...
View ArticleSSIS -How to Read First Row From Flat File [Header Row]
Scenario:Sometime we have to read the first row( Header Row) from flat file and then validate against our definition table and if Header matches with our definition then proceed to load otherwise send...
View ArticleSSIS - How to Use FTP Task [Download File from FTP Site]
Scenario:Let's say we have to download different files from FTP Task. We want to create one package that can take FolderName/FileName.extension as Variable value and then can download that file to our...
View ArticleSSIS - Read SSIS Package File(.dtsx) for Information [Connection...
Scenario: Sometime we create many SSIS Packages and then we do not have any central Database where we can go and find out what Connection Managers are used in my Package X, What and how many variables...
View ArticleSSIS - Load Data To Multiple Destinations From Single Source [ How To Use...
Scenario: Sometime we have requirement to read the data from single source and then load to multiple destinations. Let’s say we are getting a flat file as source and we have to load this file into one...
View ArticleSSIS - Replace Multiple Characters/Words From Column [How to Use Script...
Scenario:Let’s say we need to load data from flat file source. The Name column in flat file has some non ascii characters as well some other words those we do not want to load and want to replace with...
View ArticleSSIS - How To Run SSIS Package By Using Excel Macros [ dtexec ]
Scenario: After developing SSIS Package, The next step is to schedule this package. We can schedule by using SQL Server agent etc. But how about your company asks you to create Excel Macros with some...
View ArticleTSQL INTERVIEW QUESTIONS [Database Interview Questions]
Here are TSQL Interview Questions and Database Interview questions. I am going to do my best to provide a good list of real time questions. I am not going to categories the questions depending upon...
View ArticleSSIS - How To Read Object Type Variable In Script Task [Script Task SSIS]
Scenario: It is frequently asked question, I can read object type variable by using For-each Loop in SSIS but How can I read the object type variable in Script Task.Solution: Here is quick demo that...
View ArticleSSIS 2012 -How To Get List of SSIS Packages With Folder Names From MSDB
Scenario: A quick question sometime comes in our minds, How can I get the list of SSIS Packages those I have deployed to SQL Server with Folder Names?Solution:SQL Server 2012, provide two system tables...
View ArticleSSIS - How To Use OLE DB Command Transformation [ Delete Rows in Data Flow Task]
Scenario: We have a SQL table which contains our data. Every day we get a text file from our users and they want to delete records from SQL table those match with the text file records those they have...
View ArticleTSQL- Generate Scripts for Stored Procedures for Slowly Changing Dimensions...
Scenario: Sometime we have to create Stored Procedure/s to Load Slowly Changing Dimension Type 1 (SCD1) table/s. If we have one or two tables it is not a big deal to write script for those but if we...
View ArticleUse Filter in SSRS
Step 1: Create your SSRS Report. Create a Statics Parameter by Right clicking on the Parameters Tab on Right as shown below.STEP 2: Create a dataset for the above created parameter. you need to use the...
View ArticleDBA - Find Members of AD Group in SQL Server
Sometime a user comes to you and ask you that he does not have permission on some table. You start checking if that user has required permission on object but you do not see user account but AD group...
View ArticleTSQL - DML After Trigger for Insert,Update and Delete Operation
Scenario: Sometime we have to write a trigger on table to capture changes for different operation such as Insert, Update and Delete. Here is sample Code that can be modified according to the Source...
View ArticleDBA - Create DDL Trigger for Auditing
Scenario: Sometime we have to capture Audit information such as who dropped the table, who created indexes, who altered Stored procedure etc.Solution : To capture this type of information we can create...
View Article