Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

sp_runwebtask: How does this sp get run

Posted on 2004-03-25
7
Medium Priority
?
581 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

647 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