Viewing 15 posts - 6,466 through 6,480 (of 10,143 total)
Gangadhara MS (11/17/2011)
One of the stored procedure is failing with displaying below error.Till now it was runnign fine.
Pls suggest
The statement terminated. The maximum recursion 100 has been exhausted...
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
November 17, 2011 at 2:16 am
DROP TABLE #Doc_Version
CREATE TABLE #Doc_Version (ID INT,DocID INT, OldVersionID INT)
INSERT INTO #Doc_Version (ID, DocID, OldVersionID)
SELECT 1, 233, 230 UNION ALL
SELECT 2, 233, 232 UNION ALL
SELECT 3, 232, 241
DECLARE @OldVersionID...
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
November 16, 2011 at 7:12 am
SQL Kiwi (11/13/2011)
L' Eomot Inversé (11/13/2011)
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
November 16, 2011 at 6:46 am
Lowell (11/15/2011)
(He or She) clicks the Instant 30 seconds button, waits 10 seconds, watching the count down, and then clicks...
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
November 15, 2011 at 10:19 am
There are seven functions in your output list. Guessing from the function names and the passed parameters, a couple of them perform quite complex calculations touching several tables. Your first...
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
November 11, 2011 at 4:40 am
Kiara (11/10/2011)
ChrisM@Work (11/10/2011)
Kiara (11/10/2011)
Stefan Krzywicki (11/10/2011)
Kiara (11/10/2011)
In case y'all haven't seen this.. http://thedailywtf.com/Articles/The-Query-of-Despair.aspx...I'm sure we've all had days like that...
I inherited a query like that back in 99. It was...
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
November 10, 2011 at 9:47 am
Ninja's_RGR'us (11/10/2011)
Kiara (11/10/2011)
Ninja's_RGR'us (11/10/2011)
SQL Kiwi (11/10/2011)
Ninja's_RGR'us (11/10/2011)
Actually I caught the very moment it happened!You need a hobby.
Right back at ya :hehe:.
Father in hospital, house flooded. Need some R&R atm.
Sorry...
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
November 10, 2011 at 8:14 am
Kiara (11/10/2011)
Stefan Krzywicki (11/10/2011)
Kiara (11/10/2011)
In case y'all haven't seen this.. http://thedailywtf.com/Articles/The-Query-of-Despair.aspx...I'm sure we've all had days like that...
I inherited a query like that back in 99. It was a 500...
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
November 10, 2011 at 8:07 am
This should do it:
SUM(CASE WHEN e.EQUIPMENT_TYPE_CD like '20%' THEN 1 ELSE 2 END
* CASE WHEN e.BOOKING_EQ_REQ_DETAIL_ID IS NULL THEN 0 ELSE 1 END) AS BookedTEU
This gives you a 1...
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
November 10, 2011 at 6:57 am
It's going to be something like this:
SELECT
tr_trrefn,
tr_abbrv,
Disbs = SUM(CASE
WHEN tr_abbrv = 'BIL' THEN tr_disamt
WHEN tr_abbrv = 'ABT' THEN - tr_disamt
WHEN tr_abbrv...
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
November 10, 2011 at 6:28 am
John Michael Robertson (11/8/2011)
Breakwaterpc (11/8/2011)
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
November 8, 2011 at 10:01 am
John Michael Robertson (11/8/2011)
Breakwaterpc (11/8/2011)
First off, where is this variable "NewValue" getting used once it's cast? Doesn't appear...
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
November 8, 2011 at 9:09 am
Breakwaterpc (11/8/2011)
Msg 402, Level 16, State 1, Line 1
The data types text and varchar are incompatible in the add...
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
November 8, 2011 at 8:49 am
-- run this first for an eyeball check
SELECT r.*, r.comments + ' ' + s.other
FROM civil.dbo.RECEIPTS r
INNER JOIN civil.dbo.subjects s
ON s.Receiptno = r.Receiptno
-- this is the update...from statement
UPDATE r
SET...
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
November 8, 2011 at 8:38 am
Jeff Moden (11/7/2011)
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
November 8, 2011 at 7:04 am
Viewing 15 posts - 6,466 through 6,480 (of 10,143 total)