Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 13537

Custom Table SQL

$
0
0

Hi,

 

I struggle to use macros in SQL in a custom table. Is this not possible??

 

Here is my example:

 

SELECT CS.RowID as RowID, IsNull(CS.Status, 0) as Value

INTO #Sensor_Names

FROM CustomPollerStatus CS

INNER JOIN CustomPollerAssignment CA ON CA.CustomPollerAssignmentID = CS.CustomPollerAssignmentID

WHERE (CA.CustomPollerID='ABB18B3C-BCB2-473D-AC66-24BED1C8C799') AND (CA.NodeID=114)

 

I want to replace teh last part of the WHERE clause with "(CA.NodeID=${nodeid}) but that doesnt work...

 

Any ideas?


Viewing all articles
Browse latest Browse all 13537

Trending Articles