TechBrothersIT is a blog and YouTube channel sharing real-world tutorials, interview questions, and examples on SQL Server (T-SQL, DBA), SSIS, SSRS, Azure Data Factory, GCP Cloud SQL, PySpark, ChatGPT, Microsoft Dynamics AX, Lifecycle Services, Windows Server, TFS, and KQL. Ideal for data engineers, DBAs, and developers seeking hands-on, step-by-step learning across Microsoft and cloud platforms.
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
- PySpark Tutorial for Beginners and Advanced Users
- 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 give read permission to non administrative accounts to Event Viewer in Windows 2008R2/2012
SQL Server | How to recover sa pasword in sql server 2012 or 2014
Integration Services (SSIS) Event Handlers
Merge Transformation in SSIS
Difference between Union All and Merge Transformation in SSIS
The video it short demo so you understand the difference between Union all and Merge Transformation in SSIS in-detail.
Split Single Column Data into Multiple Columns in SSIS Package
In this video we will also learn how to use functions in Derived Column Transformation. In our case, we will use FindString function in derived column Transformation to split single delimited column into multiple columns.
How to display variable value from script task in SSIS
This is one of technique SSIS Developer use to see the value of Variable in SSIS Package. The video will show you how exactly you can use Script Task to watch the value of Variable. The video will show you how to save the record count from Data Flow Task to variable and then display.
Delete/Update Records in Data Flow Task in SSIS Package
Expressions in Conditional Split Transformation in SSIS Package
SSIS Multicast Transformation Demo
The Multicast Transformation can be used to load the same input data to multiple destinations.
Resolved: Specify the valid certificate to authenticate Microsoft Dynamics Lifecycle Services System Diagnostic Service
KB2862973
As a result, when you try to use cert as explained in below link, you will get error:
Specify the valid certificate to authenticate Microsoft Dynamics Lifecycle Services System Diagnostic Service
or
Specify the valid certificate to authenticate
This would be for any application you are trying to connect to using the Cert.
Resolution:
1 - Go to Control Panel
2- Uninstall a program or Program and Features in case of win 2007
3- View installed update
4- Find the Correct KB as mentioned above under security updates
5- Uninstall
6- Create new certificate and put it in trusted Root ( start->mmc->file->Add/Remove Snapin) as shown in the Fig 1.0
![]() |
Fig 1.0 |
OR
Please go to below link and download the fixed Package.
I hope it helps.
If Else Statement in Derived Column Transformation in SSIS Package
Audit Transformation in SSIS Package
SSIS Precedence Constraints with Expressions
Integration Services (SSIS) System Variables
How to use Stored Procedure in Oledb Source in SSIS
We encounter so many scenarios where we have to use Stored Procedure in OLE DB Source.
Row Sampling Transformation in SQL Server Integration Services (SSIS) Package
You will also learn what other options we have if we don't want to use this blocking transformation in SSIS Package to get sample data.
Percentage Sampling Transformation in SSIS Package
Data Viewers In SSIS
The video also explains what is the difference between Data Viewer in old version such as SSIS 2005, SSIS 2008/R2 and new versions such as SSIS 2012 and SSIS 2014.
SSIS Precedence Constraints
SSIS Package Annotation
SSIS - How to use Bulk Insert Task To Load Text File to SQL server Table in SSIS Package
SSIS - How to Perform Cross Join in SSIS Package by using Merge Join Transformation
SSIS - How to create Folders as Month Name in SSIS Package
In this video post, you will learn how to create folder as Month name dynamically each month.
SSIS - How to Enable SQL Server Logging Type for SSIS Package
It also explains the advantages/disadvantages of using SQL Server Logging in SSIS Package.
SSIS - How to Create Trace file with DateTime for SQL Server Profiler Type Logging In SSIS Package
How to enable SQL Server Profiler type logging in SQL Server Integration Services Package. The video show how to add datetime to trace file created for logging.
SSIS - How to enable Windows Event Log Type Logging in SSIS Package
You will be able to see all the step how to enable logging and then go to Windows Event Viewer to read the log information for different events from SSIS Package.
SSIS - How to Create XML Log File with Datetime for SSIS Package Execution
MS Dynamics AX 2012 R2 Video Tutorial
Microsoft Dynamics AX 2012 R2 - Video Tutorial Series
In this tutorial, you will learn Microsoft Dynamics AX 2012 R2 step by step from installation and configuration to implementation. It also provides insight to all the components related to small to enterprise level businesses who have implemented Microsoft Dynamics AX 2012 R2 as their primary ERP. You will learn real-time industry experience following these video tutorials. It provides greater detail of all the components as well as best practices of implementation.
Installation
- How to install Windows components as prerequisites of installing Microsoft Dynamics AX 2012 R2
- How to install Microsoft Dynamics AX AOS Server and Client
- How to Compile Application in Microsoft Dynamics AX 2012 R2
- How to Compile into .NET Framework CIL in Microsoft Dynamics AX 2012 R2
- How to install Enterprise Portal in Microsoft Dynamics AX 2012 R2
- How to install SharePoint 2010 as prerequisites of installing Microsoft Dynamics AX 2012 R2
- How to upload License in Microsoft Dynamics AX 2012 R2
- How to install and Configure Contoso sample data in Microsoft Dynamics AX 2012 R2
- How to install Microsoft Analysis Services SSAS extension in MS Dynamics AX 2012 R2
- How to install Reporting Extension in Microsoft Dynamics AX 2012 R2
- How to enable breakpoints and view different settings of Microsoft Dynamics AX
User Security Administration
- How to manually create user in Microsoft Dynamics AX
- How to Import Active Directory user in Microsoft Dynamics AX
- How to create Active Directory Group in Microsoft Dynamics AX
- How to create a role, duties and privileges in Microsoft Dynamics AX
- How to assign users group to a particular role in Microsoft Dynamics AX
Port Configuration
Client Configuration
Services Configuration
- Services Overview in Microsoft Dynamics AX 2012
- What are adapters and how many adapters are used in Microsoft Dynamics AX 2012
- How to Configure Application Pool IIS 7.0 associated with Microsoft Dynamics AX 2012 Web Services
- How to Configure security of AIF Web Services in Microsoft Dynamics AX 2012
- How to install Web Services on IIS in Microsoft Dynamics AX 2012
- How to troubleshoot and Monitor Different Services in Microsoft Dynamics AX 2012 R2
Workflow
Batch Server Configuration
Models in Dynamics AX
- How to create model in Microsoft Dynamics AX 2012
- How to delete a model in Microsoft Dynamics AX 2012
- How to edit model version in Microsoft Dynamics AX 2012
- How to export a model in Microsoft Dynamics AX 2012
- How to Import a model in Microsoft Dynamics AX 2012
- What are models and model concepts in Microsoft Dynamics AX 2012
Report Configuration
- How to configure Report security in Microsoft Dynamics AX
- How to add report to the Role Center in Microsoft Dynamics AX
- How to create report in Microsoft Dynamics AX 2012
- How to create Analysis Services Cube in Microsoft Dynamics AX 2012
- How to setup Source Control / Version Control in Microsoft Dynamics AX 2012 R2
- How to create SSRS report from SQL Server Analysis Services Cube in Microsoft Dynamics AX 2012 R2
- How to Display a SSRS Report in Menu in Microsoft Dynamics AX 2012 R2
Windows Server 2012 R2 Installation Videos
Learn Windows Server 2012 R2
This playlist contains videos to help you learn all about Windows Server 2012 R2, from basic to advanced levels. You'll find tutorials on topics such as:
- How to install Active Directory
- How to install Domain Services
- How to set up the MS Hyper-V Platform
- Creating different virtual machines using Hyper-V
- Cloning Hyper-V Virtual Machines
- Installation of important Windows Server 2012 R2 features, such as .Net Framework 3.5 and 4.0
- Windows Server 2012 R2 failover cluster features
- Other application feature installations (from basic to advanced)
After watching this playlist, you should be able to set up an entire infrastructure at your home or apply the same concepts at your workplace. All the videos contain real-time industry scenarios.
Windows Server 2012 R2 Tutorials
- 1.How to install .Net Framework 3.5 in Windows Server 2012 R2
- 2.Installing Windows 2012 R2 Clustering Part 1
- 3.Installing Windows Server 2012 R2 Cluster Part 2
- 4.How to Change SID of Windows Server 2012 R2
- 5.How to install Active Directory (AD) Domain Services in Windows Server 2012 R2
- 6.How to change Quorum Configuration in Windows Server 2012 R2 Cluster
- 7.How to configure and use Windows Cluster Aware Updating Role Part 1
- 8.How to configure and use Windows Cluster Aware Updating Role Part 2
Microsoft Dynamics AX Videos
1.Compile Application in Microsoft Dynamics AX 2012 R2
2.How to compile into Net Framework CIL in Microsoft Dynamics AX 2012 R2
3.How to install Enterprise Portal in Microsoft Dynamics AX 2012 R2
4.How to install Microsoft Dynamics AX AOS Server and Client
5.How to install sharepoint 2010 as prerequisites of installing Microsoft Dynamics AX 2012 R2
6.How to install windows components as prerequisites of installing Microsoft Dynamics AX 2012 R2
7.How to upload License in Microsoft Dynamics AX 2012 R2
8.How to install and Configure Contoso sample data in Microsoft Dynamics AX 2012 R2
9.How to install Microsoft Analysis services SSAS extension in MS Dynamics AX 2012 R2
10.How to install Reporting Extension in Microsoft Dynamics AX 2012 R2
How to create flat files per partition from a SQL Server Partitioned Table in SSIS Package
Scenario:
Solution:
go
--Create Database for our post
CREATE DATABASE sales
go
--Add Multiple file groups
ALTER DATABASE sales ADD filegroup sales_data_1
go
ALTER DATABASE sales ADD filegroup sales_data_2
go
ALTER DATABASE sales ADD filegroup sales_data_3
go
ALTER DATABASE sales ADD FILE ( NAME = sales1, filename =
'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQL2008\MSSQL\DATA\Sales_1.ndf'
, size = 50mb, maxsize = 50mb, filegrowth = 50mb) TO filegroup sales_data_1
go
ALTER DATABASE sales ADD FILE ( NAME = sales2, filename =
'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQL2008\MSSQL\DATA\Sales_2.ndf'
, size = 50mb, maxsize = 50mb, filegrowth = 50mb) TO filegroup sales_data_2
go
ALTER DATABASE sales ADD FILE ( NAME = sales3, filename =
'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQL2008\MSSQL\DATA\Sales_3.ndf'
, size = 50mb, maxsize = 50mb, filegrowth = 50mb) TO filegroup sales_data_3
go
--Create Partitioned Function, I have created per year
USE sales
go
CREATE partition FUNCTION parfunction_sale (datetime) AS range RIGHT FOR VALUES
('2013-01-01', '2014-01-01')
--Create Partition Scheme
CREATE partition scheme schema_sale AS partition parfunction_sale TO (
sales_data_1, sales_data_2, sales_data_3)
--Create our Table
CREATE TABLE dbo.customersale
(
customerid INT IDENTITY(1, 1)NOT NULL,
salepersonname VARCHAR(100),
saleproductname VARCHAR(100),
saledate DATETIME NOT NULL
)
ON schema_sale(saledate)
--Insert some Sample Data
INSERT INTO dbo.customersale
(salepersonname,
saleproductname,
saledate)
VALUES ('Aamir',
'TV',
'2013-02-01'),
('Aamir',
'TV1',
'2013-02-02'),
('Aamir',
'CellPhone',
'2013-07-20'),
('Raza',
'Computer',
'2014-02-01'),
('Raza',
'Ipad',
'2014-11-11'),
('John',
'TV',
'2013-05-05')
SSIS Package Part:
Step 1:
Step 2:
FROM sys.partitions
WHERE Object_name(object_id) = 'CustomerSale'
AND rows > 0
Step 3:
Step 4:
FROM dbo.customersale
WHERE $partition.Parfunction_sale(saledate) = ?
Step 5:
- How to create Database with multiple Data files in SQL Server
- How to create Partitioned Table in SQL Server
- How to create Partition Function and Partition Scheme in SQL Server
- How to use Execute SQL Task to load data into Object Type variable
- How to read data from Object Type variable by using Foreach Loop Container
- How to map variables in Foreach loop Container in SSIS Package
- How to use Data Flow Task to read data from OLE DB Source with Parameter and create flat file.
- How to write expressions on Flat file connection manager to generate files with dynamic name
- How to create and use variables in SSIS Package
How to create tables for multiple pipe delimited files and load them dynamically to those tables in SSIS Package
Scenario:
Solution:
using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using System.IO; using System.Data.SqlClient; namespace ST_da3127cebb85407989456cc583a3f9e4.csproj { [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")] public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase { #region VSTA generated code enum ScriptResults { Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success, Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure }; #endregion public void Main() { SqlConnection myADONETConnection = new SqlConnection(); myADONETConnection = (SqlConnection)(Dts.Connections["ADOAUDIT"].AcquireConnection(Dts.Transaction) as SqlConnection); MessageBox.Show(myADONETConnection.ConnectionString, "ADOAUDIT"); string line1 = ""; //Reading file names one by one string SourceDirectory = @"C:\SourceFolder\"; // TODO: Add your code here string[] fileEntries = Directory.GetFiles(SourceDirectory); foreach (string fileName in fileEntries) { // do something with fileName MessageBox.Show(fileName); string columname = ""; //Reading first line of each file and assign to variable System.IO.StreamReader file2 = new System.IO.StreamReader(fileName); string filenameonly = (((fileName.Replace(SourceDirectory, "")).Replace(".txt", "")).Replace("\\", "")); line1 = (" IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo]." + filenameonly + "') AND type in (N'U'))DROP TABLE [dbo]." + filenameonly + " Create Table dbo." + filenameonly + "([" + file2.ReadLine().Replace("|", "] VARCHAR(100),[") + "] VARCHAR(100))").Replace(".txt", ""); file2.Close(); MessageBox.Show(line1.ToString()); SqlCommand myCommand = new SqlCommand(line1, myADONETConnection); myCommand.ExecuteNonQuery(); MessageBox.Show("TABLE IS CREATED"); //Writing Data of File Into Table int counter = 0; string line; System.IO.StreamReader SourceFile = new System.IO.StreamReader(fileName); while ((line = SourceFile.ReadLine()) != null) { if (counter == 0) { columname = line.ToString(); columname = "[" + columname.Replace("|", "],[") + "]"; MessageBox.Show(columname); MessageBox.Show("INside IF"); } else { MessageBox.Show("Inside ELSE"); string query = "Insert into dbo." + filenameonly + "(" + columname + ") VALUES('" + line.Replace("|", "','") + "')"; MessageBox.Show(query.ToString()); SqlCommand myCommand1 = new SqlCommand(query, myADONETConnection); myCommand1.ExecuteNonQuery(); } counter++; } SourceFile.Close(); } Dts.TaskResult = (int)ScriptResults.Success; } } }
What are the best practices for SSIS Configuration
- Making a decision about type of SSIS configuration you should use?
- Naming your XML Configuration file or SSIS Configuration table properly
- Provide meaningful name to Environment Variable for Indirect SSIS Configuration.
- Save only required property values in SSIS Configuration file or SSIS Configuration Table. Avoid including any configuration which are not required and you never use them.
- Name your Configurationfilter meaningful and unique
- Reuse the configuration record if already available in SSIS Configuration table.
- Secure your SSIS Configuration files and SSIS Configuration table