begin --select column_name from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='Products' --Declare the Table variable DECLARE @GeneratedStoredProcedures TABLE ( Number INT IDENTITY(1,1), --Auto incrementing Identity column name VARCHAR(300) --The string value ) --Decalre a variable to remember the position of the current delimiter DECLARE @CurrentDelimiterPositionVar INT declare @sqlCode varchar(max) --Decalre a variable to remember the number of rows in the table DECLARE @Count INT --Populate the TABLE variable using some logic INSERT INTO @GeneratedStoredProcedures SELECT name FROM sys.procedures where name like 'procGen_%' --Initialize the looper variable SET @CurrentDelimiterPositionVar = 1 --Determine the number of rows in the Table SELECT @Count=max(Number) from @GeneratedStoredProcedures --A variable to hold the currently selected value from the table DECLARE @CurrentValue varchar(300); --Loop through until all row processing is done WHILE @CurrentDelimiterPositionVar <= @Count BEGIN --Load current value from the Table SELECT @CurrentValue = name FROM @GeneratedStoredProcedures WHERE Number = @CurrentDelimiterPositionVar --Process the current value --print @CurrentValue set @sqlCode = 'drop procedure ' + @CurrentValue print @sqlCode --exec (@sqlCode) --Increme nt loop counter SET @CurrentDelimiterPositionVar = @CurrentDelimiterPositionVar + 1; END end
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 !!!!