Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

What to do with @__timezoneoffset in SQL Query?

$
0
0

Several of the canned reports (as an example, Computers that have run a specific metered software program) use the @__timezoneoffsetin them, and don't declare it--and it works in the web report.  If you try running them in SQL Manager (as is or if you are attempting to make a modified report) you get the error

Msg 137, Level 15, State 2, Line 16

Must declare the scalar variable "@__timezoneoffset".

What is the correct way to handle using @__timezoneoffset?

Thanks!


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>