Solved

sp_runwebtask: How does this sp get run

Posted on 2004-03-25
7
557 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
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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 125 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hyperlink data type in SQL 3 27
[SQL server / powershell] bulk delete table from CSV 8 33
Return 0 on SQL count 24 30
SSRS Enable Remote Errors 4 26
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.

777 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