Re: Execute Stored Procedure Error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Virginia Kirkendall (vkirkendall_at_hotmail.com)
Date: 06/01/04

  • Next message: Dave: "Can't access wins.mdb w ADO"
    Date: 1 Jun 2004 13:09:05 -0700
    
    

    "Val Mazur" <group51a@hotmail.com> wrote in message news:<e5MrPaSREHA.2216@TK2MSFTNGP12.phx.gbl>...
    > Hi Virginia,
    >
    > I probably did not understand problem correctly. I understood that you need
    > to past just a some sort of a LIKE condition. Since you need to pass complex
    > condition, the I do not see good reason to use SP here. From one point SP
    > looks better, but you will not gain anything and will add a security issues
    > into your application. Since your query inside of SP is built dynamically,
    > your query inside of SP will be re-compiled each time when you run this SP.
    > No performance advantage in this case. But building SQL statement
    > dynamically inside of the application, would allow you to control what your
    > application injects into this SQL statement. Of course, if you are not
    > concerned about security, then you could leave statement inside of SP.
    >

    Yes...I have been finding that you are correct w/regards to dynamic
    SQL inside an SP. I've been building the criteria strings & setting
    up ADO recordsets with better results. Thanks for your response to my
    issue.


  • Next message: Dave: "Can't access wins.mdb w ADO"

    Relevant Pages

    • Re: Error using " in .open with ADODB.Recordset
      ... recordset but I'm getting hung up on the SQL statement. ... query that has a string as a condition. ... Dim mrk As String ...
      (microsoft.public.data.ado)
    • Re: expiration
      ... First what type of field are you applying the criteria against? ... You can try the following in a query. ... If you are trying to get just records with the License has expired within ... it is the actual SQL statement that is executed. ...
      (microsoft.public.access.queries)
    • Re: Same date range in main and sub form
      ... You need to concatenate together the parts to make up the SQL string ... it will look like the SQL statement you original ... Allen Browne - Microsoft MVP. ... well as the name of the query on which the form is based. ...
      (microsoft.public.access.forms)
    • Re: expiration
      ... If you are trying to get just records with the License has expired within ... In the Design view of the query ... This query is based off the existing employee database created by someone ... it is the actual SQL statement that is executed. ...
      (microsoft.public.access.queries)
    • Re: Scroll through records and get match
      ... Doug Steele, Microsoft Access MVP ... "User-defined type not defined" at Dim dbs As DAO.Database. ... that I posted is a select query. ... cannot use it to open an SQL statement that you generate via code. ...
      (microsoft.public.access.modulesdaovba)