SQL connection on a web service

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default SQL connection on a web service

    I'm building my first webservice and I've some doubt about the life's
    cycle.
    Teorically a webservice is consumed and dead just after it has released
    the information for which it has been built.

    So, because I've to use the webservice like a bridge to store sql info
    on a SQL Server table, how can I make sql connection persistent?
    Just to avoid sql connection create and destroy process every time.

    Thanks
    Andrea

    Andrea Guest

  2. Similar Questions and Discussions

    1. data connection wizard and web service
      Hi all, i created a web service written in java that returns an array. public String javaArray = { "array 1", "array 2" , "array 3" }; ...
    2. Service pack 2 fix when connection tto sql-database
      I have updated with the extension pack to make a successfull connection in asp.net. Now I get the error message HTTP Error Code 405 Method Not...
    3. SQL Server Connection Lost after Win XP Service Pack 2
      Hi, I have had SQL Server connection problem since I installed Win XP Service Pack 2. I am running both ASP and ColdFusion pages along with SQL...
    4. Problem connection to ssl protected web service in .net
      Hello, I have a problem calling a SSL secured WebService (written in C#, .Net Framework 1.1 SP1 running on IIS 5 on Windows Advanced Server...
    5. service connection manager
      After setting up and logging on to a user account, I get a message that "SCMan" (service connection manager) is not running or access is denied. I...
  3. #2

    Default Re: SQL connection on a web service

    Hi Andrea.
    if you need a persistent connection, how about a replication scenario
    instead of Web svc?
    On the other side, Web svc consuming is tipically disconnected, while svc
    itself could be or not.

    "Andrea" <andrea.moro@web-ma.com> ha scritto nel messaggio
    news:1121518394.787992.222360@g47g2000cwa.googlegr oups.com...
    > I'm building my first webservice and I've some doubt about the life's
    > cycle.
    > Teorically a webservice is consumed and dead just after it has released
    > the information for which it has been built.
    >
    > So, because I've to use the webservice like a bridge to store sql info
    > on a SQL Server table, how can I make sql connection persistent?
    > Just to avoid sql connection create and destroy process every time.
    >
    > Thanks
    > Andrea
    >

    Saverio Tedeschi Guest

  4. #3

    Default Re: SQL connection on a web service

    ..NET keeps a pool of SQL connections 'alive', this way SQL connections are
    re-used and not recreated every time you do a 'cn.open'. for SQL connections
    to be 'pooled' they'd have to have to exact same ConnectString.

    HTH,
    Jurjen.

    "Andrea" <andrea.moro@web-ma.com> wrote in message
    news:1121518394.787992.222360@g47g2000cwa.googlegr oups.com...
    > I'm building my first webservice and I've some doubt about the life's
    > cycle.
    > Teorically a webservice is consumed and dead just after it has released
    > the information for which it has been built.
    >
    > So, because I've to use the webservice like a bridge to store sql info
    > on a SQL Server table, how can I make sql connection persistent?
    > Just to avoid sql connection create and destroy process every time.
    >
    > Thanks
    > Andrea
    >

    Jurjen de Groot Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139