Viewing 15 posts - 16 through 30 (of 197 total)
So, when using the export wizard, I need to select the OLE Db provider and not the Native SQLCLient.
December 26, 2008 at 1:34 pm
Yes, it was wrong for me to include that comment and I apologize.
I didn't think about the provider being the problem, I will take a look at it.
I am running...
December 26, 2008 at 12:46 pm
budbeth (12/26/2008)
The differences between the 2 that jump out at me are:1) The collect vs the Collect
case means nothing in this context...
budbeth (12/26/2008)
December 26, 2008 at 11:22 am
Thanks guys..
Note that this does not cover rows deleted out of the schedule table... but it never did.
I have another trigger for deleting the ptAppointment records when a ptSchedule record...
December 24, 2008 at 10:00 am
I didn't see where you deleted the old ptAppoinment record(s)
December 24, 2008 at 9:12 am
In an insert, the scheduleid is changing, in an update,it is not changing
ScheduleID is the primary key for ptSchedule.
ptAppointments primary key: PID + Date + Resource + Site
Here is ptSchedule->ptAppointments...
December 24, 2008 at 8:20 am
So, Seth, Jack, how would you rewrite this trigger? I am a rather newbie at them and this one was actually written by someone else that didn't understand them, either....
December 24, 2008 at 7:44 am
Yes, I copy/pasted the working code directly from Management Studio.
I would think that if it was trying to reference a SP that didn't exist, the
error would not have been that...
December 22, 2008 at 1:04 pm
No one knows anything about this?
December 22, 2008 at 11:00 am
Steve Jones - Editor (12/16/2008)
A CTE behaves as a table. If you have 2, you've defined two tables to use in a query....
December 16, 2008 at 2:32 pm
Forgot TOP 1
This works...
;WITH PracticeSettings (Category, [Name], [Value])
AS (SELECT Category, [Name], [Value]
FROM coPracticeSettings
WHERE Category =...
December 16, 2008 at 2:31 pm
But they still exist in coApptResources and I need to show 0 if there are no appointments.
December 15, 2008 at 8:39 am
The group by all doesn't return all the rows. Here is the result:
10
26
30
42
50
70
85
945
1014
115
120
130
140
150
160
170
180
190
2014
214
220
And with the code we are currently using:
;WITH PC (ResourceID, RCount)
AS (SELECT ResourceID, COUNT(ScheduleId) AS RCount
...
December 15, 2008 at 7:13 am
Lynn Pettis (12/12/2008)
SELECT ResourceID, isnull(COUNT(ScheduleId), 0) AS Count
FROM ptSchedule
WHERE...
December 12, 2008 at 3:12 pm
DECLARE @MRN1 int
DECLARE @DrID int
SELECT TOP 1 @DrID = c.ID, @MRN1 = MRN
FROM...
December 8, 2008 at 8:55 am
Viewing 15 posts - 16 through 30 (of 197 total)