>Do you know why I'm getting errors on these two lines
>
> SELECT [name] from [sysdiagrams] WHERE [name] LIKE '%<script%'
> RAISERROR('Error in table sysdiagrams in column name ',16,1)
>
Maybe because you didn't have a database diagram defined in that DB?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.