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.
Author |
Topic |
sadbjp
INNER JOIN
41 Posts |
Posted - 2007-05-14 : 10:41:00
|
Hi,How can write this in a query:If @maxLastUpdate is later than LastUpdate, call stored procedure usp_RubricReportUpdate @DataYears, @County, @Distirct to update the report. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-05-14 : 10:43:12
|
[code]If @maxLastUpdate is later than > LastUpdate call stored procedure exec usp_RubricReportUpdate @DataYears, @County, @Distirct to update the report.[/code] KH |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-05-14 : 10:44:55
|
If exists(Select * from table where @maxLastUpdate > LastUpdate) exec usp_RubricReportUpdate @DataYears, @County, @Distirct MadhivananFailing to plan is Planning to fail |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|