Quantcast
Channel: Welcome To TechBrothersIT
Browsing all 1876 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

SSIS - How To Delete Bottom N Rows From Flat File in SSIS Package

Scenario:In our previous post, we learnt how to delete Top N rows from flat file by using SSIS. In this post we will learn how to delete Bottom or Last N rows from text file in SSIS by using Script...

View Article


Image may be NSFW.
Clik here to view.

SSIS - How To Use Flat File Or Excel File In Lookup Transformation [Cache...

Scenario: We use Lookup Transformation to join input data with reference data to get required data from Reference Data. By using Lookup Transformation we can connect to databases and get the reference...

View Article


Image may be NSFW.
Clik here to view.

SSIS - How to Find The Version Of SSIS Package From Dtsx File

Scenario: Let's say you just start working for a company and they pointed you to a folder which holds SSIS Packages. You need to find out the version of these SSIS Package and schedule them to SQL...

View Article

Image may be NSFW.
Clik here to view.

/REPORTING E " has mismatched quotes. The command line parameters are...

I created the SQL Server Agent job to run an SSIS Package. The Package needed to read the file from input folder. As the Package is not created with SSIS Configuration, I had to pass the folder path to...

View Article

Image may be NSFW.
Clik here to view.

Length of LOB data to be replicated exceeds configured maximum 65536

I have a table in which one column datatype is ntext. The replication was created while back. Yesterday when I was deploying some DML scripts , the script failed with below error.Msg 7139, Level 16,...

View Article


SQL DBA - How to Grant Execute Permission To User on msdb.dbo.sp_send_dbmail...

The below script can be used step by step to create login, user and finally provide execute permission to user on sp_send_dbmail stored procedure in SQL server so the user can send emails.--Create...

View Article

SQL Server Error Messages

 /REPORTING E " has mismatched quotes.  The command line parameters are invalid.  The step failed.Length of LOB data to be replicated exceeds configured maximum 65536

View Article

Image may be NSFW.
Clik here to view.

SSIS - How to Disable/Enable Task/s In SSIS Package

Scenario:One of our SSIS Package failed in Production today. By looking at the log information we got to know that the one of the Data Flow Task failed. We want to debug this package in Development...

View Article


Image may be NSFW.
Clik here to view.

SSIS - How To Build SQL Query By Using Expressions in SSIS Package

Scenario:A friend of mine who is working as ETL Developer. He wrote Merge Statement for Upsert. When he was deploying his package to QA,UAT and Production, He noticed that the Source and Destination...

View Article


Image may be NSFW.
Clik here to view.

SQL DBA - How To Enable/Disable Database User in SQL Server

If you see a red down arrow on User name under Users Tab in Database what does that mean? Simple and short answer can be , the user is disable.Fig 1: User is Disabled in DatabaseAs long as we don't...

View Article

Image may be NSFW.
Clik here to view.

SSIS - How To Create Folder with Date in SSIS Package

Scenario:We load data from different type of files on daily basis. We want to archive files after load. To manage processed files by date, we need to create a folder with Date every day and move the...

View Article

Image may be NSFW.
Clik here to view.

SSIS - How to Write Case Statement In SSIS Package

Scenario:We have received a text source file that has the abbreviation for Region Code. We want to convert these region codes to region name such asIf RegionCode is AS then RegionName="ASIA'If...

View Article

Image may be NSFW.
Clik here to view.

SSIS - How To Load Files in Different Tables According To The Name Of File

Scenario:We receive different text files in our source directly. For each of the file we have created the table. By anytime we get a file. We want to execute our SSIS package and load that file to...

View Article


DBA Posts - How to find SQL Server Port number using T-SQL?

How to find SQL Server Port Number from Management Studio?Sometimes it is easier to run a query to find SQL Server Port number than having to remote into the server - You can find SQL Server Port...

View Article

DBA Posts - How to monitor SQL Server Cluster failover as well as current...

Cluster Failover Notification ProcessThis process explains step by step process of monitoring cluster failover of SQL Server. Basic Idea behind this process is to find active node (where sql server...

View Article


Image may be NSFW.
Clik here to view.

The database principal owns a schema in the database, and cannot be dropped....

Today when I was removing (deleting) some of the users from one of the SQL Server Database , got below errorThe database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL...

View Article

Image may be NSFW.
Clik here to view.

DBA - How To Find When SQL Server Instance was Started Last Time

We often want to know what was the last time SQL Server instance restarted. There are multiple ways to find out. Here is TSQL script that can be used to find out the restart time of SQL Server...

View Article


DBA - How to Restore Database On Which Change Data Capture (CDC) Is Enabled

Scenario:We have enabled CDC on a Database in Production environment. We want to take the backup from Production and then restore to UAT instance. After restoring we noticed that the CDC tables are not...

View Article

Image may be NSFW.
Clik here to view.

SSIS - How to create flat files for all the tables from a SQL Server Database

Scenario:Today's requirement is to generate flat files for all the tables of a SQL Server Database. The file name should be SchemaName_TableName.txt. Solution:Let's start with step by step...

View Article

Image may be NSFW.
Clik here to view.

SSIS - How to Convert Month Name into Month Number in SSIS Package

Scenario:Sometime we get the Month Name that can be full Month name such as January or we get short Month name Jan in our source file, but in our destination table we want to load the Month Number...

View Article
Browsing all 1876 articles
Browse latest View live