Viewing 15 posts - 2,506 through 2,520 (of 6,036 total)
smknox (5/17/2009)
May 17, 2009 at 3:27 pm
smknox, you have 2 options here.
1. Proceed with multiple stored procedures. But you need to make the application to choose which one to call basing on what's selected in the...
May 17, 2009 at 7:34 am
praveenvelumula (5/15/2009)
Here is the Code .. Please Advise ...
I guess it would be easier if you'd provide the requirements to this code. Describe what this code actually should...
May 16, 2009 at 8:23 pm
karthikeyan (5/15/2009)
I have one scenario.
declare @mm char(2)
declare @gdate datetime
select @gdate = '03/31/2009'
select @mm = convert(char(2),datepart(month,@gdate))
select @mm
It is showing 3. But i need the output as 03.
I modified the...
May 15, 2009 at 2:28 pm
CHECKSUM is not good enough.
Different records may have the same CHECKSUM.
May 11, 2009 at 3:04 pm
karthikeyan (5/11/2009)
I'd even bet money on it.
Just kidding...how much you bet? 😛
I am not expecting too much.:-P
When 2 are betting one of them is a fool, another one is a...
May 11, 2009 at 4:51 am
John (5/8/2009)
May 8, 2009 at 3:47 pm
karthikeyan (5/7/2009)
Sorry! I am not getting you...
Try again.
Here is a shorter version of your code, easier to get:
DECLARE @Fixed2 decimal(8,4)
SET @Fixed2 = 12121.03
May 7, 2009 at 10:29 pm
jbraunstein (5/7/2009)
May 7, 2009 at 2:51 pm
That's how the function should look like:
CREATE FUNCTION AdversePartiesForRequest
(@RequestID int)
RETURNS nvarchar(4000)
AS
BEGIN
declare @AdverseParties nvarchar(4000)
SELECT @AdverseParties = ISNULL(@AdverseParties+ ', ', '') + AdverseParty
FROM dbo.AdverseParty
WHERE @RequestID = RequestID
ORDER BY ??? -- if you...
May 6, 2009 at 9:28 pm
Search this forum for "Concatenation Function".
Create scalar function to accept RequestID and return all corresponding "AdverseParty" values concatenated in one string.
Then you may call it like this:
SELECT R.RequestID. R.Name, dbo.AdversPartForRequest(R.RequestID)...
May 6, 2009 at 8:54 pm
Always use FLOAT data type for complex calculations.
DECLARE @Hundred float
SET @Hundred = 100
Update #temp
set gross = (((1.0+(week1/@Hundred))*
(1.0+(week2/@Hundred))*
(1.0+(week3/@Hundred)))-1)*@Hundred
May 5, 2009 at 11:40 pm
Just make sure you have updates statistics before you query for RowCnt from sysindexes.
It does not reflect real number of records all the time.
May 5, 2009 at 11:19 pm
Another way to go would be creating system procedure in master database.
Then you just call that procedure from any of databases and get results relevant to that particular database.
Here is...
May 3, 2009 at 5:18 pm
viswa (4/30/2009)
But my exact input length of parameter is numeric(18,7)and output is numeric(18,7)
that time your condition will not work so make me exact..
Then you need to make some effort in...
April 30, 2009 at 12:32 am
Viewing 15 posts - 2,506 through 2,520 (of 6,036 total)