Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


extract data from oledb source to excel work sheets


extract data from oledb source to excel work sheets

Author
Message
pundari.fortech
pundari.fortech
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 23
hi,

i have 3 tables they are pcategory,psubcategory,product.i get the data from three tables using with joins and given group by columns pcat,psubcat,product.and pcategory has 4 categories like A,B,C,D.and i want the data like category wise i.e all details of category A,B,C,D are will loaded into 4 excel files and and each category has some subcategories and they will loded into sheet wise respective of thier category data.

ex: A contains three sub categories like a,b,c and they will loaded in to sheet1,sheet2,sheet3 respectively

it is the task i hope you understood it.can you explain the process how to solve this task?
Raunak Jhawar
Raunak Jhawar
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1215 Visits: 1944
Please follow here

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
Brandie Tarvin
Brandie Tarvin
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9095 Visits: 8823
If you don't need dynamic destinations (like the above post points you to), just create an OLE DB Connection Manager for your Excel sheet using the Jet 4.0 connection and point to the Excel spreadsheet. When you do your Data Flow Tasks, you can then connect to different sheets by using the OLE DB Destination and Data Access Mode of Table or View. Then the name of the sheet comes below that.

I recommend using stored procedures called via SQL Command in an OLE DB Source for your Data Flow Task rather than embedding the T-SQL directly in the task. Not only is it a little faster performance wise, f you have to make changes to your code, you only have to make it in the database instead of changing your SSIS package and re-uploading it every time.

Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search