http://www.sqlservercentral.com/blogs/gerasus/2009/04/30/sql-this_2C00_-not-that-_1320_-episode-2/

Printed 2014/09/21 08:19PM

SQL This, Not That – Episode 2

By Norman Kelm, 2009/04/30

When creating a table with a column that will hold the name of a stored procedure that feeds an EXEC command, make sure the data type of this column is sysname. The data type of this column should not be VARCHAR(50) or some other arbitrary data type that should just do the job. This will also be true for columns that hold table and column names. Any column in a user table that holds meta data from a Sql Server system table should match the data type of the source system table column.



Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.