|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can not create trace fileI am trying to create AS trace file programatically. I am using following code: TraceServer reader = new TraceServer(); TraceFile writer = new TraceFile(); OlapConnectionInfo olapConn = new OlapConnectionInfo(); olapConn.ServerName = "ABC"; olapConn.DatabaseName = "XYZ"; olapConn.UseIntegratedSecurity = true; reader.InitializeAsReader(olapConn, "C:\\MDX.tdf"); writer.InitializeAsWriter(reader, "C:\\NewTrace.trc"); .... calling function which decides till when we need to capture trace writer.Close(); The result is that I get a blank trace file at "C:\NewTrace.trc". I have verified that reader has data. What am I doing wrong? Is there any otherway to write the trace data to a file? Thanks, Sourabh |
|||||||||||||||||||||||