Results 1 to 3 of 3

Thread: Stored proc's + Recordsets = Files??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    India
    Posts
    97

    Question

    Hi,
    I have just started on SQL 7, and was looking for a particular functionality in it that i know Oracle provides via pl-sql.

    Lets assume I have a Stored proc' that fires a query which in turn returns a single row recordset. Now i would like to persist this recordset to a file? It must be done within the SP, I realise this could easily be done using ADO clients. But can i do it completely in the backend via SQL7 itself?

    Any pointers in the right direction for this would be MOST helpful! Thank you.

    Regards,
    Gaurav
    [email protected]
    " Programming today is a race between software-engineers striving to build bigger and
    better idiot-proof programs and the universe trying to produce bigger and better idiots.
    So far the universe is winning".
    :-)

  2. #2
    Lively Member Dr_Evil's Avatar
    Join Date
    Mar 2000
    Location
    Columbus, OH
    Posts
    105
    If you wish to store a resultset in a user file you may want to look into using Data Transformation Services (DTS) or possibly the bulk copy method. It may take a little more effort but both of these can be executed from within a SP.
    Hope this has pointed you in the right direction.
    Dr_Evil
    Senior Programmer
    VS6 EE
    VS.NET EA

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    India
    Posts
    97
    Hiya,
    Well it does a little... but a lot of people tell me that via SQL7 one cannot write directly to a file.. is this true?? have u eer done or heard of this being done??? And i haven't worked in DTS so could u PLEASE send me some more details..?? I know i'm pushing my luck here but do help!!!

    Thanks
    Gaurav
    [email protected]
    " Programming today is a race between software-engineers striving to build bigger and
    better idiot-proof programs and the universe trying to produce bigger and better idiots.
    So far the universe is winning".
    :-)

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