Solved

sp_runwebtask: How does this sp get run

Posted on 2004-03-25
7
551 Views
Last Modified: 2007-12-19
I have used the wizard to make a web page, I opted for the refresh on data change feature.
My web page however is only showing the data as at the time I used the web wizard. The data has changed.

I saved the wizard SQL statement and am happy that the field that changes will be an actual changing field. IE @whentype=10, @datachg=N'TABLE=DailyData COLUMN=ID'.

I have run sp_runwebtask manually in query analyser and then refreshed my web page and it works fine.

So how does the updating of data in the table fire off the sp_runwebtask??
Mine doesn't seem to.




0
Comment
Question by:Tony303
  • 4
  • 3
7 Comments
 
LVL 34

Expert Comment

by:arbert
Comment Utility
When you create a webtask, triggers are added to the table you specified when you create the task.

So, you might see if the triggers are on the table.  If the table was rebuilt after the package was created, the triggers probably didn't get recreated....

Are you positive that DailyData has the column called ID?
0
 
LVL 12

Author Comment

by:Tony303
Comment Utility
Testing comments
0
 
LVL 12

Author Comment

by:Tony303
Comment Utility
Ok, Cool.

I see 3 triggers one for insert, update and delete.

I will check those out.

No the table was not reuilt after the package was created.
Yes there is a column called ID.

Keep you posted.

Thanks
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 34

Expert Comment

by:arbert
Comment Utility
So, as long as the triggers are testing for the change of column "id", the task should kick off...
0
 
LVL 12

Author Comment

by:Tony303
Comment Utility
Ok, Here's where I am up to...

Here is the scenario, I ran SQL Profiler, opened query Analyser, deleted 1 line of Data.
Looked at profiler, saw my trigger had fired.
Opened my Web Page. Hey presto, data is as expected.

Next thought,
what about when my data is added, as I usually do via a SQL Job running a DTS package inserting data.

Started profiler, ran sql job, Ran OK. Looked at profiler results, no trigger fired. In my SQL job there is an insert and a delete statement, so I would expect the trigger to go off at least once.

Why wouldn't the trigger fire???

0
 
LVL 34

Accepted Solution

by:
arbert earned 125 total points
Comment Utility
If your DTS package is doing "bulk operations" the triggers won't fire.  So, if you're doing inserts in a transform and you have the "fast load" option checked, the triggers won't fire...

Depending on the size of the DTS job, the triggers could really slow things down any way.  You could create a proc at the end to automatically fire the web task job...

I would expect the delete to fire--do you happen to be doing a truncate instead of a delete?
0
 
LVL 12

Author Comment

by:Tony303
Comment Utility
1
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now