SQL_CLR procedure triggering for no reason

  • Hi There,

    i have an SQL_CLR Stroed Proc , which has partof my business logic , registers to a socket server .

    for some reason this is called to triggered to many times .

    when i see "netstat -b" , i could see many socket connections all by SQLserver.exe process .

    is there any trigger point inside sqlserver which will responsible for this . i think this is defintly not by my code.

    any suggestions/comments ?

    Thanks

    Deepak

  • A stored procedure only executes when called by your code. What do you mean by registers a socket server and why are you doing this from a SQLCLR stored procedure? This isn't a supported operation, and the socket server is going to be created for each invocation of the stored procedure, so it isn't surprising that you would be leaking sockets as shown by netstat.

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

  • hi Jonathan ,

    Thanks for the reply, the bug was acutally on the application , sorry for wasting your time.

    Regards

    Deepak

  • No problem.

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply