Hi!
I am trying to replicate OhdsiStudy2 (Treatment Pathways) and I used this SQL code available on Github (SQL Code HERE) to query the data needed for the TxPath study. The description says that it is an SQL Server code, but it does not look like it (the first line generates a syntax error). Has anyone run this query on SQL server before? What is the variable @sourcename supposed to be? The CDMDatabase?
I would appreciate your assistance. Thank you and have a great weekend