Viewing 15 posts - 4,906 through 4,920 (of 5,394 total)
I'm just guessing, maybe you wanto to do this instead:
SELECT Top(1) @Grp_TTCount = COUNT(DISTINCT TID) AS TTCount
FROM table1.dbo.db1
WHERE (CONVERT(nvarchar, DATEADD(s, CREATE_DATE, CONVERT(DATETIME, '1970-01-01 00:00:00', 102)), 101) = @Report_Date)
AND CR_GP...
August 14, 2009 at 7:56 am
SET @Grp_TTCount =
(
SELECT Top(10) CR_GP, COUNT(DISTINCT TID) AS TTCount
FROM table1.dbo.db1
WHERE (CONVERT(nvarchar, DATEADD(s, CREATE_DATE, CONVERT(DATETIME, '1970-01-01 00:00:00', 102)), 101) = @Report_Date)
GROUP BY CR_GP
ORDER BY COUNT(DISTINCT TID) DESC
)
This code seems to try...
August 14, 2009 at 7:53 am
... oops! I found it: https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=296760
I think I will vote for it.
August 14, 2009 at 7:47 am
I'm still waiting for a FINALLY block to be implemented in some future version.
I think it would be really useful and I wonder why Microsoft decided not to implement it.
Maybe...
August 14, 2009 at 7:44 am
I think TRY/CATCH was one of the biggest enhancements introduced in T-SQL with SQL2K5.
I wonder how on earth I could live without it.
August 14, 2009 at 7:29 am
From BOL:
Errors Unaffected by a TRY…CATCH Construct
TRY…CATCH constructs do not trap the following conditions:
* Warnings or informational messages that have a severity of 10 or lower.
* Errors that have a...
August 14, 2009 at 7:27 am
You could simply schedule each job to start a the same time. You could also set up a "runner" job to start all the other jobs with msdb.dbo.sp_start_job.
For what parallelism...
August 14, 2009 at 7:19 am
Of course you can!
Try/Catch was introduced to allow the developer to handle errors in code. One legitimate way to handle an error is to simply ignore it.
Be careful that a...
August 14, 2009 at 6:53 am
GilaMonster (8/13/2009)
sivark1 (8/12/2009)
pls tell how to c the o/p of the profilerWhat?
Maybe this was typed with a cell-phone keyboard. Looks like an SMS...
August 13, 2009 at 8:37 am
jacroberts (8/13/2009)
That way the site could host a set of excellent, up to date,...
August 13, 2009 at 7:43 am
steve_melchert (8/12/2009)
August 12, 2009 at 11:06 am
I'm not a big fan of Heinlein, but I read Lazarus Long and I liked it very much.
Edited: The original title is Time Enough For Love, which was published in...
August 12, 2009 at 6:06 am
The log backup contains both log entries and data pages modified by bulk operations.
Always from BOL:
Under the bulk-logged recovery model, if a log backup covers any bulk operations, the log...
August 12, 2009 at 5:59 am
When you turn back to FULL recovery and take a log backup, you can restore to any point in time subsequent to reverting to FULL recovery.
But this is not the...
August 12, 2009 at 4:08 am
Shyamala Shankar Raman (8/12/2009)
Instead u can use while loop.. which will solve the problem
Sure it will, you would only have to wait longer.
While loops are no better than cursors on...
August 12, 2009 at 2:30 am
Viewing 15 posts - 4,906 through 4,920 (of 5,394 total)