Hi,
Select ActiveCharges.ID, ChargeTypes.Name, ActiveCharges.Start, ActiveCharges.[End], ActiveCharges.Amount from ActiveCharges
INNER JOIN ChargeTypes ON ActiveCharges.ItemID = ChargeTypes.ID
Where ActiveCharges.ProviderNo = 1 AND [End] = CAST('2078/12/31 00:00:00' as smalldatetime) Order By ItemID
Simple - works on my SQL Query Analyser, but doesn't work on my mate's.
Am I missing something???
The error is 296: "The conversion of char data type to smalldatetime datatype resulted in an out-of-range smalldatetime value"
This is causing the prob I believe
[End] = CAST('2078/12/31 00:00:00' as smalldatetime)
but which settings must I check to make sure it works.
Cheers,
Gary
Select ActiveCharges.ID, ChargeTypes.Name, ActiveCharges.Start, ActiveCharges.[End], ActiveCharges.Amount from ActiveCharges
INNER JOIN ChargeTypes ON ActiveCharges.ItemID = ChargeTypes.ID
Where ActiveCharges.ProviderNo = 1 AND [End] = CAST('2078/12/31 00:00:00' as smalldatetime) Order By ItemID
Simple - works on my SQL Query Analyser, but doesn't work on my mate's.
Am I missing something???
The error is 296: "The conversion of char data type to smalldatetime datatype resulted in an out-of-range smalldatetime value"
This is causing the prob I believe
[End] = CAST('2078/12/31 00:00:00' as smalldatetime)
but which settings must I check to make sure it works.
Cheers,
Gary