Viewing 15 posts - 7,321 through 7,335 (of 8,731 total)
ScottPletcher (12/18/2013)
IF (@category IS NULL OR...
December 18, 2013 at 4:00 pm
Sean Lange (12/18/2013)
December 18, 2013 at 1:14 pm
Lowell,
Would it be possible to make your function perform better by converting it to an iTVF?
December 18, 2013 at 1:06 pm
This might help you as a guide:
December 18, 2013 at 12:47 pm
It won't work with 5 columns. I suggest to use a character-delimited string splitter[/url] and then convert rows to columns using CROSS TABS[/url]
December 18, 2013 at 12:45 pm
I'm not really sure about this approach, but it's an option 😉
SELECT SUBSTRING( PARSENAME( REPLACE( string, '-', '.'), 4), PATINDEX( '%[^0]%', PARSENAME( REPLACE( string, '-', '.'), 4)), 100),
SUBSTRING( PARSENAME( REPLACE(...
December 18, 2013 at 11:53 am
I'd be open to a position in Mexico as I'm already here 😀
Depending on what it is about.
December 18, 2013 at 10:38 am
A recursive CTE can do the trick in here.
WITH SampleData(BATCHNUMBER, ID, ORIGINATINGBATCHID) AS( SELECT
'7803', '8742FDDF-E50A-405B-8567-C69B70E1F110', NULL UNION ALL SELECT
'7803EXP1', '0DA8CC6E-9B51-4380-835A-331D1B34192F', '8742FDDF-E50A-405B-8567-C69B70E1F110' UNION ALL SELECT
'7803EXP2', 'F6DE105E-F8EE-40C8-AFA0-67606F7EBA7C', '0DA8CC6E-9B51-4380-835A-331D1B34192F' UNION ALL SELECT
'7803EXP3',...
December 18, 2013 at 9:15 am
Hi, welcome to the forums. This should be made on the application layer, but here's an option. It first unpivots the data with this method: http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/
And then I used a...
December 18, 2013 at 8:24 am
wolfkillj (12/17/2013)
December 17, 2013 at 3:15 pm
As far as I understand, it should be more like this to keep the "prod" at the end of the name.
UPDATE TA
SET ServerName = STUFF(ServerName,...
December 17, 2013 at 2:24 pm
I do believe that doing it in the aplication layer is the best option. If you really need it on SQL Server, here's an option:
WITH SampleData(Client, company, division, active) AS(
SELECT...
December 17, 2013 at 9:11 am
Mr. Kapsicum (12/17/2013)
can any one suggest how to do this by Recursive CTE.?
Why would you want to loose performance instead of using a nice and clear method? 😀
December 17, 2013 at 9:02 am
Keith Tate (12/16/2013)
Since you are on 2012 you should use the TRY...CATCH blocks:
Mind reading? 😀
December 16, 2013 at 4:45 pm
I'm sure that this is an example, but it wont hurt to remind you that table variables aren't affected by transactions. 😉
December 16, 2013 at 4:32 pm
Viewing 15 posts - 7,321 through 7,335 (of 8,731 total)