How do I hide my javascript/jquery scripts from html page  (from view source on right click)? please give suggestion to achive this .

Thanks.


Question: Elegant way of sending e-mails with Service Broker
Answer: 
  is there a way I can send messages directly to the Database Mail queue using Service Broker


When you invoke sp_send_dbmail that is exactly what is happening.


  I want to setup an EVENT NOTIFICATION for SQL Server, and I'd like to
  send e-mails to operators for each message on the queue


Then do just that. Create an activated stored procedure on the queue of your service that receives the notifications and have it RECEIVE the message and invokes sp_send_dbmail. 

I think you are trying to 'cut out the middleman' and have the EVENT NOTIFICATION send the notification directly to the DB Mail queue. That is not possible because the code that handles the messages arriving in the DB Mail queue expects the messages to have a certain format (ie. the one created by sp_send_dbmail). The messages sent by Event Notifications would have a completely different format and the DB Mail processor would choke as it does not understand them. In order to prevent exactly such situation Service Broker services are bound to specific contracts and DB Mail service does not accept the http://schemas.microsoft.com/SQL/Notifications/PostEventNotification contract used by Event Notifications.