?
Solved

sp_runwebtask: How does this sp get run

Posted on 2004-03-25
7
Medium Priority
?
575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 10683974
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
ID: 10684051
Testing comments
0
 
LVL 12

Author Comment

by:Tony303
ID: 10684082
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 34

Expert Comment

by:arbert
ID: 10684096
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
ID: 10684191
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 500 total points
ID: 10684218
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
ID: 10684276
1
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

752 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