Viewing 15 posts - 14,776 through 14,790 (of 26,486 total)
WayneS (1/26/2011)
It will also help to see the code and DDL for the tables referenced in the fx_GetLastOdometer function.(I think that this might be your culprit...)
Good call on the extra...
January 26, 2011 at 10:55 pm
Could you post some sample data, about 10 to 20 rows, as a series of INSERT INTO statements for the source table (and if you haven't provided the CREATE TABLE...
January 26, 2011 at 10:04 pm
LutzM (1/26/2011)
PSB (1/26/2011)
5305 ...
January 26, 2011 at 9:02 pm
For some other date manipulation functions, look here: Some Common Date Routines.
January 26, 2011 at 8:54 pm
First, you probably don't need a cursor. Second, can't really help you with the info you have provided. Sorry, we can't see from here what you see from...
January 26, 2011 at 8:49 pm
Mostly from practical experience. Seems I've worked with server admins that have partitioned the "c" drive into two drives, C: and D:. The C: Drive is usually only...
January 26, 2011 at 8:35 pm
Okay, tested my solution against that of mister.magoo and his won. Mine returns the same result set with the same sample data.
I guess I'm going to have to start...
January 26, 2011 at 7:56 pm
"It fails" is a typical user response. How did it fail, what is the exact error message or messages you are getting.
If you would like better help, help us....
January 26, 2011 at 3:09 pm
CirquedeSQLeil (1/26/2011)
Lynn Pettis (1/24/2011)
Grant Fritchey (1/24/2011)
Jeff Moden (1/24/2011)
Grant Fritchey (1/24/2011)
January 26, 2011 at 10:38 am
WayneS (1/26/2011)
Lynn Pettis (1/25/2011)
... I have also the where the code changes work perfectly in development and during UA, but fail miserably in production.
IMHO, this would be indicative of...
January 26, 2011 at 5:20 am
WayneS (1/26/2011)
1. constraints are a separate object, and are stored in the sys.objects (or sysobjects) views.
2. the scripted commands for a drop/create work...
January 26, 2011 at 5:06 am
Based on sample data, what is the expected output?
January 26, 2011 at 12:34 am
WayneS (1/26/2011)
Lynn Pettis (1/25/2011)
declare @TestStr varchar(128) = 'TRITON9700 L9700031288172 10-07-09 | EDC TRITON 9700 CASH DISPENSER';
select
SUBSTRING(@TestStr, PATINDEX('%[0-9][0-9]-[0-9][0-9]-[0-9][0-9]%|%',@TestStr), 8) as CharDate,
...
January 26, 2011 at 12:27 am
The sad part about this, "It works on my machine", is that I have seen. I have also the where the code changes work perfectly in development and during...
January 25, 2011 at 9:27 pm
Viewing 15 posts - 14,776 through 14,790 (of 26,486 total)