Viewing 15 posts - 1 through 15 (of 16 total)
That's exactly what it does and utilises that value in a later stage of the SP (which I didn't include in the code).
The while loop is horrendously slow compared to...
January 13, 2010 at 1:16 pm
But thats what I want, I want to pull the value from the table incase it has changed, instead of it being hard-coded in the formula.
Is there another way round...
April 25, 2008 at 6:54 am
How can I make my function deterministic ?
I don't pass any parameters into it and it always returns the same result, so why is it non-deterministic ?
Andrew
April 25, 2008 at 5:54 am
Thanks.
Tried that and got this:
Cannot create index because the key column 'IX_CSD_NomIPTBLB' is non-deterministic
April 23, 2008 at 5:53 pm
Thats the bit I'm stuck on.
I've written a function like this to return the value 6450 from the DB:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[fn_GetTLB] ()
RETURNS char(4)
as
BEGIN
DECLARE @TLB...
April 23, 2008 at 4:58 pm
You already got it at the beginning of thread:
[CSD_NomIPTBLB] AS (case when ([CSD_LoanType_ContOrItemOwner] = 'I') then (convert(char(4),[CSD_IIPTBLB])) else (case when ([CSD_CIPT_Confirmed] = 1) then (convert(char(4),[CSD_CIPTBLB])) else (convert(char(4),'6450')) end) end),
I...
April 22, 2008 at 7:17 am
??
No completely lost now.
Can I replace the last else with a function ?
You've lost me talking about CREATE TABLE in place of the computed column
April 21, 2008 at 9:43 pm
Can you give an example, as I tried it without much success.
Thanks
Andrew
April 21, 2008 at 7:05 am
Yep, I know how to do all of that. Thought you were somehow suggesting using the view in the calculated column formula.
I need this value writing up into the...
April 21, 2008 at 4:01 am
Thanks. I suspected as much.
Can you expand on the use of a view, not clear to me where I need to use it.
Andrew
April 20, 2008 at 5:40 pm
Solved it.....
EXEC ('INSERT INTO [' + @Filename + '] remainder of query')
April 16, 2008 at 11:40 am
A similar concept would work for an INSERT, but because I specify the column names in the insert statement my insert statement exceeds the size limit for the @cmd variable.
Any...
April 16, 2008 at 11:18 am
Found one way round it using SELECT (pasted below) now going to try something similar with INSERT.
ALTER PROCEDURE [dbo].[aiidb2_DRAc_Copy_DRAcCURRENTData_To_DRAc_Archive_File]
@FilenameVARCHAR(20)
AS
DECLARE @cmd AS NVARCHAR(1000)
SET @cmd = N'SELECT * INTO ' +...
April 16, 2008 at 10:46 am
Yes. That does the trick.
Thanks
December 6, 2007 at 8:05 am
Viewing 15 posts - 1 through 15 (of 16 total)