Set @DSQL = N'Select <@outLocalParameter> =
Exec sp_executesql @query = @DSQL, @params = N'<@outLocalParameter>
Print <@outLocalParameter>
<@inputLocalParameter> - Parameter / Local variable that is an input to the dynamic query session.
<@outLocalParameter> - Parameter that is set and retrieved from the dynamic query session.
the system stored procedure "sp_executesql", so don't u panic!!!