Viewing 15 posts - 5,551 through 5,565 (of 7,191 total)
Please will you post some sample data showing what you have in your source tables, and what you want your target text file to look like.
Thanks
John
January 19, 2011 at 9:16 am
In your original post, you appear to have two tables: "table1" and "table2". In your sample data, you only have one: "Table". If you could post some CREATE...
January 19, 2011 at 9:14 am
Warren
My view is that you should back up everything (within reason) and then it's there if you need it. Just because you can't think of a reason why a...
January 19, 2011 at 8:01 am
That looks very complicated. To convert milliseconds to seconds, just divide by 1000. To convert microseconds, divide by 1000000. I don't really understand why you need to...
January 19, 2011 at 2:49 am
Fox87 (1/19/2011)
am I missing something and should just ignore the NULL & 0 results?
I don't know whether you can ignore those results, since you haven't provided any sample data....
January 19, 2011 at 2:07 am
Unless I'm missing something here, there's no need to use a cursor. I think it's as simple as this:
SELECT * FROM TraceResultsLongRunningQueries
ORDER BY Duration DESC
John
January 18, 2011 at 6:56 am
Brian
Have you tried using an OnError event handler?
John
January 13, 2011 at 8:59 am
Yes, you can - although it's not necessarily the best way of going about it. For example, if you want to manipulate the results from a data flow, then...
January 12, 2011 at 8:55 am
Is there a question here?
John
January 6, 2011 at 8:32 am
If you look up the syntax of sp_send_dbmail, you'll learn how to do this.
John
January 6, 2011 at 5:21 am
You need to query the backupset, backupmediafamily and backupfile tables in msdb. The following query should work on all versions of SQL Server and return the most recent backup...
January 6, 2011 at 5:14 am
Arash
Should be possible... just include a @Domain parameter in your stored procedure definition and build that into the script that you already have - something like this snippet:
SET @sql =...
January 4, 2011 at 8:51 am
Mmmm... do you understand that you have to copy your query output, paste it back into the query window and run it in order for the logins and users to...
January 4, 2011 at 8:26 am
Vinay
What do you mean by the query stats? I would recommend that you monitor dm_db_index_usage_stats over a period of time. That way you'll find out how often the...
January 4, 2011 at 8:23 am
I'm afraid I don't know what you mean. Are you getting any error messages when you run the script?
Are you saying that you run the script, and then when...
January 4, 2011 at 8:14 am
Viewing 15 posts - 5,551 through 5,565 (of 7,191 total)