Home Forums SQL Server 2012 SQL 2012 - General SQL Serer 2012 gives error: "Must declare the scalar variable" even when variable is declared RE: SQL Serer 2012 gives error: "Must declare the scalar variable" even when variable is declared

  • Issue is resolved... in a bit strange way.

    Problem seemed to be due to permission issue. I was executing a Setup by double clicking on its EXE. This script was coming in picture during installation.

    When I executed same Setup under local Administrator user (by right clicking and selecting 'Run As Administraor') it worked properly without any error.

    Don' know how permissions affected this behavior