I've created a sp and because of the multitude of joins and thousands of records it creates, I know that it will cause significant performance issues, so I will be scheduling it to run at night and use the table it updates for our reports.
When I am trying to create the procedure within EM, the check syntax is fast with no errors, but when I click on Ok, it sits and hangs for quite a while, then I look back and it has deleted most of the syntax.
I have deleted the sp and pasted the syntax in query analyzer, but it's now at 6 minutes without doing anything. Why is it taking so long just to create the procedure (ie creating the procedure should not actually run the syntax)?
When I am trying to create the procedure within EM, the check syntax is fast with no errors, but when I click on Ok, it sits and hangs for quite a while, then I look back and it has deleted most of the syntax.
I have deleted the sp and pasted the syntax in query analyzer, but it's now at 6 minutes without doing anything. Why is it taking so long just to create the procedure (ie creating the procedure should not actually run the syntax)?