• For those still interested, I whipped up a script to get all of the maximum values for any columns within a database that are defined as integers. (It should be easy to modify if you're interested in, say, smallints or tinyints).

    I'm not normally fond of cursors, but I figured it would be alright as this is a "toolbox" type of script, and not necessarily something that you would want to incorporate into a stored proc, for instance.

    If anyone sees improvements that can be made, have at it.

    http://www.sqlservercentral.com/scripts/contributions/1468.asp

     

    TroyK