I looking to create a table that will store information about stored procedures. I need to store SP_Name
. My original plan was to use SP_Name NVARCHAR(128) NOT NULL
.
From procedure I will use OBJECT_NAME(@@PROCID)
function to get value for SP_Name
column.
This technet does not provide much information about the SYSNAME
datatype. What is SYSNAME data type in SQL Server? question only explains what it is but not how it works, additionally answer is almost 3 years old and Microsoft made many upgrades to SQL Server in 2012 and 2014 editions.
Will I again any benefits of storing SP_Name
in SYSNAME
over NVARCHAR(128)
column? Or should I avoid use of proprietary data types that might be dropped or changed in later version?