Question : getting count before cursor

in the attached code, how can we have the out put say like

abc records to be processed
total records processed: abc

that way we can confirm if the expected # of records were inserted or not. "total records processed: abc" is already represented in the code.

thank you.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
PROCEDURE Procname (
VariableName1 IN Table1.Col1%TYPE,
......
VariableNamen IN Tablen.Coln%TYPE
)
IS
processed number;
NewSeqID Tablea.ID_SEQ%TYPE;
CURSOR cursorname IS
SELECT columns
FROM
tablea a,
tableb b
WHERE a.colx = b.colx
AND a.coly = VariableName2
AND a.colz = b.tableB_PK
AND b.colx = VariableName3
;
BEGIN
FOR i IN cursorname LOOP
INSERT INTO tablea a (col1,col2,col3,col4,col5...............)
VALUES (ID_SEQ.NEXTVAL,i.col1,i.col2,i.col3,i.col4,i.col5,.....................);
processed := myCur%ROWCOUNT;
END LOOP;
dbms_output.put_line('total records processed: ' || processed);
END Procname;

Answer : getting count before cursor

Hi Saratcm

Basically SQL Server 2008 does support Transparent Data Encryption (TDE) but you have to enable it at the Database level and not necessarily during the backup stage itself.

Please take a look at this link as it provides information about the same thing you would like to do, hopefully it will help.

http://www.mssqltips.com/tip.asp?tip=1514

Good Luck.
 
Random Solutions  
 
programming4us programming4us