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
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 ssis design question?

Author  Topic 

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-19 : 19:52:00
Greetings

I am trying to design my SSIS package properly, this is my first one in SQL 2005.
I have my ssis package running every 15 minutes doing upserts. Would a design approach of having one ssis package calling one jumbo sproc that calls other sprocs that call other functions be a good idea?
if the whole fails I want it to fail...
but I can see where I can break this jumbo sproc and push out the other sprocs into T-SQL tasks on their but I do not see why...

would appreciate your input.

Thanks

evmisu
Starting Member

17 Posts

Posted - 2009-01-19 : 23:21:38
Hi Yosiasz
I am sorry to say that I cannot solve ur problem but i am really curious about that how to set the package run every 15 minutes. where is the function?

Thank you very much for telling me the informaion. I am really new to SSIS.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-20 : 00:30:58
quote:
Originally posted by evmisu

Hi Yosiasz
I am sorry to say that I cannot solve ur problem but i am really curious about that how to set the package run every 15 minutes. where is the function?

Thank you very much for telling me the informaion. I am really new to SSIS.



You can do this inside a SQL Server Agent job.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-20 : 00:31:30
quote:
Originally posted by yosiasz

Greetings

I am trying to design my SSIS package properly, this is my first one in SQL 2005.
I have my ssis package running every 15 minutes doing upserts. Would a design approach of having one ssis package calling one jumbo sproc that calls other sprocs that call other functions be a good idea?
if the whole fails I want it to fail...
but I can see where I can break this jumbo sproc and push out the other sprocs into T-SQL tasks on their but I do not see why...

would appreciate your input.

Thanks



It is very hard to answer this question with the information that you have provided.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-22 : 11:14:41
oops sorry here it what I mean
I have an SSIS packake with 1 and only SQL Task which calls one store procedure

usp_InsertCommodityDefinitions (which does the following INSERTs)
INSERT [dbo].[VCommodityDefinitions]
EXEC dbo.usp_GetPlatesCutArea

INSERT [dbo].[VCommodityDefinitions]
EXEC dbo.usp_GetPlatesEPT

.....
....

Is this a good design approach?

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 11:27:57
why are trying to wrap all inside same procedure. you could simply use separate sql tasks for each table insertion. this way you will be able to isolate which part is having problems easily while debugging. for failing them together you could keep all the tasks inside a sequence container and set transaction property to required for container in which case it will undo all changes in case of any intermediate failure and at the same time you can clearly identify which part failed by looking into details of task alone which failed.
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-22 : 12:05:03
true true...the insert is in the same table just different values for different commodity types and even for each commodity type there are many different definitions types..
but I agree it would make more sense to do each insert in different SQL Tasks.
that way i will not have one lonely SQL task all cold by itself. it needs other SQL task friends.

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 12:12:47
yup. but is that a problem? using seperate sql tasks for each? i think that should be an approach that you should seriously consider
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-22 : 12:43:22
no sir no problem! I have done as yu suggest and it cleaner and easier to manage.

shukran, merci, dangShaun
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 12:45:52
ok...cheers
Go to Top of Page
   

- Advertisement -