Viewing 15 posts - 91 through 105 (of 113 total)
thanks for your replay...
i was tried as your told that why but it is not working..
when i had selected parameter it is show error..
declare @date datetime=(
select * from policy
where...
June 19, 2012 at 3:54 am
Thanks so much.
It is working fine...
May 22, 2012 at 4:07 am
From_Date To_Date SM BM
2011-04-01 00:00:00.0000000 2011-04-08 00:00:00.0000000 Muneer Hussain M S Rama
2011-04-09 00:00:00.0000000 2011-06-05 00:00:00.0000000 Anwar Basha M S Rama
2011-06-06 00:00:00.0000000 2011-09-21 00:00:00.0000000 Dayakar V Ramapriyan Mukunthan
2011-09-22 00:00:00.0000000 2011-10-26 00:00:00.0000000...
December 28, 2011 at 2:28 am
CREATE TABLE Master_Data
(TO_Date DATE,FROM_SM VARCHAR(100),TO_SM VARCHAR(200),FROM_BM VARCHAR(500),TO_BM VARCHAR(200),CSC_CODE VARCHAR(100))
insert into Master_Data values('2011-04-09 00:00:00.0000000','Muneer Hussain','Anwar Basha','M S Rama','M S Rama','R16001')
insert into Master_Data values('2011-06-06 00:00:00.0000000','NULL','Dayakar V','M S Rama','Ramapriyan Mukunthan','R16001')
insert...
December 28, 2011 at 1:06 am
select
a.FILEID,
[FILE_SIZE_MB] =
convert(decimal(12,2),round(a.size/128.000,2)),
[SPACE_USED_MB] =
convert(decimal(12,2),round(fileproperty(a.name,'SpaceUsed')/128.000,2)),
[FREE_SPACE_MB] =
convert(decimal(12,2),round((a.size-fileproperty(a.name,'SpaceUsed'))/128.000,2)) ,
NAME = left(a.NAME,15),
FILENAME = left(a.FILENAME,30)
from
dbo.sysfiles a
Results:
FILEID FILE_SIZE_MB SPACE_USED_MB FREE_SPACE_MB NAME ...
December 19, 2011 at 8:11 am
pls try beloe code
SELECT kingshocks.[Partnumber] AS sku,
'Default' AS store,
FROM kingshocks
December 17, 2011 at 11:53 pm
declare @Year int
declare @mon int
declare @Main datetime
set @year=2012
set @mon=3
set @Main=convert(datetime,conert(varchar(10),@year)+'-'+convert(varchar(10),@mon)+'-'+'01')
select convert(varchar(10),dateadd(ss,-1,dateadd(mm,1,@Main)),120)
December 17, 2011 at 11:47 pm
pls try below code
declare @Year int
declare @mon int
declare @Main datetime
set @year=2012
set @mon=3
set @Main=convert(datetime,conert(varchar(10),@year)+convert(varchar(10),@mon)+'01')
select convert(varchar(10),dateadd(ss,-1,dateadd(mm,1,@Main)),120)
December 17, 2011 at 11:41 pm
declare @table table(immid varchar(10),ppid varchar(10))
insert into @table values('TP1','TC1')
insert into @table values('TP1','TP2')
insert into @table values('TP1','TP3')
insert into @table values('TP2','TC2')
insert into @table values('TP2','TP4')
insert into @table values('TP3','TC3')
insert into @table values('TP4','TC4')
select * from @table;
with...
December 7, 2011 at 1:23 am
try below code
SELECT MIN (cc.ClaCaseID),DENSE_RANK() over(ORDER BY rl.YearOfIncident) AS latest_cla_case_no
...
December 7, 2011 at 12:50 am
pls try below code
Update T set T.SomeValue=K.TestColumn
FROM @ExampleTable T
INNER JOIN
(SELECT E.ID,
E.Name,
100 - SUM(CASE WHEN ET.SomeValue > 1 THEN ET.SomeValue ELSE 0 END) AS TestColumn
FROM
@ExampleTable ET RIGHT JOIN @Employee...
December 7, 2011 at 12:11 am
use ssis package for loading .csv file that time you find out what is excact issue in .csv file.
December 5, 2011 at 9:16 pm
i was wrote below query
select ISNULL(t.region,t1.region) Region,
ISNULL(t.Lamt,0) Lamt,
ISNULL(t1.lamt,0) lamt
from @t1...
December 4, 2011 at 10:08 pm
Viewing 15 posts - 91 through 105 (of 113 total)