In my opinion nothing compares with MS SQL speed. I have copied about 1.5 milion (!!!) records with SP in... 30 seconds! this is not a joke... but good written SP.
by the way - show me such trick on pervasive. I'd like to know how to optimize it's speed.
My idea wasn't to prove which is the...
ok, as I know SP are much faster that traditional select because SP are stored on server and need no being parsed everytime one execute them.
if this is not true why there are SP on pervasive sql platform? ;-)
besides I need to do a lot of things not only one statement so I choose SP :-)...
yes, I am using stored procedure!
create procedure MyProc() as
begin
-- this is a sample only not real problem
declare :myCustomerName varchar(30);
declare :myCustomerUID varchar(30);
declare :myCustomerPrice decimal(19,0);
-- I want to initialize all this variables in ONE...
surely I've forgot to show you my pervasive code:
-- do something...
SELECT :myCustomersName = CustomersName
FROM Customers
WHERE SecPolID = 3233
-- ok, here goes another fragment of code...
hello guys,
is this possible to use SELECT statement to initialize local variable.
MS SQL supports such kind of operation:
SELECT @myCustomersName = CustomersName
FROM Customers
WHERE SecPolID = 3233
when I try to use this in pervasive I got Syntax Error: SELECT ?<< ??? >>=CustomersName FROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.