Viewing 15 posts - 6,466 through 6,480 (of 10,144 total)
karthikeyan-444867 (11/17/2011)
select @out_factor = factor from test_xrv
where id = @id and return_date = @out_date
return @out_return
Code inside the proc:
update dbo.test_xrv
set returns = dbo.FnMonthlyFactorsToReturns(id,return_date)
this will impact the performance....
November 17, 2011 at 5:37 am
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...
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...
November 16, 2011 at 7:12 am
SQL Kiwi (11/13/2011)
L' Eomot Inversé (11/13/2011)
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...
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...
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...
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...
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...
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...
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...
November 10, 2011 at 6:28 am
John Michael Robertson (11/8/2011)
Breakwaterpc (11/8/2011)
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...
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...
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...
November 8, 2011 at 8:38 am
Viewing 15 posts - 6,466 through 6,480 (of 10,144 total)