PDA

Click to See Complete Forum and Search --> : Stored proc's + Recordsets = Files??


Gaurav
Oct 10th, 2000, 03:40 AM
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

Dr_Evil
Oct 10th, 2000, 09:43 AM
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.

Gaurav
Oct 11th, 2000, 03:23 AM
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