|
-
Dec 2nd, 2002, 11:54 AM
#1
Thread Starter
Hyperactive Member
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
-
Dec 3rd, 2002, 11:14 AM
#2
Frenzied Member
It's a bit messy - you need to use bcp & xp_cmdshell
Take a look here:
http://www.sqlmag.com/forums/message...&threadid=8780
-
Dec 3rd, 2002, 11:19 AM
#3
Thread Starter
Hyperactive Member
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
-
Dec 4th, 2002, 04:04 AM
#4
Frenzied Member
You could probably also use DTS which would be a little more elegant.
-
Dec 9th, 2002, 08:10 AM
#5
Thread Starter
Hyperactive Member
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
-
Dec 9th, 2002, 08:18 AM
#6
Frenzied Member
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.
-
Dec 9th, 2002, 08:24 AM
#7
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|