Viewing 15 posts - 3,691 through 3,705 (of 5,103 total)
What is row_number()? I searched books online, but there is no row_number.
that's SQL Server 2005
Does your table has a numeric pkey ?
if the answer is yes can use something...
May 20, 2005 at 3:33 pm
I don't think you need a rollback there.
If you want to prevent this proc from being executed in the middle of a transaction use "RETURN" instead
and You should be returning always...
May 20, 2005 at 3:13 pm
UPDATE [RiskSysSum of Source ClaimType]
SET FinLagCatagory =
(CASE
WHEN ClaimType IN ('OP','SPU') THEN 'OP/SPU'
WHEN ClaimType IN ('SNF','RHB') THEN 'SUBACUTE'
WHEN ClaimType IN ('PCP', 'PH', 'SP', 'SPI', 'SPO') THEN 'Spec'
WHEN ClaimType...
May 20, 2005 at 2:50 pm
>> I think I found my anwser:
INSERT INTO tblCatalog ( Product_ID, img )
SELECT Product_Id, rtrim(Pattern) + '-' + rtrim(Color) + '.jpg' as img
FROM dbo.Product_Dimension <<
To be on the safe...
May 20, 2005 at 2:48 pm
Because of the scalability built in SQL Server when the DB is used on a Workstation with MSDE it is actually a good thing because it preserve local resources as...
May 20, 2005 at 2:04 pm
Marco, LOOK at my code, the double assignment it is not a typo!
UPDATE PARAMETRO SET
@CONTADOR = NM1_PARAMETRO = NM1_PARAMETRO + 1
WHERE SIG_PARAMETRO = 'CT' AND GRU_PARAMETRO = '001' AND...
May 20, 2005 at 1:59 pm
SELECT distinct a.name as UserName, b.name as Rolename FROM sysusers a,
(SELECT name FROM sysusers b
WHERE (b.name NOT LIKE 'db%')
AND (b.name NOT IN ('guest', 'public'))
AND (b.uid = gid)) b
WHERE ...
May 20, 2005 at 1:49 pm
select ROUTINE_NAME, VName
from INFORMATION_SCHEMA.ROUTINES
cross join
( select TABLE_NAME as VName
from INFORMATION_SCHEMA.TABLES
where TABLE_TYPE = 'VIEW'
and OBJECTPROPERTY(OBJECT_ID(TABLE_NAME),'IsMSShipped') = 0 ) v where patindex ( '%'+Vname+'%', ROUTINE_DEFINITION) >...
May 20, 2005 at 1:46 pm
select EquipNumber
, MIN(LicenseNumber) as License
from tblLicenses
group by EquipNumber
[Edit:] Should learn to type faster, damn! ![]()
May 20, 2005 at 10:23 am
Well I think there is a reason for having more than one file in a filegroup and it is that you get a proportional fill (parallel operation) therefore you are supposed to get...
May 19, 2005 at 1:56 pm
Allow me to differ! ... well a bit...
The "optimized" didn't removed the joins it simply added one more filter to the equation
May 19, 2005 at 1:37 pm
Carl,
On all examples that I have came across the ussage pattern of it is:
call sp_getapplock
if failed return -- This is doing the check for you
... do your stuff
call sp_releaseapplock
hth
May 19, 2005 at 1:06 pm
Viewing 15 posts - 3,691 through 3,705 (of 5,103 total)