Last active
August 29, 2015 14:09
-
-
Save sachatrauwaen/84f273909649cdd1bc1b to your computer and use it in GitHub Desktop.
Example SQL for SQL provider for OpenUrlRewriter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
e.EventName as url, | |
t.Tabid, | |
p.culturecode, | |
'ModuleID='+cast(e.moduleid as varchar(20))+'&ItemID=' + cast(e.eventid as varchar(20)) + '&mctl=EventDetails' as parameters, | |
m.PortalId | |
from events e | |
LEFT JOIN Modules M | |
ON e.moduleid = m.moduleid | |
LEFT JOIN TabModules T | |
ON T.moduleid = m.moduleid | |
LEFT JOIN ModuleDefinitions d | |
ON d.moduledefid = m.moduledefid | |
LEFT JOIN tabs p | |
ON p.tabid = t.tabid | |
where d.Friendlyname = 'Events' | |
and m.PortalId = @PortalId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment