Viewing 15 posts - 781 through 795 (of 1,192 total)
There are a couple problems that seem to be copy/paste issues, and then a couple others.
First, the As Partition YearlyDateRange_pf All To ([Primary]) bit at the end of the CREATE...
November 23, 2015 at 10:41 am
Perhaps something like this?
CREATE TABLE Query_Test
(
CPU INT ,
ApplicationName VARCHAR(100) ,
...
November 20, 2015 at 3:49 pm
I feel like there must be more at work than what we've seen so far, because a quick test with your sample data returns 345.00 for just the first method...
November 20, 2015 at 11:08 am
Yes, it's necessary.
If you just do (HOUR(create_dtim)>=19 AND MINUTE(create_dtim)>=46), then that requires every returned row to have a minute greater than or equal to 46. Because of that, you...
November 19, 2015 at 3:34 pm
There are a couple ways to do this.
Let's say you're wanting only rows where the time portion is greater than or equal to 22:15 in the date range in your...
November 19, 2015 at 3:13 pm
The pound signs around the dates make me think Access is being used. Just a hunch...
November 19, 2015 at 2:39 pm
There are a couple problems.
The first is that spMSforeachdb takes the command as a parameter declared as nvarchar(2000). Your command is much longer than that, so it's getting truncated, resulting...
November 19, 2015 at 1:59 pm
Luis Cazares (11/19/2015)
USE [msdb]
GO
DECLARE @jobId BINARY(16);
EXEC dbo.sp_add_job @job_name=N'GetCurrentDate',
@enabled=1, @job_id = @jobId OUTPUT;
EXEC dbo.sp_add_jobserver
@job_name =...
November 19, 2015 at 11:38 am
Sean Lange (11/19/2015)
Jacob Wilkins (11/19/2015)
jasona.work (11/19/2015)
Luis Cazares (11/19/2015)
jasona.work (11/19/2015)
November 19, 2015 at 10:55 am
jasona.work (11/19/2015)
Luis Cazares (11/19/2015)
jasona.work (11/19/2015)
So I'm posting...
November 19, 2015 at 10:34 am
Yeah, to add to what g.britton said, some of the ideas with batching are:
1) Holding locks for a shorter duration
2) Better control over log growth; based on whether the DB...
November 12, 2015 at 4:47 pm
Hmmm...what exactly are you trying to do?
As written, the query will never terminate, because the command to increment @C is within the scope of the IF statement, so...
November 11, 2015 at 12:20 pm
Good to hear! Had I read the error completely (doh!) that would have been pretty clear from the get-go, due to its occurrence on line 0.
At any rate, I'm glad...
November 10, 2015 at 2:09 pm
Ah, in that case it's likely the statement calling the procedure. Are you putting single quotes around the date values you're passing as the two date parameters? If not, those...
November 10, 2015 at 2:00 pm
Most likely INVC_DT is stored as an integer, and the BETWEEN comparison is throwing that error. The explicit CAST of INVC_DT to a date type would also fail in that...
November 10, 2015 at 1:50 pm
Viewing 15 posts - 781 through 795 (of 1,192 total)