Re: One recordset for every table. Is it good practice??



Hello,

Personally, I execute a select / Stored procedure directly on the table
(to receive a recordset with only the records I want).
For me, there is no reason to create a recordset if you don't need it,
and the Select ... where is the fastest way to receive datas from a
database. Also, when you have a problem with the records, you can use
the select (or stored procedure) directly in ISQL, with a recordset, it
is harder to do.


Marc Allard
Allcomp

Sergi wrote:
> HI people,
>
> I have a VB application with DAO and i am migrating it to ADO. In this
> application, first of all, I connect to database and I open a ado recordset
> for each table in database.
> If i need some information of table, i use this recordset. It is a good
> practice???
>
> Is better open a recordset with table only when I need it???
>
>
.



Relevant Pages

  • Re: using Command to set Parameters and Recordset to retrive the Query
    ... doesn't the rsData will be interpretate as an input parameter in the SP? ... >> Query and retrive the Recordset so I can use the Paging property ... > Even if this technique of using the parameters in the ORDER BY does work for> you, I suspect that this will defeat your objective of preventing sql> injection. ... See below for a more efficient solution> using a stored procedure. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Not Getting results from Stored procedure
    ... So, running a stored procedure from VB6 can be done fairly easily and while there are fewer whitepapers on how to best do so, I thought my website might still have a few but there are not that many left--the problem is, Microsoft is pulling old unsupported content from MSDN so a lot of those links are gone. ... In any event, when calling a stored procedure, you need to include phrase SET NOCOUNT ON, so that the 'records affected' message that occur from results of Stored proc processing aren't returned to the calling application. ... These messages appear to be returned to the calling application as a recordset. ... when calling a stored proc you need ignore the command object and use a syntactically correct string as the source parameter for the recordset's 'Open' method. ...
    (microsoft.public.vb.database)
  • Re: vbscript logon script getting return data from sql sp
    ... Loop ... > One way to retrieve values from a stored procedure is with a Recordset ...
    (microsoft.public.scripting.vbscript)
  • Re: Missing Resultset When Calling an Stored Procedure w/a Nested
    ... we tried advancing to the next recordset by using the NextRecordSet ... program only returned the nested stored procedure call resultset and failed ...
    (microsoft.public.data.ado)
  • Re: Ado Recordset and stored procedure(SQL server 2000)
    ... I want to fill a recordset using a stored procedure. ... inner join track on images.box = track.box where releasetime between ...
    (microsoft.public.vb.database.ado)