Find jobs | Company-wise jobs
Jobseekers | Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Interview Q&A Tutorials Oracle Sql server .NET Java Soft skills CV GD Work from home Online practice test FAQs in PDF Books Jobs FAQs
Interview questions                                 
SQL Server part 1
SQL Server part 2
SQL Server part 3
SQL Server part 4
SQL Server part 5
SQL Server part 6
SQL Server part 7
SQL Server part 8
SQL Server part 9
SQL Server 2008
Test your SQL Server skills!
Sql Server database maintenance
SQL Server backup
SQL Server cursor
SQL Server replication
Structured query language
SQL Server architecture
SQL Server constraints
SQL Server cursors
Data Mining
Data warehousing
SQL Server DTS
SQL Server functions
SQL Server indexes
SQL Server joins
SQL Server locks
SQL Server Net integration
SQL Server optimization
SQL Server replication
SQL reporting services
SQL service broker
SQL Server stored procedures
SQL Server table
SQL Server transactions
SQL Server transactions Architecture
SQL Server triggers
SQL Server views
SQL Server XML integration
SQL Server DDL
SQL Server DML
SQL Server DCL
SQL Server identifier
SQL Server data integrity
SQL Server accessing data
SQL Server subqueries
SQL Server cube operator
SQL Server insert data
SQL Server distributed queries
SQL Server index tuning
 

SQL Server - generate an auto incremental number in a SSIS package

Next>>         SQL Server tutorial  

SQL Server - generate an auto incremental number in a SSIS package - Feb 27, 2010 at 11:50 AM by Shuchi Gauri

How to Generate an Auto Incremental Number in a SSIS Package?

Steps to generate an Auto Incremental Number in SSIS package:

  • Drag the Script component to the Data flow and select Script component yype as Transformation.
  • Double click the script component. In the input columns tab choose the column you need to pass through script component.
  • In Inputs and Outputs tab, add a column with an integer data type.
  • Go to Script tab and click Design script and type the following in it:

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper

Public Class ScriptMain
Inherits UserComponent

Dim Counter As Integer = 0 'Set intial value here
Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
Row.Column = Counter
Counter = Counter + 1 ' Set the incremental value here
End Sub
End Class

SQL Server - generate an auto incremental number in a SSIS package - May 05, 2009 at 22:00 PM by Rajmeet Ghai

How to Generate an Auto Incremental Number in a SSIS Package?

Auto incremental numbers in a SSIS package can be provided using script components. The script component should be dragged and dropped to the data flow and Transformation should be the component type. The input column that needs to be set and passed to the script component should be selected by double clicking the script component. Using the input and output tab, an integer column data type can be added. Now, the script to write the coding logic can be written in which the starting and incremented by value can be set.

SQL Server - generate an auto incremental number in a SSIS package - June 21, 2009 at 09:00 AM by Amit Satpute

How to Generate an Auto Incremental Number in a SSIS Package?

The incremental integers in tables can be activated by setting the identity property for a column.

In a T-SQL, this can be done by the ROW_NUMBER() function.

In SQL Server Reporting Services RowNumber(Nothing) can be used.

There is no function in SSIS to do this. It can be done using the Script component of SSIS as follows:

  • Select Script Component Type as Transformation.
  • Select the column you want to pass through the script component.
  • In the Inputs and Outputs tab, add a column with an integer data type.


Next>>

Also read

SQL Server Reporting Services

What can SQL Server Reporting Services do? Explain the architecture of reporting services. Describe Reporting Lifecycle. What are the ways to tune Reporting Services?......

How to send a SSRS report from SSIS?

SSIS has the ability to send SSRS report in different formats like Excel, PDF etc.....

How to schedule SSAS Database backup.

SSAS database backups can be taken using SQL Server Management Studio (SSMS)......

Lookup's are a key component in SQL Server Integration Services (SSIS). Explain its purpose

Lookup transformation combines data from two sources. The fields of these sources are matched......

How to unzip a File in SSIS?

Execute Process Task in the Control Flow task can be used to unzip a file......

 

 
Want to be hunted by potential employers? Just submit your key skills!

Popular FAQs

.NET .Net Architecture ADO.NET Java Oracle C#.NET
VB.NET DOT.NET AJAX ASP.NET NET Framework OOPS in .NET
C++ Sql Server Data warehousing EJB MySQL Linux
PHP UML Networking Testing XML  
 
Copyright © 2008 - 2010 CareerRide.com. All rights reserved.