I have this stored procedure:
create proc ExecuteScripts (@SQLstat varchar(max))
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?