dbTalk Databases Forums  

Import Performance Monitor file (TSV)

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


Discuss Import Performance Monitor file (TSV) in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike P.
 
Posts: n/a

Default Import Performance Monitor file (TSV) - 06-30-2004 , 05:30 PM







I am trying to import the performance monitor file (TSV)
into a SQL Server table. The performance monitor file is
in the TSV format.

When I try to import the data into the table listed below
I received the following error:

The number of failing rows exceeds the maximum specified
transform Date Time String 'DTS Transformation'
Destination 'Sample_Time': Cannot parse input data string
beginning at ""

Text File -> Microsoft OLE db provider for SQL Server

I'm using the Transform Data Task Properties in the
Transformation on the Sample_Time field. Next I select
create new 'Date Time String' then select properties with
this format MM/dd/yyyy hh:mm:ss.ffff tt

Please help me resolve this error.

Thanks,

Mike P.


Table Performance_Data
Column_Name Format
Sample_Time datetime
Page_Sec float
Full_Scan_Sec float

Performnace Monitor Data
06/29/2004 06:54:29.447" "135.66667198681353"
"6.8405065141770187"
"06/29/2004 06:55:29.460" "0.033326330515118213"
"2.1828746487402428"

Reply With Quote
  #2  
Old   
rmathuln@pacbell.net
 
Posts: n/a

Default DTSrun with variable - 06-30-2004 , 09:33 PM






DECLARE @@DtsRunText varchar(64)

SET @@DtsRunText = ‘EXEC xp_cmdshell ‘'dtsrun /Ssomesql /Usa /Ppass /NTEST /A' + MyVar + ‘'''

EXEC(@@DtsRunText)

If MyVar is character, you'll have to add additional quotes before and after the insertion of the variable into the @@DtsRunText string.




nntp://news.sf.sbcglobal.net/microsoft.public.sqlserver.dts/<#xyQHxtXEHA.3552 (AT) TK2MSFTNGP12 (DOT) phx.gbl>

Hi All,

I finally got the DTS run to work with my new package thanks to Allan
Mitchell.... Now my question is this:

How do I pass the Dtsrun command line a variable?

EXEC xp_cmdshell 'dtsrun /Ssomesql /Usa /Ppass /NTEST /AMyVar:8=Mydata'

The above line works great as long as I hard code the value of MyVar.... my
challenge now is to put this in a stored proc and pass in the value of
MyVar.

So basically I need to deal with

CREATE PROCEDURE spGetParcelTrans
@TransNo int
AS
EXEC xp_cmdshell 'dtsrun /Ssomesql /Usa /Ppass /NTEST /AMyVar:8='

So how do I deal with MyVar & @TransNo ????

TIA

D. Johnson





[microsoft.public.sqlserver.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.