In the query analyzer, use shortcut keys to take a description of the field

xiaoxiao2021-03-06  43

Alter procedure sp_columnscript @tablename varchar (50), @columnname varchar (50) = nullas / **************************************************************** : 2003-04-09 Modifier: wu Remarks: Note for a table: ************************************* / DECLARE @tmpPos int if @columnname is null begin set @tmpPos = CHARINDEX (, @tablename '.') set @columnname = right (@tablename, len (@tablename) - @tmpPos) set @tablename = left (@tablename, @ TMPOS - 1) END

Select * from :: Fn_ListextendedProperty (NULL, 'User', 'DBO', 'Table', @tablename, 'Column', @Columnname) Add this stored procedure, add the corresponding shortcuts in the tool, custom, For example, in Ctrl 3 specify sp_columnscript and then select Table.Column in the Query Analyzer to select this text, press CTRL 3.

转载请注明原文地址:https://www.9cbs.com/read-75058.html

New Post(0)