Viewing 15 posts - 2,116 through 2,130 (of 8,731 total)
Be careful when using those updates, they can be really bad. At least, that's what it's explained in here: http://www.sqlservercentral.com/articles/Performance+Tuning/62278/
To prevent the problem, always include your target table in the...
September 26, 2016 at 12:17 pm
Different option:
SELECT '/' + LEFT( newpathx, CHARINDEX( '/', newpathx, CHARINDEX('/', newpathx) + 1))
FROM #t
CROSS APPLY( SELECT STUFF( pathx, 1, CHARINDEX('/', pathx), '') newpathx) x
WHERE pathx LIKE '%/%/%/%';
September 26, 2016 at 11:33 am
mw112009 (9/26/2016)
Sorry, but the first 2 entries in your solution should not be there. The output that I wanted will have exactly 3 "\" characters included.
I will go with...
September 26, 2016 at 11:29 am
Why do you want to short circuit the conditions? It won't improve performance and might actually harm it.
September 26, 2016 at 11:17 am
mw112009 (9/26/2016)
( The objective is to grab any values between the first and third "\" character
Sample Output
"/MidwestHealthPlan/Claims/"
"/MidwestHealthPlan/Authorization/"
CREATE TABLE #t(...
September 26, 2016 at 11:12 am
Can you share the code that you're using? (you can change the filter if needed)
Also, how are you validating the size? Why are you using disk space to measure them...
September 26, 2016 at 10:34 am
Do you realize that dbo is not part of the table name? It's the schema name.
In the case that you really have a point in your table name, the option...
September 26, 2016 at 9:39 am
Here's a modified version of the function I posted in here: http://www.sqlservercentral.com/scripts/Working+Hours/111097/
I removed breaks and lunch, and adapted the times.
The DATEADD(DD, DATEDIFF(DD, 0, @StartDate), 0) can be replaced by TRUNC()...
September 26, 2016 at 9:15 am
johnbergholm (9/30/2015)
SELECT *FROM dbo.LIKETest
WHERE Name LIKE N'[CDW]%';
What is the function of the 'N' after LIKE.
This is an old post, but it never had a reply because...
September 23, 2016 at 2:10 pm
I'm not sure if it changed in 2016.
The parameters have a property to allow multiple values. If you have a dataset for the available values of your parameter (strongly recommended),...
September 23, 2016 at 1:57 pm
Someone needs a course on how to write basic DML. Or maybe I'm just grumpy this week.
September 23, 2016 at 1:38 pm
Remove the parenthesis in the column list from the SELECT
September 23, 2016 at 1:35 pm
vblllove (9/23/2016)
September 23, 2016 at 12:52 pm
Phil Parkin (9/23/2016)
Telling us that you are "getting errors" without telling is what the errors are is most unhelpful ... are we supposed to guess? Please post them.
Repeating this.
Also, stop...
September 23, 2016 at 12:43 pm
pietlinden (9/22/2016)
You could use something like this.. I would recommend commenting out the EXEC statement and just printing the SQL to make sure the SQL statement is correct.
Too many...
September 23, 2016 at 12:38 pm
Viewing 15 posts - 2,116 through 2,130 (of 8,731 total)