Waiting on Stored Procedures

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

  1. #1

    Default Waiting on Stored Procedures

    We are creating an ASP.NET application where I would like to call a
    SQL Server 2000 stored procedure and have the application wait until
    the procedure is done to proceed. The stored procedure is performing
    an INSERT statement and isn't returning a recordset. I'm looking for
    any suggestions on how this could be done.

    Thanks
    Matt Guest

  2. Similar Questions and Discussions

    1. Stored Procedures
      Hi all, I'm a little confused about how to obtain a result set from a stored procedure (stored in a Visual FoxPro 8.0 database) from an ASP.NET...
    2. Using Web Services for Stored Procedures?
      Doug, Try creating a cfcomponent that has multiple cfproperty tags in it with the data you want to return. Then defined that CFC component as...
    3. dt_ Stored Procedures
      Please could you tell me if it is safe to remove the dt_ stored procedures from my database? I have spent some time searching the web/groups for...
    4. New to ASP and Stored Procedures
      Hi I have some experince with ASP and databases in General, however Stored Procedures are new. I need to call a stored procedure and have bene...
    5. Stored Procedures and 4GL
      Hello, I am using Informix 7 se database. Is it possible to call a 4GL program from a stored procedure? Thanks Ahmer
  3. #2

    Default Waiting on Stored Procedures

    Hi

    You can use the ExecuteNonQuery which Executes a Transact-
    SQL statement against the connection and returns the
    number of rows affected

    For UPDATE, INSERT, and DELETE statements, the return
    value is the number of rows affected by the command. For
    all other types of statements, the return value is -1. If
    a rollback occurs, the return value is also -1.



    HTH
    Ravikanth

    >-----Original Message-----
    >We are creating an ASP.NET application where I would
    like to call a
    >SQL Server 2000 stored procedure and have the
    application wait until
    >the procedure is done to proceed. The stored procedure
    is performing
    >an INSERT statement and isn't returning a recordset.
    I'm looking for
    >any suggestions on how this could be done.
    >
    >Thanks
    >.
    >
    Ravikanth[MVP] Guest

  4. #3

    Default Waiting on Stored Procedures

    Use the ExecuteNonQuery method on the Command.
    >-----Original Message-----
    >We are creating an ASP.NET application where I would
    like to call a
    >SQL Server 2000 stored procedure and have the
    application wait until
    >the procedure is done to proceed. The stored procedure
    is performing
    >an INSERT statement and isn't returning a recordset.
    I'm looking for
    >any suggestions on how this could be done.
    >
    >Thanks
    >.
    >
    Gary Varga 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