Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. CLR Stored Procedure Exception

CLR Stored Procedure Exception

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasedotnetsecuritytools
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snouto
    wrote on last edited by
    #1

    i am writing a stored procedure for this purpose only . "i have a table of messages , i need the data base to notify my windows service that a scheduled message would be sent now , transfering at least the message id to the windows service" i tried to use .net Remoting for that purpose but i figured out that .net remoting namespace can't be included in such a solution . then i tried to use sockets to open ports through the data base to the windows service that exist on the same machine that will listen for incoming data from that clr stored Procedure . i successfully made that second choice but the problem with that , when i try to invoke the send method of udp client , it gives me an exception of socket exception tells me socket permission request had failed , how can i grant socket access to the CLR Stored Procedure knowing i tried to configure the code access security configuration manager in the administrative tools but in vain anyone knows how to solve that problem either that of sockets or give me a whole new solution to the above problem would be great thanks in advance

    Human knowledge belongs to the world.

    D 1 Reply Last reply
    0
    • S snouto

      i am writing a stored procedure for this purpose only . "i have a table of messages , i need the data base to notify my windows service that a scheduled message would be sent now , transfering at least the message id to the windows service" i tried to use .net Remoting for that purpose but i figured out that .net remoting namespace can't be included in such a solution . then i tried to use sockets to open ports through the data base to the windows service that exist on the same machine that will listen for incoming data from that clr stored Procedure . i successfully made that second choice but the problem with that , when i try to invoke the send method of udp client , it gives me an exception of socket exception tells me socket permission request had failed , how can i grant socket access to the CLR Stored Procedure knowing i tried to configure the code access security configuration manager in the administrative tools but in vain anyone knows how to solve that problem either that of sockets or give me a whole new solution to the above problem would be great thanks in advance

      Human knowledge belongs to the world.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I would probably forget the manually socket solution you came up with and look into SQL Server Notification Service.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        I would probably forget the manually socket solution you came up with and look into SQL Server Notification Service.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        A Offline
        A Offline
        alx n
        wrote on last edited by
        #3

        How about using MSMQ. Thus the db can send a message to the que using CLR integration in the SQL db, and the service can pick it up from there.

        alex_nel

        D 1 Reply Last reply
        0
        • A alx n

          How about using MSMQ. Thus the db can send a message to the que using CLR integration in the SQL db, and the service can pick it up from there.

          alex_nel

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Depending on what information he needs to convey to the clients, that's possible. Notification services can be more appropriate and has a lighter overhead than MSMQ.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups