Viewing 15 posts - 226 through 240 (of 321 total)
Check this :
CREATE FUNCTION [dbo].[FUNCTION_NAME]
(
@Pos int,
@MyNumb int
)
RETURNS varchar(400)
AS
BEGIN
DECLARE @TempResult varchar(400)
DECLARE @MinValue int
DECLARE @NewValue int
--check to see if a number matches myValue
IF EXISTS(SELECT Value FROM MyTable WHERE Value=@MyNumb)
RETURN...
June 21, 2005 at 12:25 pm
RECURSIVE ...
Your alg is tottally different ...
I ll explain more:
bool MyFunction(NoOfElemInList,MyNumb,List)
{
while (NoOfElemInList>0) and List(NoOfElemInList)>MyNumb
NoOfElemInList--;
if List(NoOfElemInList)=MyNumb return true
else
While (NoOfEleminList>0) and NOT MyFunction(NoOfElemInNewList,MyNumb-List(NoOfElemInList),NewLIst)
NoOfElemInList--;
return false;
}
smthing like that you need
OBSERVE the RECURSIVE call...
June 21, 2005 at 10:46 am
Your problem SHOULD be solved at the client side since it will require loops and math calc...
Actually you don't have so many combinations...
An sample RECURSIVE alg is
1--arrange numbers in...
June 21, 2005 at 10:22 am
Everithing K in ClientNetworkUtility for network comm with the server?
June 17, 2005 at 2:41 pm
try to put UNC path and make sure that the account under wich SQL is started has access to you shared folder
June 17, 2005 at 2:26 pm
Better put 4 txtfiles as source in you DTS and 4 connection to dest and 4 transf task so you can use the pararelism offered by DTS
June 17, 2005 at 2:24 pm
Hmm I have same issue with EM bloking but when I want to access properties for a DB
June 17, 2005 at 2:19 pm
can't you use BulkInsert instead of DTS?
June 17, 2005 at 2:17 pm
Write your select that returns the commands add GO after each command in your select and run the result in QA
or if you think that your result in commands is...
June 17, 2005 at 12:56 pm
Or try table variable
DECLARE @tblvar(...)
INSERT INTO @tblvar
SELECT ....
June 17, 2005 at 12:46 pm
set nocount on
declare @t table(CODE varchar(50),DESCRIPTION varchar(50))
insert into @t values ('03354718', 'FIRST_DESCRIPTION')
insert into @t values ('54654654','SECOND_DESCRIPTION')
insert into @t values ('62173620','THIRD_DESCRIPTION')
select * From @t
select a.code,a.description,count(*)
from @t a join @t b
on a.code>=b.code
group...
June 17, 2005 at 11:49 am
If you have only SP and no foreign key or contraints or triggers, or VIEWS where you can show the col with a different name is enaugh to script the SP
June 17, 2005 at 11:28 am
Generate a script for your DB with and search for every column name in the script
June 17, 2005 at 11:27 am
Viewing 15 posts - 226 through 240 (of 321 total)