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. Database & SysAdmin
  3. Database
  4. How to Call A web service inside SQL server

How to Call A web service inside SQL server

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelptutorial
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.
  • Y Offline
    Y Offline
    yousefshokati
    wrote on last edited by
    #1

    Hello . I have a web service which takes some parameters and inserts them in another database . I have my own database that has a table (Table_B) .Now I want to call my web service when a new record inserts to (Table_B) I know that i should use a trigger . All I want to do is calling a web service inside of my trigger . I don't know how to call it. Would you please help me Thanks . bye

    D S 2 Replies Last reply
    0
    • Y yousefshokati

      Hello . I have a web service which takes some parameters and inserts them in another database . I have my own database that has a table (Table_B) .Now I want to call my web service when a new record inserts to (Table_B) I know that i should use a trigger . All I want to do is calling a web service inside of my trigger . I don't know how to call it. Would you please help me Thanks . bye

      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #2

      If I was you I would start here: www.google.com[^] Type sql server call web service from trigger and press Enter. That gives over 2 million links, at least one of them must be useful. P.S. one of those links is to an article here on Code Project. In the article it actually says:

      The truth is it's not good to access a web service trought a trigger, due to performance concerns.

      I'm sure you can make your own mind up as to whether that is true or not.

      Y 1 Reply Last reply
      0
      • D David Skelly

        If I was you I would start here: www.google.com[^] Type sql server call web service from trigger and press Enter. That gives over 2 million links, at least one of them must be useful. P.S. one of those links is to an article here on Code Project. In the article it actually says:

        The truth is it's not good to access a web service trought a trigger, due to performance concerns.

        I'm sure you can make your own mind up as to whether that is true or not.

        Y Offline
        Y Offline
        yousefshokati
        wrote on last edited by
        #3

        Hi Thanks for your Guidance. I know all of them but thanks

        1 Reply Last reply
        0
        • Y yousefshokati

          Hello . I have a web service which takes some parameters and inserts them in another database . I have my own database that has a table (Table_B) .Now I want to call my web service when a new record inserts to (Table_B) I know that i should use a trigger . All I want to do is calling a web service inside of my trigger . I don't know how to call it. Would you please help me Thanks . bye

          S Offline
          S Offline
          SilimSayo
          wrote on last edited by
          #4

          If I may ask, what inserts records in table_B; is it a stored procedure? If so, I would use the same stored procedure to call the web service immediately after it inserts data. I don't know if ordinary stored procedures can call web services so I would suggest an extended stored procedure i.e. a CLR dll. I haven't done anthing like it; so I am really just guessing.

          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