Viewing 15 posts - 481 through 495 (of 627 total)
TSQL Tryer (9/1/2015)
I've not designed the database or the table. I'm simply trying to get a report out of it
In that case I suggest breaking out tableA in a temp...
September 1, 2015 at 7:38 am
You shouldn't have multiple CompanyID's stored this way. You'll want to normalize your data. You can't do joins that way unless the actual ID in tableB was "1,2,3,4".
September 1, 2015 at 7:25 am
I've used this for a long time. It's simple and it works. I have since made many tweaks to fit my requirements such as stripping out the CLR.
You...
August 31, 2015 at 12:36 pm
Jeff Moden (8/27/2015)
August 28, 2015 at 7:25 am
Those are always a pain...no guarantee the INT is based on days since 1900-01-01. I once had to export data from a 'very' old legacy system which the date...
August 27, 2015 at 8:40 am
coolchaitu (8/21/2015)
August 21, 2015 at 11:34 am
mitzyturbo (8/7/2015)
I've tried dumping the result set into a temp table and doing the same (removing any problems...
August 7, 2015 at 7:09 am
Well there are many different combinations a schedule can make so you have to be mindful of what exactly you want.
Use this as a reference if you want to make...
August 6, 2015 at 9:43 am
Because you have multiple instances of object_id and you didn't specify which one to use. Just add the alias and it should work.
August 6, 2015 at 9:05 am
drew.allen (8/6/2015)
WITH CTE(col) AS
(
SELECT
'ServerCentral|||||forum|||||||||||||||is||||||the||best'
UNION
SELECT 'so||||||be|||||on||||||||||||||||||||||||||||||||||||||||||||it'
UNION
SELECT 'An||||additional|test||with|occurences||||of|a|||||single|||||pipe.'
)
SELECT REPLACE(REPLACE(REPLACE(col, '|', '|='), '=|', ''), '|', '')
FROM CTE
The previous solutions treat an odd number of pipes and an...
August 6, 2015 at 9:01 am
Raise your hands if you like Entity Framework...then I'll know who to shoot!
Sorry just needed two seconds to vent. :crazy:
I'm sure like anything else it can be fine when implemented...
August 4, 2015 at 9:39 am
Love it when the boss comes out and says you get to leave at 2pm! (we are heading into a long weekend here for context)
July 31, 2015 at 9:51 am
Luis Cazares (7/30/2015)
yb751 (7/29/2015)
Luis Cazares (7/29/2015)
You conversion won't help as it will only truncate the string. It will basically do the same as the LEFT() function. Another problem it that...
July 31, 2015 at 7:27 am
Have you tried Dynamic SQL? In a hurry but I threw this together.
DECLARE @test-2 TABLE (SomeValue INT)
INSERT INTO @test-2
VALUES (2000),(2001),(2002)
SELECT * FROM @test-2
DECLARE...
July 30, 2015 at 10:01 am
Luis Cazares (7/29/2015)
You conversion won't help as it will only truncate the string. It will basically do the same as the LEFT() function. Another problem it that 111 is not...
July 29, 2015 at 2:27 pm
Viewing 15 posts - 481 through 495 (of 627 total)