Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 excel sheet

Author  Topic 

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-12-09 : 01:42:45
hi

i am having 2 excel sheet

one sheet contain 10 rows, another sheet contain 300 rows

i want to join this two, but now i want to get only 10 rows in my 1st excel sheet how to get that in ssis

reply plz

anand

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 01:47:19
add a data flow task in ssis and use a excel source inside it connect to sheet1 for getting the 10 rows

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-12-09 : 01:52:26
i am having 2 excel sheet
1st sheet a,having 10 rows
2nd sheet b.having 300 rows

1 st sheet id column using merge join i connect to b sheet id column,after joining
totally i am getting 256 rows i dont want all the rows i want only 1st a sheet 10 rows only how to do this

anand
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 01:58:12
then why should you merge? isnt it enough to use only first sheet alone?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-12-09 : 02:05:33
ya thanks..
how to get distinct data from excel sheet

quote:
Originally posted by visakh16

then why should you merge? isnt it enough to use only first sheet alone?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/





anand
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 03:35:02
when you create an excel source you'll always specify a sheetname so that it fetches data only from it? isnt that enough?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -