Viewing 15 posts - 11,686 through 11,700 (of 26,486 total)
CptCrusty1 (5/24/2012)
Gullimeel (5/24/2012)
This is the problem in where clauseAND ISNULL(CHILD.ISDELETED,0) = 0
'splain, Lucy...
Same thing I was going to ask. In the view this column will contain either a null...
May 24, 2012 at 1:12 pm
CptCrusty1 (5/24/2012)
SELECT DISTINCT P.PRE_DTT_PRESERVATION_ID,
CASE horizondm_dev2.dbo.LookupValue_dev(D.EVI_DEV_MEDIA_TYPE)
WHEN 'ORIGINAL STORAGE'
THEN 'Original: '+ EVI_DEV_BC_Barcode +' SN:'+ EVI_DEV_SN
WHEN 'WORKING STORAGE'
THEN 'Working: '+ EVI_DEV_BC_Barcode +' SN:'+ EVI_DEV_SN
WHEN 'For Remediation'
THEN 'For_Remediation: '+ EVI_DEV_BC_Barcode +' SN:'+...
May 24, 2012 at 1:07 pm
Actually, you didn't eliminate the NOLOCKS hint, you just hide them in the view.
What is with the hint any way? You do know the issues with using the hint,...
May 24, 2012 at 1:01 pm
CptCrusty1 (5/24/2012)
Since YODA is your avetar... you might like this....
May 24, 2012 at 12:58 pm
This is the last LEFT OUTER JOIN from your view:
LEFT OUTER JOIN MOC_DT.dbo.TCN_Xref tcn
ON tcn.recid = (SELECT
MIN(recid)
...
May 24, 2012 at 12:55 pm
Can you post the DDL for the view? Our biggest problem is that we can't see from here what you see there. Makes it really hard to give...
May 24, 2012 at 12:34 pm
You are reading this query wrong:
SELECT *
FROM TABLE_1 T (nolocks)
WHERE ISNULL(ISDELETED,0) = 0
EXCEPT
SELECT *
FROM vw_TABLE_1
It will only show you records from TABLE_1 where ISNULL(ISDELETED,0) = 0 that aren't in...
May 24, 2012 at 12:22 pm
First, welcome to SSC and MS SQL Server.
I had to go the other way for a while (MS SQL Server to Oracle) and was confused to CASE used for flow...
May 24, 2012 at 12:14 pm
Like this (you were half way there).
select
ID_NUM as ID_num,
LAME1,
RESP_CODE as RESP_CODE1,
cast(QUERY_COMM as nvarchar(max)) as...
May 24, 2012 at 11:07 am
For the OP. We really could use more information from you to help you improve this function. We need the DDL (CREATE TABLE statements) for each of the...
May 24, 2012 at 10:24 am
Sarsoura (5/22/2012)
May 24, 2012 at 9:37 am
Cadavre (5/24/2012)
WITH t1 AS (SELECT 1 N UNION ALL SELECT 1 N),
t2 AS (SELECT...
May 24, 2012 at 9:15 am
Instead of a web application, perhaps a One-Click application. It is delivered to the users desktop by the web, but it actually sits on the users desktop. Been...
May 24, 2012 at 7:49 am
Perhaps Service Broker could be used. I would have to do some investigating to be sure, but it sounds like another viable alternative.
May 24, 2012 at 7:47 am
I would identify the tables that you need to delete records frm and delete them from the tables directly.
May 24, 2012 at 7:39 am
Viewing 15 posts - 11,686 through 11,700 (of 26,486 total)