Viewing 15 posts - 3,511 through 3,525 (of 6,486 total)
Another option to try:
select * from table1
WHERE CASE WHEN @reviewed = 'P' and reviewed = ('P') then 1
...
April 28, 2008 at 10:22 am
I think the fault lies in the "packaging" and not in the tools per se. Better automation, slicker UI's, etc... in a sense does in fact make it "EASIER"...
April 28, 2008 at 9:50 am
Mark Green (4/28/2008)
It doesn't seem to recognise the format that I am working with.
You mind posting a few samples of the format? just to help find the right parse....
April 28, 2008 at 9:37 am
Have you tried simply casting your input string to a DATETIME format? it's fairly robust, and seems to pick up a LOT of formats....
April 28, 2008 at 9:33 am
You can't do Dynamic SQL in Transact-SQL functions.
You CAN in CLR functions.
April 28, 2008 at 9:31 am
Keep in mind that the inner transaction won't actually commit until the outer transaction commits. So - even if the inner transaction finishes, if the outer transaction fails and...
April 28, 2008 at 9:23 am
ganesh.salpure (4/28/2008)
April 28, 2008 at 9:20 am
Steve Jones - Editor (4/28/2008)
However I can see the confusion...
April 28, 2008 at 9:01 am
but you're not filtering on the distance at all. The OUTER APPLY made sure of that - besides you're trying to filter the wrong zipcode field.
Did you try the...
April 25, 2008 at 4:39 pm
1.You're still not referring to that field the way I told you.
Replace
t2.Ufn_GetLocationsInRadius.distance,
with
t2.distance,
2. You haven't asked it to return things within the range - you've asked it to return only...
April 25, 2008 at 10:11 am
Edward (4/25/2008)
Please could I have some advice I am running a query on the live node of a cluster it takes well over an hour to run even at...
April 25, 2008 at 9:55 am
n1pcman (4/25/2008)
LEFT(raw_payload+'+++', CHARINDEX('+', raw_payload+'+++', 1)-1),
CAST(--NULLIF(
...
April 25, 2008 at 9:52 am
I didn't even see then secondary question, focusing instead on the "using regular expressions" from the title. I didn't notice what you were planning on using it for....
GSquared is...
April 25, 2008 at 9:47 am
All right - one more variation on Adrian's original solution, avoiding the need for the CASE statements....
[font="Courier New"]SELECT
LEFT(raw_payload+'+++', CHARINDEX('+', raw_payload+'+++', 1)-1),
CAST(--NULLIF(
SUBSTRING(raw_payload+'+++',
CHARINDEX('+', raw_payload+'+++', 1) + 1,
CHARINDEX('+',...
April 25, 2008 at 9:06 am
Jeff - that last code nulls out the 0's in the 3rd column - is it supposed to?
April 25, 2008 at 8:43 am
Viewing 15 posts - 3,511 through 3,525 (of 6,486 total)