Hi,
I have this stored procedure:
create proc ExecuteScripts (@SQLstat varchar(max))
as
begin
exec SQLstat
end
When i try to create this procedure i receive the following warning from SQL Server:
Cannot add rows to sys.sql_dependencies for the stored procedure because it depends on the missing table 'SQLstat'. The stored procedure will still be created; however, it cannot be successfully executed until the table exists.
But SQLstat is a variable that i want to pass, not a table...
Can someone explain?
Thank you