Results 1 to 7 of 7

Thread: Spool Equivant in SQL Server 7 *Resolved

  1. #1

    Thread Starter
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Question Spool Equivant in SQL Server 7 *Resolved

    Is there such a command as Spool in Oracle for SQL Server? I would like to select items and save them to a text file.

    Thanks,
    JazzBass
    Last edited by JazzBass; Dec 9th, 2002 at 08:50 AM.
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

  2. #2
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    It's a bit messy - you need to use bcp & xp_cmdshell

    Take a look here:
    http://www.sqlmag.com/forums/message...&threadid=8780

  3. #3

    Thread Starter
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Thanks Pete

    Pete,

    Thanks. You're right; it is messy. Looks like it'll work.

    JazzBass
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

  4. #4
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    You could probably also use DTS which would be a little more elegant.

  5. #5

    Thread Starter
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Thanks for the idea

    Pete,

    Thanks for that. Do you have any idea how to implement this?

    Thanks,
    JazzBass
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

  6. #6
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    Unfortunately, I don't have SQL Server at work, and I can't really remember the steps...
    ...but you should be able to use one of the many wizards in SQL Server (Import/Export rings a bell) and save it as a DTS package. Then you can either reuse this package over and over, or have a poke around through the DTS UI to see how it works and how to customise it.

  7. #7

    Thread Starter
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Cool Thanks

    Thanks Pete. I'll see what I can find.

    Take care,
    JazzBass
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

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