I am building dynamic SQL and want to execute that using the sp_executesql. When I execute the @sql_statement from the print statement in sqlserver I get a result, but when I execute it as below the @customer_id_out variable is still showing as null. Any ideas what I am doing wrong
DECLARE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.