CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Location
    Coimbatore, TamilNadu, India
    Posts
    60

    Stored Procedure - Record Set

    I m using (3rd party control) Grid for which i have assigned the Recordset. Maximum 30 to 35 rows will come. While Inserting into the Database, i m sending data row by Row using the Loop (Used Stored procedure).

    For each Row, i reach Server and Insert. I know that, this is not a Effective way.
    Can I send the Grid's Recordset as a Parameter to the Stored Procedure to avoid Looping between Server and Client. Or Is there any better Ideas for this Problem ?

    Thx ...


    Suresh

  2. #2
    Join Date
    Aug 2004
    Location
    Coimbatore, TamilNadu, India
    Posts
    60

    Re: Stored Procedure - Record Set

    Pls Any one Help me for this problem ....


    I welcome ur Comments on my posting

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

    Re: Stored Procedure - Record Set

    AFAIK that isn't possible. SQL Server does know a datatype table, which can be used to pass in memory tables from 1 proc to another, but there's no way you can pass them from VB to SQL Server in 1 piece. I guess you will have to stick to your looping solution.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  4. #4
    Join Date
    Aug 2004
    Location
    Coimbatore, TamilNadu, India
    Posts
    60

    Re: Stored Procedure - Record Set

    Thx Cakkie

    That relieved lot of my pain


    Suresh

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