|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, March 06, 2013 2:39 AM
Points: 554,
Visits: 221
|
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 11:02 AM
Points: 550,
Visits: 443
|
|
It wasn't difficult to find the ???? in the script and was able to get it to run. However due to the nature of the way some of my databases are named I had to make a small revision to get the script to run completely. The line of code in both procedures is as follows:
'Use '+@dbName+'; '+
I changed it to:
'Use ['+@dbName+']; '+
and this was able to correct the problem. Thanks for the script. I have a project that was handed me to provision the production SQL Server box for 2009.
Kurt
Kurt W. Zimmerman SR DBA Lefrak Organization New York, NY
http://www.linkedin.com/in/kurtwzimmerman
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 28, 2013 5:25 AM
Points: 21,
Visits: 141
|
|
Hey Max, While reading your article i checked the script in sql server 2005, it was giving me the error.
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(7 row(s) affected) Msg 111, Level 15, State 1, Procedure #uspGetFileStats, Line 9 'CREATE/ALTER PROCEDURE' must be the first statement in a query batch. Msg 213, Level 16, State 7, Line 1 Insert Error: Column name or number of supplied values does not match table definition.
do you have any change in the script?
Saurabh
|
|
|
|