Solved

Query to default sql2008 trace file  failed

Posted on 2013-05-28
9
265 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
  • 4
  • 3
  • 2
9 Comments
 
LVL 9

Expert Comment

by:MattSQL
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 9

Accepted Solution

by:
MattSQL 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
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39213289
There is no problem whatsoever using a path with a space in it.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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 9

Expert Comment

by:MattSQL
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Analysis of table use 7 30
t-sql splitting name column 5 23
Data to display differently-SQL Server 4 19
Update in Sql 7 0
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how the fundamental information of how to create a table.
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now