CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: SQL Server

  1. #1
    Join Date
    Sep 2000
    Posts
    58

    SQL Server

    Hi,

    Does anyone know how to create a stored procedure in sql server that accepts a recordset as input and then saves the recordset to a table (similar to the way that vb handles batch processing).

    Thanks,
    Patrick Nolan


  2. #2
    Join Date
    May 2001
    Location
    India, Bangalore
    Posts
    14

    Re: SQL Server

    Hi Nolan,
    According to my knowledge you cannot do that (mean we cannot pass a Recordset object itself as a parameter to StoredProcedure). Because in SQL there is no datatype like Recordset or equivalent to that.

    bpp


  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: SQL Server

    SQL server 2000 has a data type table, but this can't be passed from vb (or I haven't seen anyone do this). At SQL level, you can pass back and forth a table, but in VB you will need to write a routine to get the recordset in a table on the server.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured