Tag wikis with http links

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

--DECLARE @TagLinkTable TABLE (TagName nvarchar(35), Link nvarchar(max));

--DECLARE @index int;
--SET @index = 0;

--WHILE (SELECT PATINDEX('%http:%', expression) FROM Tags) > 0
--BEGIN
    --
--END

--SELECT t.tagname AS [TagName]
--FROM Tags t
--LEFT JOIN Posts w ON t.WikiPostId = w.Id
--WHERE w.Body LIKE '%http:%'



DECLARE @TagName as nvarchar(35)

DECLARE Tag_Cursor CURSOR FOR  
SELECT TagName   
FROM Tags  
WHERE WikiPostId != NULL
OPEN Tag_Cursor;  
FETCH NEXT FROM Tag_Cursor;  
FETCH NEXT FROM Tag_Cursor INTO @TagName;  
WHILE @@FETCH_STATUS = 0  
   BEGIN  
      Print ' Test  ' + @TagName
      FETCH NEXT FROM Tag_Cursor;  
   END;  
CLOSE Tag_Cursor;  
DEALLOCATE Tag_Cursor;  
GO

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results