Viewing 15 posts - 16 through 30 (of 32 total)
David,
you have just specified the datatypes for the inputs.
there are many decimals in the result ,as u haven't restricted the decimal places for output
do the below
declare @dividend decimal(12,5),@divisor decimal(12,5)
declare @output...
September 5, 2014 at 12:08 am
U have to specify the decimal places
Runt the below ...U will get the expected result
declare @dividend decimal(12,5),@divisor decimal(12,5)
set @dividend='105.12345425'
set @divisor='7.2654859425'
select @dividend/@divisor
September 4, 2014 at 11:24 pm
twin.devil (9/2/2014)
Indu-649576 (9/2/2014)
Select X.* From TABLE X
INNER JOIN
(case when (condition) then TABLE A else TABLE B end) AS Y
ON X.Col1...
September 2, 2014 at 2:49 am
LutzM (8/23/2014)
declare @result varchar(max)
set @result = ('select cast((select *...
August 23, 2014 at 2:19 pm
LutzM (8/23/2014)
Do you get any error message?
Can you provide a test scenario so we can reproduce the result you're...
August 23, 2014 at 2:05 pm
Sorry now the error is
Server 'FDOPROD1\FDOPROD1' is not configured for DATA ACCESS
August 22, 2014 at 11:40 pm
Koen Verbeeck (8/18/2014)
Indu-649576 (8/18/2014)
Koen Verbeeck (8/18/2014)
DECLARE @b-2 INT;
DECLARE @action VARCHAR(100);
DECLARE @dbname VARCHAR(100);
DECLARE @a INT;
SET @dbname = 'adt';
SET @action = 'dfgf';
SET @a =...
August 18, 2014 at 5:19 am
Koen Verbeeck (8/18/2014)
DECLARE @b-2 INT;
DECLARE @action VARCHAR(100);
DECLARE @dbname VARCHAR(100);
DECLARE @a INT;
SET @dbname = 'adt';
SET @action = 'dfgf';
SET @a = 14;
August 18, 2014 at 5:09 am
Koen Verbeeck (8/18/2014)
Shiva N (8/18/2014)
Hi Try this:Print('select case when '''+@action+'''='''+@dbname+''' then '+cast(@a as varchar)+' else '+cast(@b as varchar)+' end')
I consider leaving out length specifications for strings (and leaving it up...
August 18, 2014 at 5:00 am
@Action already set in quotes ,then why od we need to have quotes again the dynamic query?
August 18, 2014 at 4:16 am
Yes ....Plz close this discussion..
Im okkkkkkkkkk to use row number as there doesn't seems to be better option..
Thanks to all
August 15, 2014 at 10:02 pm
I really don't like this temp table creation as in my code I have to use this logic of row number multiple times..
Tell me if there are any other ideas
August 14, 2014 at 4:02 am
I really don't understand the CLR /CTE concepts ..somebody ..plz explain
August 14, 2014 at 3:50 am
I have gone through the example
But my concern is how can we loop through all the values of a column with out having cursor in the above example?
Thanks,
Priya.
June 7, 2009 at 3:54 am
Viewing 15 posts - 16 through 30 (of 32 total)