troubleshooting Question

getting a rowcount

Avatar of ktjamms2
ktjamms2Flag for United States of America asked on
Microsoft SQL Server
39 Comments1 Solution958 ViewsLast Modified:
I want a table to store any data that could not get upserted

and I need to get a record count for updating my table…see query:

if @RecCount > 0
            begin
                  update NavSync set myTimeStamp = @myRevTimestamp, LastUpdate=getdate(), LastExecuted = getdate(),RecordCount=@RecCount where TableID=11
            end
      else
            update NavSync set LastExecuted = getdate() where TableID=11

Thank-you for your help!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 39 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 39 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros