Viewing 15 posts - 2,386 through 2,400 (of 8,731 total)
Northern Monkey (8/3/2016)
,FilterColour=CASEWHEN(SELECT...
August 3, 2016 at 7:11 am
Brandie Tarvin (8/3/2016)
. I assume I open a trace against the server I'm browsing as opposed to my local machine?
Exactly, unless they're the same. I did that to reduce noise...
August 3, 2016 at 6:58 am
Hugo Kornelis (8/3/2016)
Ed Wagner (8/3/2016)
crookj (8/3/2016)
djj (8/3/2016)
Grumpy DBA (8/3/2016)
djj (8/3/2016)
Ed Wagner (8/2/2016)
AudienceMob
Mafia
Made
Created
Born
This way
Out
August 3, 2016 at 6:29 am
I'm sorry, I didn't realized that the id values had gaps.
Here's a script that might help you and others for future references.
CREATE TABLE [dbo].[instrument_ref](
[instrument_id] [int] NOT NULL,
[description] [nvarchar](100)...
August 2, 2016 at 1:36 pm
Your sample data doesn't seem to correspond with your expected results. Are you missing tables?
August 2, 2016 at 1:25 pm
Use Cross tabs instead. I'm not sure if there's only one date per month so I included a range, but you can change the condition as needed.
SELECT SUM( CASE WHEN...
August 2, 2016 at 12:59 pm
Ed Wagner (8/2/2016)
Ray K (8/2/2016)
Ed Wagner (8/2/2016)
Y.B. (8/2/2016)
Revenant (8/2/2016)
crookj (8/2/2016)
Ray K (8/2/2016)
Ed Wagner (8/2/2016)
whereisSQL? (8/2/2016)
Grumpy DBA (8/2/2016)
Ed Wagner (8/2/2016)
jasona.work (8/1/2016)
scratchItch
Floozy
woozy
Sleep
Wake
Stir
Stick
Ball
Volley
Serve
Food
Please
August 2, 2016 at 12:38 pm
Going further on J Livingston's formula.
DECLARE @str VARCHAR(100) = 'Discontinued Rx # 0011122657 via Prescription File'
SELECT SUBSTRING(@str,19,10) AS FixedLength_FixedPos,
SUBSTRING(@str,PATINDEX('%[0-9]%',@str),10) AS FixedLength_VarPos,
SUBSTRING(@str,19,PATINDEX('%[0-9] %',@str)-18)...
August 2, 2016 at 11:30 am
Rod at work (8/2/2016)
Eric M Russell (8/1/2016)
August 2, 2016 at 9:43 am
Grumpy DBA (8/2/2016)
Phil Parkin (8/2/2016)
Took me a moment to realise...
August 2, 2016 at 6:44 am
Quick tought.
Test for performance instead of trying to guess.
August 2, 2016 at 6:15 am
The only way to avoid implicit conversions is to change the data types in the tables or making them explicit which isn't an improvement over implicit ones.
You could try Eirikur's...
August 2, 2016 at 6:07 am
BrainDonor (8/2/2016)
Anybody remember DataEase? They've 'relaunched' the DOS version:http://www.dataease.com/test_article_view/?ArticleID=00122&field1=00122
Sorry, I wasn't born yet.
August 2, 2016 at 4:16 am
djj (8/1/2016)
Ed Wagner (8/1/2016)
whereisSQL? (8/1/2016)
Ray K (8/1/2016)
djj (8/1/2016)
Grumpy DBA (8/1/2016)
crookj (7/29/2016)
whereisSQL? (7/29/2016)
KhakisBDUs
Fatigues
Outerware
Underwear
Laundry
Dirty
Bleach
chlorine
August 1, 2016 at 1:45 pm
Running profiler against the server then navigating through the object explorer details tab, generates different dynamic sql calls.
AFAIK, that would mean that there's no stored procedure and those are ad-hoc...
August 1, 2016 at 12:42 pm
Viewing 15 posts - 2,386 through 2,400 (of 8,731 total)