|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:56 PM
Points: 93,
Visits: 380
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 1:19 PM
Points: 106,
Visits: 165
|
|
Great script!! Very uself....
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:56 PM
Points: 93,
Visits: 380
|
|
| Thank you! I hope it helps you out. :)
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 31, 2013 10:55 AM
Points: 16,
Visits: 558
|
|
Hi, love this script! Thanks for taking the time to put this together! This is coming to come in handly often. Thanks again
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:48 AM
Points: 21,
Visits: 63
|
|
Sean
I've tried your script but get a whole load of errors (see below). I'd be grateful for your help as your report looks really useful.
Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 29 Line 29: Incorrect syntax near 'MAX'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 30 Line 30: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 37 Incorrect syntax near the keyword 'TABLE'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 39 Line 39: Incorrect syntax near 'MAX'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 40 Line 40: Incorrect syntax near 'MAX'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 41 Line 41: Incorrect syntax near 'MAX'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 45 Must declare the variable '@vRecipients'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 46 Must declare the variable '@vCopy_Recipients'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 62 Must declare the variable '@vXML_String'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 69 Must declare the variable '@vBody'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 145 Line 145: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 159 Incorrect syntax near the keyword 'FOR'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 185 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 185 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 213 Must declare the variable '@vFixed_Drives_Free_Space_Table'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 228 Line 228: Incorrect syntax near 'MAX'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 234 Must declare the variable '@vFixed_Drives_Free_Space_Table'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 243 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 257 Must declare the variable '@vBody'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 345 Must declare the variable '@vSQL_String'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 345 Must declare the variable '@vSQL_String'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 363 Line 363: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 375 Incorrect syntax near the keyword 'ORDER'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 383 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 402 Must declare the variable '@vBody'. Msg 195, Level 15, State 10, Procedure usp_SSAJ_SQL_Server_System_Report, Line 443 'ROW_NUMBER' is not a recognized function name. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 468 Line 468: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 489 Incorrect syntax near the keyword 'ORDER'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 498 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 517 Must declare the variable '@vBody'. Msg 195, Level 15, State 10, Procedure usp_SSAJ_SQL_Server_System_Report, Line 563 'ROW_NUMBER' is not a recognized function name. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 584 Line 584: Incorrect syntax near 'A'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 597 Line 597: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 612 Incorrect syntax near the keyword 'ORDER'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 621 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 640 Must declare the variable '@vBody'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 723 Line 723: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 734 Incorrect syntax near the keyword 'ORDER'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 742 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 760 Must declare the variable '@vBody'. Msg 137, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 877 Must declare the variable '@vSQL_String'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 877 Must declare the variable '@vSQL_String'. Msg 170, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 895 Line 895: Incorrect syntax near 'MAX'. Msg 156, Level 15, State 1, Procedure usp_SSAJ_SQL_Server_System_Report, Line 907 Incorrect syntax near the keyword 'ORDER'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 918 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 937 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 971 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 979 Must declare the variable '@vBody'. Msg 137, Level 15, State 2, Procedure usp_SSAJ_SQL_Server_System_Report, Line 988 Must declare the variable '@vRecipients'.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:56 PM
Points: 93,
Visits: 380
|
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:56 PM
Points: 93,
Visits: 380
|
|
| Can you give me some details such as what version of SQL Server you are using? Also, I know that if you are using some versions of IE that code on SQLServerCentral doesn't always copy / paste properly.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, September 11, 2012 7:57 AM
Points: 86,
Visits: 87
|
|
Love the article. However it's going to talk a lot of work to make it Binary compatible. Unfortunately due to the nature of the beast we run all our DBMS in Latin1_Gen_Binary. As such, spelling and capitalization matter.
I always hate when really great articles end up in hours of frustration trying to retrofit the solution into Binary format.
Great article...
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 2:56 PM
Points: 93,
Visits: 380
|
|
Thanks for the feedback. Sorry it can't help you though.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, September 11, 2012 7:57 AM
Points: 86,
Visits: 87
|
|
Actually, I appologize. It was only 3 places with SYSNAME vs sysname.
Really Cool...
|
|
|
|