Viewing 15 posts - 4,681 through 4,695 (of 6,036 total)
Both approaches are wrong.
Both take resourses DEDICATED to each running process. Both use calculation on fly, both use hardcoded rules.
But if you have single table storing all possible numbers and...
December 8, 2006 at 2:39 pm
Because it's not a user application. It's a SERVER.
It's a single machine serving potentially thousands of users.
And if every one of them will consume 10% of memory 11th user will...
December 8, 2006 at 1:32 pm
Do you use system table inserted inside of the trigger?
December 8, 2006 at 12:31 pm
"Zero" date in VB is 1899-12-30, "Zero" date in SQL Server is 1900-01-01.
Excel has VB on background.
December 8, 2006 at 2:14 am
No, you can.
Just declare parameter for sp_executesql as OUTPUT.
December 7, 2006 at 7:36 pm
SELECT COUNT(case Result when 'Pass' then 1 else NULL end) as Pass,
COUNT(case Result when 'Fail' then 1 else NULL end) as Fail
FROM ...
December 7, 2006 at 6:27 pm
You gonna need to include also '123D4', '432E1', '$1234', '$4321' and all other possible variations.
December 7, 2006 at 6:23 pm
> Also the range of the numbers acceptable is encapsulated in my function
You better encapsulate it into static table. All possible numbers, no matter how many millions of the you've...
December 7, 2006 at 4:52 pm
Looks like connection timeout.
Did you try to run more reasonable query within the same OPENQUERY?
December 7, 2006 at 4:37 pm
Replace
exec ('use ' + @DestDB + ';UPDATE PS_PV_SRCH_RUN_CTL SET FILE_DIRECTORY = ''\\serverxxx\psoft\verity\''' + @DestDB + '''')
with
print 'use ' + @DestDB + ';UPDATE PS_PV_SRCH_RUN_CTL SET FILE_DIRECTORY = ''\\serverxxx\psoft\verity\''' +...
December 6, 2006 at 9:29 pm
> [here, I need to include 'and column2=@param1' IF param1 is not null, otherwise ignore @param1]
That's exactly what my script is doing.
December 6, 2006 at 8:01 pm
SET @DesiredAge = NULLIF(@DesiredAge , '')
SELECT ....
WHERE (somedata = @DesiredAge OR @DesiredAge IS NULL)
December 6, 2006 at 6:29 pm
Show where?
Function may have only one outcome - its result.
I tell you again - debug not function, debug the code in function.
December 6, 2006 at 3:18 am
Populate it with what?
December 5, 2006 at 9:53 pm
Viewing 15 posts - 4,681 through 4,695 (of 6,036 total)