Viewing 15 posts - 1,801 through 1,815 (of 3,543 total)
I have some issues with the logic
What is the column COUNTER set to in #DATA before the update?
WHERE D.COUNTER < 11
AND D.COUNTER >= 1
this will retrict the selection...
August 9, 2006 at 6:41 am
Nice one Andy
After I posted I thought of posting similar but didn't
If the input is greater...
August 9, 2006 at 2:50 am
You cannot trap this error in sp only the application, SQL Server will not execute any statement following this type of error.
The only exception may be SQL 2005 with TRY...CATCH
August 8, 2006 at 6:43 am
It works for me with SQL2K
Did you copy and paste the query as is?
August 8, 2006 at 2:46 am
See
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B305704
Alternate to what is suggested you could try
ORDER BY ASCII(LOWER([name])), [name]
August 3, 2006 at 7:34 am
No it doesn't but certain collations may make it look like it does.
What is the default collation you using?
August 3, 2006 at 7:01 am
Duplicate post. Answered in other one
August 3, 2006 at 6:42 am
Run this
SELECT 'EXEC ['+srvname+'].master.dbo.sp_Msforeachdb @command1 =
"Select o.name,u.name,o.uid
from [?]..sysusers u,[?]..sysobjects o
where (u.name like ''%nko98766''
and o.uid = u.uid)"'
FROM master.dbo.sysservers
WHERE isremote=1 AND srvproduct='SQL Server'
paste the results...
August 3, 2006 at 6:41 am
You cannot use table variable names to specify columns you have to use an alias, like this
DELETE b
FROM @base b
WHERE NOT EXISTS
(SELECT GRP_NUM, SFX_NUM
FROM tbl0020Subscriber AS...
August 1, 2006 at 7:04 am
Put the results of your query into a temp table and use the following
SELECT a.agtrefno,
MAX(CASE WHEN a.[ID]=1 THEN a.memindex ELSE null END) AS [memindex1],
MAX(CASE WHEN a.[ID]=2 THEN a.memindex...
July 28, 2006 at 7:00 am
SELECT DISTINCT G1,G2,G3,G4
FROM
WHERE (G1 <> G2 AND G1 <> G3 AND G1 <> G4)
AND (G2 <> G3 AND G2 <> G4)
AND (G3 <> G4)
July 28, 2006 at 6:45 am
SELECT [Description], COUNT(*) AS [Count]
FROM (SELECT DISTINCT [Description], empid, DATEADD(day,DATEDIFF(day,0,dt),0) AS [dt]
FROM emp_amount) a
GROUP BY [Description]
What exactly do you mean by 'past 24 hours' ?
July 26, 2006 at 7:16 am
Try
EXEC('BULK INSERT EmpInput FROM ''E:\FileTransfers\Inputs\Emp\' + @FileName + '.txt''')
July 25, 2006 at 6:55 am
Viewing 15 posts - 1,801 through 1,815 (of 3,543 total)