Viewing 15 posts - 76 through 90 (of 113 total)
pl try below code..
declare @My_Test_Temp table(
[AccountID] [bigint] NULL,
[CategoryID] [bigint] NULL,
[RootID] [bigint] NULL,
[TRNType] [varchar](1) NULL,
[AcType] [varchar](2) NULL,
[AcName] [nvarchar](max) NULL,
[CrDr] [varchar](2) NULL,
[Active] [int] NULL,
[Sort_Order] [int] NULL,
[HasParent] [varchar](1) NULL,
[Descr] [ntext] NULL,
[account_Code] [varchar](5)...
July 10, 2012 at 1:44 am
pls try below code declare @test-2 table (id varchar(10),name varchar(10),sal int,cum_sal int)
insert into @test-2(id,name,sal)
select 'C001','Jack',100
union
select 'C002','Mick', 500
union
select 'C003','Rock', 200
--update stmt
update t1 set cum_sal=(select SUM(t.sal)...
July 9, 2012 at 9:16 pm
pls try below code.
declare @test-2 table (id varchar(10),name varchar(10),sal int,cum_sal int)
insert into @test-2(id,name,sal)
select 'C001','Jack',100
union
select 'C002','Mick', 500
union
select 'C003','Rock', 200
--update stmt
update t1 set cum_sal=(select SUM(t.sal) from...
July 9, 2012 at 9:13 pm
pls check your where class values .
you are send values correct or not.
July 6, 2012 at 1:31 am
IF IT IS necessary that time you will use order by
ohter wise no need to use because it is take time.
July 5, 2012 at 11:38 pm
i have developed one report in ssrs.
when i had run that report it was showing out of memory Exception.
when i was run same query in sql server it was took...
July 5, 2012 at 9:03 pm
pls try belo code.
CLARE @OrigString VARCHAR(100)
DECLARE @SearchFor VARCHAR(100)
DECLARE @ReplaceWith VARCHAR(100)
SET @SearchFor ='.[Sample]'
SET @ReplaceWith = '.[Client_Sample]'
SET @OrigString = 'Newdb.[Sample].dbo.TableName'
select REPLACE(@OrigString, @SearchFor, @ReplaceWith)
July 4, 2012 at 11:57 pm
i was told split is function.
if you will pass any parameter life empid like '1a,1b,1c'
that time
how to pass that string in where class.
select * from emp
where...
July 1, 2012 at 10:54 pm
pls try below code.
select * into #temp from @SAMPLE
order by SUBGROUP
select * from
(select *,row_number() over( partition by amount order by amount asc) rank
from #temp)k
...
July 1, 2012 at 10:39 pm
any way
user defined function.
calling.
select * emp where empcode in(select * split('1a','1b','1c'))
June 30, 2012 at 12:20 am
select replace(columnname,char(63),'Null')
June 30, 2012 at 12:16 am
pls first find special character real values after using below code.
DECLARE @postcode VARCHAR(15)
SET @postcode = 'asd?'
select replace(@postcode,CHAR(63),'')
June 29, 2012 at 12:15 am
pls try below code.
CREATE FUNCTION dbo.fn_leanUtil_PostCodePart
(
@PostCode VARCHAR(15) ,
@Part TINYINT
)
-- WhoWhenWhat
--...
June 29, 2012 at 12:08 am
pls try below code
DELETE FROM Emp
where deptno in( select distinct e1.deptno from emp e1
INNER JOIN dept
ON e1.deptno=dept.deptno AND dept.deptno=50)
June 27, 2012 at 3:34 am
Thanks for gave replay.
i have two data sets is there in report.that two group by common id.
that why client was asked page breaks commid.
ex:
first data set have d1,d2,d3
second data set...
June 25, 2012 at 2:38 am
Viewing 15 posts - 76 through 90 (of 113 total)