Viewing 15 posts - 8,986 through 9,000 (of 10,143 total)
Philip Horan (1/6/2009)
Thanks guys and yes I am an old git 🙂Old Dogs, new tricks....possible?
Thanks,
Phil.
'Course! I'm an old git and I learn something new here every day - see above,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 10:02 am
Cool.
Now, change thisIF @test1 + @test2 + @test3 > 0
to this IF ISNULL(@test1, 0) + ISNULL(@test2, 0)+ ISNULL(@test3, 0)> 0
Also, put a new line in as follows...
...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 9:52 am
Pat, are you able to answer the questions?
Chris Morris (1/6/2009)
pat (1/6/2009)
thanks for reformating.It needs to go on to end of last insert!!
Thanks
What does?
How many times does the PRINT statement execute?
What...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 9:32 am
pat (1/6/2009)
thanks for reformating.It needs to go on to end of last insert!!
Thanks
What does?
How many times does the PRINT statement execute?
What values do you get for @test1, @test2 & @test3?...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 8:50 am
How many times does the PRINT statement execute?
Here's the whole thing reformatted a little for readability:
[font="Courier New"]ALTER PROCEDURE [dbo].[testproc]
@srcFilename VARCHAR(256)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
--...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 8:37 am
GilaMonster (1/6/2009)
Chris Morris (1/6/2009)
GilaMonster (1/6/2009)
I recommend a 20-sided dice.Six is sufficient...http://en.wikipedia.org/wiki/The_Dice_Man
Maybe for you. 😉 I play D&D. The 20-sided dice is the most important one.
I have 4, 6, 8, 10...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 7:21 am
GilaMonster (1/6/2009)
Grant Fritchey (1/6/2009)
URGENT!How do you pick indexes... Oh lordy
I recommend a 20-sided dice.
Six is sufficient...http://en.wikipedia.org/wiki/The_Dice_Man
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 7:08 am
SELECT s.name, s.PHC_ID, s.[Contact Date], s.[Referral Date], s.activity__2
FROM dbo_pod_surgery s
WHERE s.PHC_ID IN ('22/15729', '23/13278')
AND s.activity__2 <> 'AS0630'
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 3:58 am
shiwani2002sg (1/5/2009)
and its stated that the value of A would be same in both the tables , row-by-row.
This looks like homework, but at least you're putting in some...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 1:59 am
RBarryYoung (1/5/2009)
See that Update solution that I just posted in the "Cursors Be Gone" thread. It's got a derived table, that arguably could/should be a CTE: http://www.sqlservercentral.com/Forums/FindPost630181.aspx
Thanks Barry, I...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 6, 2009 at 12:31 am
Philip Horan (1/5/2009)
Moving forward part of the learning process is to know when to employ...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 5, 2009 at 3:08 pm
Check that the file is not already open.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 5, 2009 at 2:01 pm
GSquared (1/5/2009)
update #T
set Col4 =
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(col1, '1', ''),
'2', ''),
'3', ''),
'4', ''),
'5', ''),
'6',...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 5, 2009 at 1:32 pm
Hi Mattie
This is how I've implemented your scenario:
I have a reporting db on each server instance, call it say ReportingDB. The reporting db contains sp's, functions and tables which relate...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 5, 2009 at 12:44 pm
MattieNH (1/5/2009)
Not that I had tried that, but no. It would be nice to get something like MyServer.MyDomain.OurSystem, but I'd settle for 181.50.144.3. We're trying to build a...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 5, 2009 at 10:04 am
Viewing 15 posts - 8,986 through 9,000 (of 10,143 total)