SQL SERVER 2012

Step by Step SSIS learning What Data Conversion use in SSIS ? TIP#116

Dear Friends, In the series of step by step learning of SSIS this is part #6 in which we are going to learn a new control Data Conversion.  I am sure by the name it clear that this control will be use when we require data type conversion of input columns then we need this …

How to use SORT control in SSIS ? TIP #115

Dear Friends, In the series of Learn SSIS step by step this is the 5th post. Now from this post we are going to use each transformation control one by one. So, lets start with simplest one transformation control which is “Sort”. By the name it is clear data it will sort the data which …

How to deploy SSIS Package ? Step by Step SSIS TIP #114

Dear Friends, In last post we have successfully created our fist basic package. So, Now the next thing is how to deploy this package. We have created this package for someone else or our client so we need to run this package on his /her machine. For this we need to know how to deploy. …

How to create first basic package with SSIS ? tip #113

Dear friends, In last post #112 we understood WWH (What ,Why & How ) of SSIS. Now , lets move now real quick in practical session where we will try to create a basic simple package. The example which we are creating is well known Export data from SQL SERVER to a flat file. Step …

How easy or difficult to write dynamic SQL ? TIP#110

This is one of the challenge for most of the developer to write dynamic SQL. Generally we follow the approach of string concatenation. This seems very easy but we need to cast the  parameters in VARCHAR and sometimes we stuck in single code. I am sure this happened with all of us.  Let’s understand first …

An interesting setting for NULL but don’t use it for future TIP #109

As we discussed earlier in TIP#103 for NULL in which I shared that we have to take extra care for NULL. Now in this tip I would like to share one of the interesting setting for NULL. Although it is just for knowledge but don’t use it because it is deprecated in future version and …

A big issue when try to Alter user define table type structure TIP #108

  I hope all of you aware of  User define table type (a table value parameter) which we discussed earlier in TIP #57. Now recently one interesting incident happened. We are using a user define table type in few stored procedure and due to some business requirement change we need to change /update data type …

An interesting way of aliasing TIP#107

I recently gone through something and found a unique way of aliasing. I thought it must be share so other techies also aware of it (or might be you already aware of it). See below example SELECT *FROM (VALUES (‘Rajat’,30),             (‘Sandeep’,40),             (‘Sunil’,35),             (‘Shreya’,50),             (‘Virendra’,45)) AS T(Name,Runs) Now when you it  you will get following result …