Viewing 15 posts - 706 through 720 (of 1,114 total)
http://msdn.microsoft.com/en-us/library/aa174792.aspx
http://databases.about.com/od/sqlserver/a/storedprocedure.htm
Just go through the above link,I hope you will get some idea.
May 13, 2008 at 3:17 am
Concur...
if you don't want to do something ,then simply
select name from master.dbo.sysobjects where name ='Table1' and xtype ='U'
May 13, 2008 at 2:56 am
Also How may member groups are available ?
What is mean by PM ?
May 13, 2008 at 1:31 am
whether it is better to handle via DB side or from Front End side.
May 12, 2008 at 9:13 am
Note: The above code has used cursor earlier,I have replaced it by using 'Iteration' or 'Tally' table.
Time taken before (cursor method) : 20 Minutes
Time taken after(After replacing Cursor with TALLY...
May 12, 2008 at 8:25 am
UPDATE #PfManager
SET monthEnd = ( select MAX(dt)
FROM PMag A
WHERE #PfManager.SP = A.SP
AND A.sno IN ( SELECT MID FROM Mgr WHERE SP = #PfManager.SP)
AND A.Type <>'T' Group BY SP) ...
May 12, 2008 at 8:17 am
Jeff,
Just i am thinking, will Tally table be a good replacement for this cursor ?
May 12, 2008 at 8:02 am
Jeff,
Thanks for highlighting some good points.
Table doesn't have a single clustered index. But it have non clustered index on mid.
Will it help to resolve this running total issue ?
Janine,
Thanks for...
May 12, 2008 at 7:55 am
i got the below output
code N Count
---- ------- -----------
1X...
May 7, 2008 at 9:29 am
I tried the below code.
create table #emp
(
mid int,
status char(1),
code varchar(5)
)
insert into #emp
select 1,'A','1X'
union all
select 25,'A','1X'
union all
select 37, 'T','1X'
union all
select 42,'T','2X'
union all
select 58,'A','2X'
union all
select 61,'A','3X'
select * from #emp
select code,N,count(code)
from #emp,Tally
group by...
May 7, 2008 at 9:25 am
Just i am thinking ,why can't we create the running number based on the code ?
Running number has to increase when there is no change found on the CODE,if found...
May 7, 2008 at 9:14 am
Viewing 15 posts - 706 through 720 (of 1,114 total)