Viewing 15 posts - 376 through 390 (of 1,114 total)
ORDER BY CASE WHEN N IS NULL THEN 1 ELSE 0 END,N
How it is working ? I am unable to understand...
November 18, 2008 at 4:09 am
So..I have to change the query like
select SNo,CATEGORY,PROJECT ID,PROJECT NAME,BILLABLE,BUDGET,ACTUALS,REMAINDER FORECAST,FULL YEAR FORECAST, VARIANCE
from
(select SNo=count(*),
a.FinCategory as 'CATEGORY',
a.ProjectId AS 'PROJECT ID',
a.ProjectName AS 'PROJECT NAME',
a.Isbillable as 'BILLABLE',
a.Budget AS 'BUDGET',
a.ProjectActuals AS...
November 17, 2008 at 3:39 am
Actually i didn't executed the above actual query... But i did the above R&D work to identify the problematic area.. also i found that the problem is ORDER BY clause......
November 17, 2008 at 3:03 am
is there any other work around to do the same without generating script and replacing them with varchar(255) ?
November 12, 2008 at 7:26 am
my actual requirement is
"I want to update/replace varchar(255) to varchar(2000) for that (may be 25 or 30 out of 81) procedures".
Can't we update or replace the TEXT column of syscomments...
November 12, 2008 at 5:25 am
Thanks Peso !
I used Tally table to split the values.
#1,
do you feel any performance difference using Tally table logic and your logic ?
#2,
I want to update syscomments...
November 12, 2008 at 5:17 am
Hi Jeff,
Why can't you publish it as an article ? So that it will be useful to lot of folks like me.
November 3, 2008 at 6:33 am
October 28, 2008 at 7:22 am
Jack,
Thanks for your suggestion. Is there any other workaround to check the NULL values (Apart from OR method) ?
Note: My manager said that we should not change the Table...
October 21, 2008 at 5:15 am
I tried the below code
declare @d float
declare @d1 float
select @d = 34343.454
select @d1 = 676.1566545
select cast (@d as varchar(50))
select cast (@d1 as varchar(50))
I got the below output.
34343.453999999998
676.15665449999995
October 21, 2008 at 2:53 am
Is the whole point to remove nulls? If so you need to change the columns so that they do not allow nulls. Finding nulls is easy:
Select
...
October 19, 2008 at 4:49 am
And... I have to throw an error message to enduser like 'Upload the correct data into ...'
October 19, 2008 at 4:47 am
Karthick,
1. what are you planning to do once you've found a null and stopped "the process"?
2. what is the process for? Is it for finding nulls?
...
October 19, 2008 at 4:46 am
do you mean to use like below
Create table #tmp
(
eno int,
ename varchar(25)
)
go
insert into #tmp
select 1,'Karthik'
union all
select 2,'Keyan'
union all
select 3,'Ravi'
go
Declare @Name varchar(50)
select @Name = 'Karthik,Keyan'
Select @Name = ',' + @Name + ','
Select...
October 17, 2008 at 3:10 am
Hey..Hey.....Sergiy
I am not fighting with you, I am ready to take all your comments,suggestions and advices. But there is a way to give all those things. The way you are...
October 17, 2008 at 2:38 am
Viewing 15 posts - 376 through 390 (of 1,114 total)