Solved

Query to default sql2008 trace file  failed

Posted on 2013-05-28
9
273 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 500 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

729 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