Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 1.29 KB | None | 0 0
  1. DECLARE @Phrases varchar(5000), @Result varchar(5000), @Weather varchar(5000), @Currency varchar(5000)
  2.  
  3. SET @Weather = ''+
  4.                                 '<options>'+
  5.                                     '<defaults type="command" command="RETURN" priority="0" timeout="3" sms="false" id_order="0"></defaults>'+
  6.                                         '<play>'+
  7.                                             dbo.WGetWeather( getdate() ) +
  8.                                         '</play>'+
  9.                                 '</options>'
  10.  
  11. SET @Currency = '' +
  12.                                 '<options>'+
  13.                                     '<defaults type="command" command="RETURN" priority="0" timeout="3" sms="false" id_order="0"></defaults>'+
  14.                                         '<play>'+
  15.                                             dbo.WGetCurrency( getdate() ) +
  16.                                         '</play>'+
  17.                                 '</options>'
  18.  
  19. SET @Result = ''+
  20.       '<content>'+
  21.         '<options>'+
  22.           '<defaults type="command" command="QUIT" priority="0" timeout="7" sms="false" id_order="0" line="NULL"></defaults>'+
  23.           '<play>'+
  24.             '<phrase name="custom">weather/welcome.wav</phrase>'+
  25.             '<phrase name="common">weather/menu.wav</phrase>'+
  26.           '</play>'+
  27.                     '<buttons>'+
  28.                
  29.                         '<button name="1" type="submenu">'+
  30.                                 @Weather+
  31.             '</button>'+
  32.            
  33.             '<button name="2" type="submenu">'+
  34.                                 @Currency+
  35.             '</button>'+
  36.          
  37.                     '</buttons>'+
  38.         '</options>'+
  39.       '</content>'
  40.  
  41. SELECT @Result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement