?
Solved

Query to default sql2008 trace file  failed

Posted on 2013-05-28
9
Medium Priority
?
275 Views
Last Modified: 2013-10-10
My query to defualt trace file failed due to some space issues, question here is how do I query using a function below, the issues now with folder "Microsoft SQL Server" where have space in between wordings


SELECT * INTO #temp_trc FROM
::fn_trace_gettable('E:\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\log_515.trc', default)
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 10

Expert Comment

by:Matt Bowler
ID: 39200536
What is the error that you get when you run this query?
0
 

Author Comment

by:motioneye
ID: 39200808
Hi,
Got following error messages:

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '#temp_trc
go
SELECT * INTO #temp_trc FROM
::fn_trace_gettable('.
Msg 105, Level 15, State 1, Line 4
Unclosed quotation mark after the character string ', default)
0
 
LVL 10

Accepted Solution

by:
Matt Bowler earned 1000 total points
ID: 39200831
What happens if you just run:

SELECT *  FROM
fn_trace_gettable('E:\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\log.trc', default)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39213289
There is no problem whatsoever using a path with a space in it.
0
 

Author Comment

by:motioneye
ID: 39243935
Hi,
I will check it again and get back to you guys if I have the same issues
0
 
LVL 10

Expert Comment

by:Matt Bowler
ID: 39316190
Has this been resolved?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39316249
The author has been MIA for over a month and has 5 abandoned questions, so I would not hold your breath.
0
 

Author Comment

by:motioneye
ID: 39328089
Hi,
sorry I was very very busy for past few month, I will again run the query ..
0
 

Author Closing Comment

by:motioneye
ID: 39563170
I'm sorry I still have no times to test.. hopefully in another day soon...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question