dbTalk Databases Forums  

use result of a query

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss use result of a query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thierry
 
Posts: n/a

Default use result of a query - 01-13-2004 , 11:18 AM






Hi,

I'd like to use a result of dbcc checkDB of a server A in a DTS
package of a server B.
I want to store the result in a txt file.

How to create this package ?

(i'm beginner in DTS)

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: use result of a query - 01-13-2004 , 11:37 AM






If you execute this

dbcc checkdb('pubs') with tableresults

it returns the results in a table. You can then put these into a text file.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Thierry" <sch_th (AT) yahoo (DOT) fr> wrote

Quote:
Hi,

I'd like to use a result of dbcc checkDB of a server A in a DTS
package of a server B.
I want to store the result in a txt file.

How to create this package ?

(i'm beginner in DTS)



Reply With Quote
  #3  
Old   
Thierry
 
Posts: n/a

Default Re: use result of a query - 01-14-2004 , 02:34 AM



It's exactly what I need !!!
Where have you found "with tableresults" commands ??

I will need some other one later.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
If you execute this

dbcc checkdb('pubs') with tableresults

it returns the results in a table. You can then put these into a text file.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Thierry" <sch_th (AT) yahoo (DOT) fr> wrote in message
news:198173df.0401130918.ebe4c32 (AT) posting (DOT) google.com...
Hi,

I'd like to use a result of dbcc checkDB of a server A in a DTS
package of a server B.
I want to store the result in a txt file.

How to create this package ?

(i'm beginner in DTS)

Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: use result of a query - 01-14-2004 , 02:40 AM



In BOL,

It isn't specifically listed in the page

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\tsq
lref.chm::/ts_dbcc_00gy.htm

But if you look here

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\tsq
lref.chm::/ts_dbcc_217n.htm

it states that many of the DBCC commands support WITH TABLERESULTS


--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Thierry" <sch_th (AT) yahoo (DOT) fr> wrote

Quote:
It's exactly what I need !!!
Where have you found "with tableresults" commands ??

I will need some other one later.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

If you execute this

dbcc checkdb('pubs') with tableresults

it returns the results in a table. You can then put these into a text
file.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Thierry" <sch_th (AT) yahoo (DOT) fr> wrote in message
news:198173df.0401130918.ebe4c32 (AT) posting (DOT) google.com...
Hi,

I'd like to use a result of dbcc checkDB of a server A in a DTS
package of a server B.
I want to store the result in a txt file.

How to create this package ?

(i'm beginner in DTS)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.