USE mydb
GO
alter proc procUtils_DeleteProcsExtProps
as
begin
--use poc
--go
DECLARE @procName varchar(100)
DECLARE @cursorProcNames CURSOR
SET @cursorProcNames = CURSOR FOR
select s.name from sysobjects s where type = 'P' AND S.NAME NOT LIKE '%sp_alterdiagram' and s.name not like '%sp_alterdiagram' and s.name not like '%sp_renamediagram' and s.name not like '%sp_dropdiagram' and s.name not like '%sp_helpdiagrams' and s.name
not like '%sp_creatediagram' and s.name not like '%sp_upgraddiagrams' and s.name not like '%sp_helpdiagramdefinition%'
OPEN @cursorProcNames
FETCH NEXT
FROM @cursorProcNames INTO @procName
WHILE @@FETCH_STATUS = 0
BEGIN
set nocount off;
-- exec sp_HelpText @procName --- or print them
-- print @procName
print 'EXEC sys.sp_dropextendedproperty @name=N''Col0NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col1NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col2NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col3NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col4NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col5NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col6NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col7NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col8NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col9NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col10NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col11NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col12NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col13NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col14NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col15NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col16NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col17NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col18NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col19NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
print 'EXEC sys.sp_dropextendedproperty @name=N''Col20NumberFormat'', @level0type=N''SCHEMA'',@level0name=N''dbo'', @level1type=N''PROCEDURE'',@level1name=N''' + @procName + ''''
FETCH NEXT
FROM @cursorProcNames INTO @procName
END
CLOSE @cursorProcNames
end
/*
USAGE:
EXEC procUtils_DeleteProcsExtProps
GO
*/
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!