|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, December 16, 2011 2:21 AM
Points: 76,
Visits: 135
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, December 01, 2009 7:50 AM
Points: 21,
Visits: 88
|
|
Maybe I am missing a step but this proc doesn't compile.
Msg 102, Level 15, State 1, Line 3 Incorrect syntax near ' '. Msg 102, Level 15, State 1, Line 57 Incorrect syntax near ' '. Msg 102, Level 15, State 1, Line 146 ....
edited out numerous errors.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, December 16, 2011 2:21 AM
Points: 76,
Visits: 135
|
|
It seems the script that got published has space unicode characters in it - I am attaching a zip file with compiled query - let me know if that works for you.
Thanks,
Farhan Sabzaali
Farhan F. Sabzaali PMP, MCP, MCDBA, MCSA, MCSE
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, December 01, 2009 7:50 AM
Points: 21,
Visits: 88
|
|
| That worked great. Very nice job.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:07 AM
Points: 229,
Visits: 257
|
|
Nice, very comprehensive, lot of work.
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 12:49 PM
Points: 31,432,
Visits: 13,742
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, March 23, 2009 11:39 PM
Points: 1,
Visits: 6
|
|
The comments in the sp say its for SQL 2005 only, but will it run on sql 2008?
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, December 16, 2011 2:21 AM
Points: 76,
Visits: 135
|
|
To be honest, I have not tried as I don't have access to one - if you can test it on dev or test environment, it would help.
Farhan F. Sabzaali PMP, MCP, MCDBA, MCSA, MCSE
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, June 26, 2009 6:25 AM
Points: 2,
Visits: 9
|
|
This has been working well for me for several weeks, then we recently updated a vendor product and I'm getting an error. Looks like they updated their code to frequently create temporary tables and delete them. It appears the rebuild procedure doesn't handle tables that have been deleted after the procedure was started:
Msg 1088, Level 16, State 9, Line 1 Cannot find the object "NetPerfMon.dbo.NetFlowDetail_579_1382041" because it does not exist or you do not have permissions.
Any suggestions appreciated.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, December 16, 2011 2:21 AM
Points: 76,
Visits: 135
|
|
Ideally, you should run these type of jobs when database is in maintenance window - if possible, try to schedule it when the application is not using the DB. If that is not possible, try running it with Online option = 0 - that should only look for existing tables. If that does not work, I may have to review code in detail to help you.
Farhan F. Sabzaali PMP, MCP, MCDBA, MCSA, MCSE
|
|
|
|