We have a page where we're using SQL Query, in short i have hundreds of queries on the page. :D, it works fine tho slow but thats to be assumed.
However all the SQL Query macros that has been added has been added with output as HTML, however we need it to be added as WIKI and I guess the easiest way for this is to run a SQL Replace, unless someone else has any idea?
This is the query, ofcourse DB backup is done before run, Im thinking its not working because the double quotes... Any thoughts or ideas?
update Confluence.dbo.BODYCONTENT set Confluence.dbo.BODYCONTENT.BODY=CAST(REPLACE(cast(Confluence.dbo.BODYCONTENT.BODY as nvarchar(max)),'<ac:parameter ac:name=""heading"">','<ac:parameter ac:name=""output"">wiki</ac:parameter><ac:parameter ac:name=""heading"">') as NText) where Confluence.dbo.BODYCONTENT.CONTENTID = '169214496'
Regards,
-Kent Inge.
Updating the BodyContent will definitely take time and is not the advisable method to update the format. The best solution will be to update the macro from the Confluence page itself, if there are not too many pages.
Thanks,
Amith Mathur
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.