Specify sql variable in dbt
Solution 1:
If this is in SQL Server, isn't the syntax @@RowCount
?
Pre-supposing that, there are two in development dbt
"Adapter" projects to SQL Server:
Per the docs on supported dbs:
- dbt-sqlserver - SQL Server 2016 and later
- dbt-mssql - SQL Server 2008 R2 and later
Depending on your version, I would recommend opening an issue for that particular variable if it doesn't work as-is.