SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to code this ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sadbjp
INNER JOIN

41 Posts

Posted - 05/14/2007 :  10:41:00  Show Profile  Reply with Quote
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)

Singapore
17681 Posts

Posted - 05/14/2007 :  10:43:12  Show Profile  Reply with Quote

If @maxLastUpdate is later than > LastUpdate 
call stored procedure exec usp_RubricReportUpdate @DataYears, @County, @Distirct to update the report.



KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22769 Posts

Posted - 05/14/2007 :  10:44:55  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote

If exists(Select * from table where @maxLastUpdate > LastUpdate)
exec usp_RubricReportUpdate @DataYears, @County, @Distirct



Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30281 Posts

Posted - 05/14/2007 :  10:53:10  Show Profile  Visit SwePeso's Homepage  Reply with Quote
SADBJP, don't keep wasting our time!
Please state a real world problem and we will help yousolve it.

It all started here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83479

continued here...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83482

and last here...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83546


Peter Larsson
Helsingborg, Sweden

Edited by - SwePeso on 05/14/2007 10:54:24
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000