Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i send sp results to a text file

Status
Not open for further replies.

korel038

Technical User
Sep 28, 2003
6
GR
let's say that i am using query analyzer in a database called alfaoik...and i am running the sp_server info or the sp_helpfile on the mdf or the ldf file....
i want automatically using a command after running the sp and viewing the results to send them in a text file in c:\.....text1 for example...is that possible?
thanks in advance..
jstr
 
You can output the results via query analyzer into a text file. To do this click Query in the toolbar and selecting Results to file. Alternatively, use key combination CTRL+SHIFT+F.

Missy Ed - Project Manger - Bolton, UK
 
let's say that i have a database and i am using an update for it for my customers once a week...and i want at the end of it to see if there where any problems encountered....i want these answers sent to a text file by using a function or some sort to do that...
 
'**********************************************************************
' Visual Basic Transformation Script
' Copy each source column to the
' destination column
'************************************************************************

Function Main()
DTSDestination("DhmIstApofMerMelID") = DTSSource("DhmIstApofMerMelID")
DTSDestination("DhmIstApofID") = DTSSource("DhmIstApofID")
DTSDestination("DhmIstApofMerMelMerida") = DTSSource("DhmIstApofMerMelMerida")
DTSDestination("DhmIstApofMerMelMelos") = DTSSource("DimMainID")
DTSDestination("DimStatus") = DTSSource("DhmIstApofMerMelMelos")
DTSDestination("DimEponymo") = DTSSource("DimStatus")
DTSDestination("DimOnoma") = DTSSource("DimEponymo")
DTSDestination("DimOnomaFather") = DTSSource("DimOnoma")
DTSDestination("DimOnomaMother") = DTSSource("DimOnomaFather")
DTSDestination("DimMainID") = DTSSource("DimOnomaMother")
DTSDestination("DiagrafDescr") = DTSSource("DiagrafDescr")
DTSDestination("ToposBorn") = DTSSource("DimDateDiagraf")
DTSDestination("etosborn") = DTSSource("DimDateSymban")
DTSDestination("DimEponFather") = DTSSource("ToposBorn")
DTSDestination("DimGenosMother") = DTSSource("DateBorn")
DTSDestination("DimSxeshID") = DTSSource("etosborn")
DTSDestination("KtIthag") = DTSSource("DimEponFather")
DTSDestination("Ithag") = DTSSource("DimGenosMother")
DTSDestination("DimKtIdiotDim") = DTSSource("DimSxeshID")
DTSDestination("DimEtosMar") = DTSSource("KtIthag")
DTSDestination("DimOtaMar") = DTSSource("Ithag")
DTSDestination("DimBathGamMale") = DTSSource("DimKtIdiotDim")
DTSDestination("DimBathGamFemale") = DTSSource("DimArMar")
DTSDestination("DimDateDilGam") = DTSSource("DimEtosMar")
DTSDestination("DimPraxiGam") = DTSSource("DimOtaMar")
DTSDestination("DimDateGamPolit") = DTSSource("DimBathGamMale")
DTSDestination("DimToposGamPolit") = DTSSource("DimBathGamFemale")
DTSDestination("DimDateGamThrisk") = DTSSource("DimDateDilGam")
DTSDestination("DimToposGamThrisk") = DTSSource("DimPraxiGam")
DTSDestination("DimDateGamPolitEtos") = DTSSource("DimDateGamPolit")
DTSDestination("DimDateGamThriskEtos") = DTSSource("DimToposGamPolit")
DTSDestination("DimOtaLixBorn") = DTSSource("DimDateGamThrisk")
DTSDestination("eMerida") = DTSSource("DimToposGamThrisk")
DTSDestination("DimDateDiagraf") = DTSSource("DimDateGamPolitEtos")
DTSDestination("DimDateSymban") = DTSSource("DimDateGamThriskEtos")
DTSDestination("DateBorn") = DTSSource("DimOtaLixBorn")
DTSDestination("DimArMar") = DTSSource("eMerida")
DTSDestination("DimBibliarioNo") = DTSSource("DimBibliarioNo")
Main = DTSTransformStat_OK
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top