Your opinion about stored procedures

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

  1. #1

    Default Re: Your opinion about stored procedures

    I agree with nic and patrice. I'd advise further that you use the Command
    object and avoid ALL SQL building in ASP. Not only is this often faster but
    more importantly it protects you to some extent from SQL injection.

    michael

    "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
    news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...
    > Starting a new ASP.NET web app. What is your opinion. Should I used
    stored
    > procedures for ALL the SQL statements in my app? Or should I use inline
    sql
    > (or another method) for simple SELECT queries, etc...
    >
    > Thanks,
    > Robert
    >
    >

    mono 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. Stored Procedures JDBC
      Hi I'm calling a Teradata stored procedure using JDBC. My code (which someone has helped me with as I'm not a java person) is below: <cfset...
    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 Re: Your opinion about stored procedures

    Stored procedure is my vote -
    Remember to use Parameters collection, and not just tacking your parameters
    behind an EXEC statement, otherwise you still have 100% of the injection
    problem.

    Also, Windows CE - Cannot really use storedprocedures, but I've been placing
    my local sql statements into XML files, and created a wrapper class to help
    aviod the injection problem, and to make updates much easier.

    "mono" <mikeg@n_o_s_p_a_mcimage.com> wrote in message
    news:ueSRPwjQDHA.3880@tk2msftngp13.phx.gbl...
    > I agree with nic and patrice. I'd advise further that you use the Command
    > object and avoid ALL SQL building in ASP. Not only is this often faster
    but
    > more importantly it protects you to some extent from SQL injection.
    >
    > michael
    >
    > "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
    > news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...
    > > Starting a new ASP.NET web app. What is your opinion. Should I used
    > stored
    > > procedures for ALL the SQL statements in my app? Or should I use inline
    > sql
    > > (or another method) for simple SELECT queries, etc...
    > >
    > > Thanks,
    > > Robert
    > >
    > >
    >
    >
    >

    David Waz... Guest

  4. #3

    Default Re: Your opinion about stored procedures

    Hi Robert,

    I agree with what Patrice and Nic wrote. Also, something to consider is the
    possiblity of adding a Win Forms client to your app in the future - for
    administration and/or users. Having your data access separated from
    everything else makes it much easier to do this. ;-)


    --
    Ray Dixon - Microsoft MVP
    [email]ray@NOSPAM.greeble.com[/email]
    (remove NOSPAM. from my e-mail address for a direct reply)




    "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
    news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...
    > Starting a new ASP.NET web app. What is your opinion. Should I used
    stored
    > procedures for ALL the SQL statements in my app? Or should I use inline
    sql
    > (or another method) for simple SELECT queries, etc...
    >
    > Thanks,
    > Robert
    >
    >

    Ray Dixon [MVP] Guest

  5. #4

    Default Re: Your opinion about stored procedures

    Hi Robert!
    I would strongly recommend to have a look at the Data Access Block
    from Microsoft. The SQl helper class provides easy access to stored
    procedures and allows you to call them without having to bother with
    parameters.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp[/url]

    We used the SQLHelper and extended it, so that it also handles Typed
    Datasets etc.

    We use only StoredProcedures. With this we try to encapsulate the
    database and have a cleaner DataAccessLayer. Our DBA is reviewing the
    StoredProcs without having to dig into the .Net programm code.

    Hope this helps
    Peter
    Peter Gossmann 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