I dont know why but now my payroll module is not working. I attach pics of the module and one of the queries with the error message and code. Do you see any obvious problem?
↧
Problem with Module for Payroll
↧
Oracle DBA Radford, VA 24141
Opportunity Details:
Title : Oracle Database Administrator
Expected Start Date: Immediate
Estimated Duration : 4-6 Months
Job Details:
Experience : 7 Years
Location : Radford, VA 24141
Job Description:
Our client is currently seeking an experienced Oracle Database Administrator for a 4- 6 month opportunity in Radford, VA
Role: Oracle Database Administrator
Description:
Ongoing operational support and implementation of application hosting with system administration.
Responsibilities:
This position is for an Oracle Database Administrator for a growing Oracle environment. This position will work with the existing DBA team to manage, maintain, deploy, and troubleshoot both NIPR and SIPR databases. This position will assist with implementing new system software, and provide input for developing local operating procedures and policies as needed or requested. This position will need to be adept at monitoring the ongoing operation of the databases and providing utilization reports to identify problems and corrective actions as needed.
Required Skills:
- Security+ (Or equiv. IA cert),
- Oracle Certified Associate or Professional DBA,
- 5 years of Oracle DBA experience,
- Experience with Oracle Enterprise Database,
- Oracle Advanced Security Option,
- Oracle Grid/ASM/RAC,
- Oracle Grid Control,
- Working knowledge of DoD STIGs,
- SRR scripts,
- IA Vulnerability Management (IAVM),
- Strong RHEL background,
- Strong Documentation skills,
- Toad & Erwin Experience.
- Desired: Oracle Data Guard, SQL Server knowledge.
ALL POSITIONS WITH VECTOR CONSULTING REQUIRE A COMPLETE BACKGROUND CHECK.
I look forward to hearing from you,
Sincerely
Amit Sharma
VECTOR Consulting
T:770-225-7690 (8:30-5:30 EST)
F:770-246-0609/678-990-7314
Title : Oracle Database Administrator
Expected Start Date: Immediate
Estimated Duration : 4-6 Months
Job Details:
Experience : 7 Years
Location : Radford, VA 24141
Job Description:
Our client is currently seeking an experienced Oracle Database Administrator for a 4- 6 month opportunity in Radford, VA
Role: Oracle Database Administrator
Description:
Ongoing operational support and implementation of application hosting with system administration.
Responsibilities:
This position is for an Oracle Database Administrator for a growing Oracle environment. This position will work with the existing DBA team to manage, maintain, deploy, and troubleshoot both NIPR and SIPR databases. This position will assist with implementing new system software, and provide input for developing local operating procedures and policies as needed or requested. This position will need to be adept at monitoring the ongoing operation of the databases and providing utilization reports to identify problems and corrective actions as needed.
Required Skills:
- Security+ (Or equiv. IA cert),
- Oracle Certified Associate or Professional DBA,
- 5 years of Oracle DBA experience,
- Experience with Oracle Enterprise Database,
- Oracle Advanced Security Option,
- Oracle Grid/ASM/RAC,
- Oracle Grid Control,
- Working knowledge of DoD STIGs,
- SRR scripts,
- IA Vulnerability Management (IAVM),
- Strong RHEL background,
- Strong Documentation skills,
- Toad & Erwin Experience.
- Desired: Oracle Data Guard, SQL Server knowledge.
ALL POSITIONS WITH VECTOR CONSULTING REQUIRE A COMPLETE BACKGROUND CHECK.
I look forward to hearing from you,
Sincerely
Amit Sharma
VECTOR Consulting
T:770-225-7690 (8:30-5:30 EST)
F:770-246-0609/678-990-7314
↧
↧
looping from s/f to m/f as long as there are more m/f records
Thanks for checking my post! Looking for some help on this scenario -
My mainform opens from a dialog box and can return a single chosen record or several records.......
Each m/f has a s/f in which a new entry is going to be made. Every s/f already has one or more records. The focus is set to the s/f and the s/f uses a DMAX Form_Current to copy a value from it's previous record. That's all well and good working. Although, I think I am missing something in the Form_Current because even though it does allow me to go through my other controls, it won't let me out. I tab out of the last control and nothing happens.
What I am trying to do is exit out of my last s/f control back to my m/f...I have an Exit button there cleverly called Command65...I want to use that button to see of there is a next m/f record. If there is, I want to go to the next record and loop through again s/f entry, exit to m/f, s/f entry, exit to m/f by using the tab key.
The button should also allow the user to click and close the m/f if they are not going to finish updating each of these at this time.
Here is the code I have now......
SUBFORM = MOVEREG
**this is where I seem to be stuck in the s/f - not sure if I have properly closed the error handling and exiting. FYI: This "error" is bogus since I will always have records returned to me**
Private Sub Form_Current()
On Error GoTo Err_Form_Current
Dim lngID As Long
lngID = Nz(DMax("ID", "REGSTAT32511", "ACCOUNT = '" & Me.ACCOUNT.Value & "'"), -2147483648#)
If lngID = -2147483648# Then
MsgBox "Cannot find this Account!", vbCritical, "Help!"
Else
Me.STATLU.Value = DLookup("STATLU", "REGSTAT32511", "ID=" & lngID)
End If
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox "An error has occured: " & vbCrLf & Err.Number & " - " & Err.Description, vbCritical, "Something needs fixing"
Resume Exit_Form_Current
End Sub
Private Sub SLU2_GotFocus()
**this triggeres as expected**
If IsNull(SLU) Then
MsgBox "Please Register To Salesman 1 before entering split salesman!"
SLU.SetFocus
Else
SLU2.SetFocus
End If
End Sub
Private Sub RNOTES_Exit(Cancel As Integer)
**this doesn't do anything at all - I have no cursor, no focus**
Me.Parent!Command65.SetFocus
End Sub
MAINFORM: MoveAcctSTATREG
Private Sub Command65_Click()
DoCmd.Close acForm, "MoveActiveSLMNChooser"
DoCmd.Close acForm, "MoveAccount2211"
DoCmd.Close
End Sub
Private Sub Command65_GotFocus()
**I'm not sure about this yet b/c I haven't been able to get the Focus here from the subform**
DoCmd****nCommand acCmdSaveRecord
If CurrentRecord - RecordsetClone.RecordCount Then
DoCmd.Close acForm, Me.Name
**this is intended to close the entire thing down if I open a single m/f records(which my dialog box gives me the option to do**
Else
DoCmd.GoToRecord , , acNext
End If
End Sub
Private Sub Form_Load()
**This triggers okay, and I need it to do the same if I am in the next record, too.....I haven't got there yet. Will Load trigger for each m/f, or do I need to start with Open and also put in Load or Activate**
Forms!MoveAcctSTATREG!MOVEREG.SetFocus
End Sub
Does anyone recognize what I'm missing???? Your help is appreciated!
My mainform opens from a dialog box and can return a single chosen record or several records.......
Each m/f has a s/f in which a new entry is going to be made. Every s/f already has one or more records. The focus is set to the s/f and the s/f uses a DMAX Form_Current to copy a value from it's previous record. That's all well and good working. Although, I think I am missing something in the Form_Current because even though it does allow me to go through my other controls, it won't let me out. I tab out of the last control and nothing happens.
What I am trying to do is exit out of my last s/f control back to my m/f...I have an Exit button there cleverly called Command65...I want to use that button to see of there is a next m/f record. If there is, I want to go to the next record and loop through again s/f entry, exit to m/f, s/f entry, exit to m/f by using the tab key.
The button should also allow the user to click and close the m/f if they are not going to finish updating each of these at this time.
Here is the code I have now......
SUBFORM = MOVEREG
**this is where I seem to be stuck in the s/f - not sure if I have properly closed the error handling and exiting. FYI: This "error" is bogus since I will always have records returned to me**
Private Sub Form_Current()
On Error GoTo Err_Form_Current
Dim lngID As Long
lngID = Nz(DMax("ID", "REGSTAT32511", "ACCOUNT = '" & Me.ACCOUNT.Value & "'"), -2147483648#)
If lngID = -2147483648# Then
MsgBox "Cannot find this Account!", vbCritical, "Help!"
Else
Me.STATLU.Value = DLookup("STATLU", "REGSTAT32511", "ID=" & lngID)
End If
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox "An error has occured: " & vbCrLf & Err.Number & " - " & Err.Description, vbCritical, "Something needs fixing"
Resume Exit_Form_Current
End Sub
Private Sub SLU2_GotFocus()
**this triggeres as expected**
If IsNull(SLU) Then
MsgBox "Please Register To Salesman 1 before entering split salesman!"
SLU.SetFocus
Else
SLU2.SetFocus
End If
End Sub
Private Sub RNOTES_Exit(Cancel As Integer)
**this doesn't do anything at all - I have no cursor, no focus**
Me.Parent!Command65.SetFocus
End Sub
MAINFORM: MoveAcctSTATREG
Private Sub Command65_Click()
DoCmd.Close acForm, "MoveActiveSLMNChooser"
DoCmd.Close acForm, "MoveAccount2211"
DoCmd.Close
End Sub
Private Sub Command65_GotFocus()
**I'm not sure about this yet b/c I haven't been able to get the Focus here from the subform**
DoCmd****nCommand acCmdSaveRecord
If CurrentRecord - RecordsetClone.RecordCount Then
DoCmd.Close acForm, Me.Name
**this is intended to close the entire thing down if I open a single m/f records(which my dialog box gives me the option to do**
Else
DoCmd.GoToRecord , , acNext
End If
End Sub
Private Sub Form_Load()
**This triggers okay, and I need it to do the same if I am in the next record, too.....I haven't got there yet. Will Load trigger for each m/f, or do I need to start with Open and also put in Load or Activate**
Forms!MoveAcctSTATREG!MOVEREG.SetFocus
End Sub
Does anyone recognize what I'm missing???? Your help is appreciated!
↧
change location of tablespaces and active logs for HADR pair
I need to upgrade DB2 and change the filesystems (relocate tablespaces, active logs). This is an HADR pair. I've never done this for an HADR setup before.
What I'm planning to do is:
- Deactivate db / stop hadr on primary and standby and rollforward db on standby. (db's are in peer state prior to stopping hadr)
- Take offline db backup from primary and standby
- Restore each db (leaving standby in rollforward pending) and redefine tablespaces / active log dir. The manual mentions:
"The following RESTORE DATABASE command options should be avoided when setting up the standby database: TABLESPACE, INTO, REDIRECT, and WITHOUT ROLLING FORWARD."
My restore command won't use any of these options.
- Start HADR on primary/standby.
Questions:
When deactivate db / stop hadr command is issued on primary, does db2 make sure all log records have been replayed on standby prior to stopping it (SYNC mode)?
Is it ok to restore backup from primary on primary and backup from standby on standby and start HADR or should I restore primary, take a new backup (containing new location of tbs/active logs) and use it to reinitialize standby?
What I'm planning to do is:
- Deactivate db / stop hadr on primary and standby and rollforward db on standby. (db's are in peer state prior to stopping hadr)
- Take offline db backup from primary and standby
- Restore each db (leaving standby in rollforward pending) and redefine tablespaces / active log dir. The manual mentions:
"The following RESTORE DATABASE command options should be avoided when setting up the standby database: TABLESPACE, INTO, REDIRECT, and WITHOUT ROLLING FORWARD."
My restore command won't use any of these options.
- Start HADR on primary/standby.
Questions:
When deactivate db / stop hadr command is issued on primary, does db2 make sure all log records have been replayed on standby prior to stopping it (SYNC mode)?
Is it ok to restore backup from primary on primary and backup from standby on standby and start HADR or should I restore primary, take a new backup (containing new location of tbs/active logs) and use it to reinitialize standby?
↧
could you please answer..
1. what are the ways of loading data into table?
2. different ways of Refreshing of data (considering tables have same structure)
3. What are the types of load operations?
4. What are the reasons for getting -904 Sql error.
5. What are threads and Triggeres.
6. Is it possible to add column in the middle of the table using ALTER TABLE?
7. If a table has data and no indexes on it, and I want to create index on a column what is the option for creating the index.
Thanks.
2. different ways of Refreshing of data (considering tables have same structure)
3. What are the types of load operations?
4. What are the reasons for getting -904 Sql error.
5. What are threads and Triggeres.
6. Is it possible to add column in the middle of the table using ALTER TABLE?
7. If a table has data and no indexes on it, and I want to create index on a column what is the option for creating the index.
Thanks.
↧
↧
How To Handle Power Outages
Can anyone tell me what the best practice is for handling a data center that has excessive power outages? I've been called in now 3 times this month due to the power failing in the building my database is housed in. Obviously the APC 3000 units can only hold 'x' amount of systems for 'x' amount of time but after that time is reached, the servers just cold die. Is there a way I can have my Linux servers mainly the ones managing my database systems cleanly power off / shutdown once a threshold of battery level on the UPS is reached? Is this something the UPS must support or can it be done some other way?
↧
java problem with semicolon as statement separator
I am connection to DB2 Express-C v10.1 for windows from my java program and trying to execute two queries in a single statement. I am using db2jcc.jar to establish my JDBC connection.
I am getting :eek: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, bla bla bla bla ;BEGIN-OF-STATEMENT;<space>, DRIVER=3.63.123
If I break the two query and execute them separately it just works as expected. How can I resolve this. :o
ALTER TABLE "table name" ADD CONSTRAINT "xxx" PRIMARY KEY ("xxxxx", "xxxxx", "xxxxx", "xxxxx");CREATE UNIQUE INDEX "xxxxx" ON "xxxxx" ("xxxxx", "xxxxx", "xxxxx", "xxxxx")
I am getting :eek: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, bla bla bla bla ;BEGIN-OF-STATEMENT;<space>, DRIVER=3.63.123
If I break the two query and execute them separately it just works as expected. How can I resolve this. :o
ALTER TABLE "table name" ADD CONSTRAINT "xxx" PRIMARY KEY ("xxxxx", "xxxxx", "xxxxx", "xxxxx");CREATE UNIQUE INDEX "xxxxx" ON "xxxxx" ("xxxxx", "xxxxx", "xxxxx", "xxxxx")
↧
Record is too large 3047
Hello
I have a database of courses at a University which has 8 tables each with a unique course code that I have used as the primary key.
All tables are linked using the same key - course code.
I have a form which contains 54 fields (these 54 fields are divided into 8 tables)
However when I try to update a record using the form, I keep getting this error:
Records is too large (3047) You defined or imported a table with records larger than 4K
Please can someone help?
I'm teaching myself Access so please be kind if I'm doing something stupid
I have a database of courses at a University which has 8 tables each with a unique course code that I have used as the primary key.
All tables are linked using the same key - course code.
I have a form which contains 54 fields (these 54 fields are divided into 8 tables)
However when I try to update a record using the form, I keep getting this error:
Records is too large (3047) You defined or imported a table with records larger than 4K
Please can someone help?
I'm teaching myself Access so please be kind if I'm doing something stupid
↧
Hello
Hi everyone here,
I am new member here and wanted to greet all members, mods and admins.
Cheers!
I am new member here and wanted to greet all members, mods and admins.
Cheers!
↧
↧
Multiple Data
Question:
Trying to create a simple table or form. Consist of orders from clients. I created 2 tables. One with the client info and the other table consist of orders. I linked both tables as a relationship. My problem is where how do I do the following:
1) How do I create a form and a table where I can input orders with different items on 1 order? example: Order 1 Laptop,hardrive,keyboard
2) How do I create a form where I can input the client info and the orders he want. Orders that have several items in 1 order.
Trying to create a simple table or form. Consist of orders from clients. I created 2 tables. One with the client info and the other table consist of orders. I linked both tables as a relationship. My problem is where how do I do the following:
1) How do I create a form and a table where I can input orders with different items on 1 order? example: Order 1 Laptop,hardrive,keyboard
2) How do I create a form where I can input the client info and the orders he want. Orders that have several items in 1 order.
↧
Jet Profiler for MySQL - Professional Version
Jet Profiler for MySQL is real-time query performance and diagnostics tool for the MySQL database server. It's detailed query information, graphical interface and ease of use makes this a great tool for finding performance bottlenecks in your MySQL databases.
![]()
![]()
Get Your Copy Here With 15% Limited Discount Code: POLARICO


Get Your Copy Here With 15% Limited Discount Code: POLARICO
Quote:
http://bit.ly/Jet-Profiler |
↧
How to generate an excel(.XLS) file with a VB script?
I want to create an excel file with .xls by using VB script.
Because i want to create a DTS package for our requirement. DTS accepts excel files which has .xls extension only.
Please help me. Thanks in advance.
Because i want to create a DTS package for our requirement. DTS accepts excel files which has .xls extension only.
Please help me. Thanks in advance.
↧
OnExit trigger delays
This seems simple but I cannot get my head around it!!!!!
I have an On Exit in a s/f to bring me to a control on my m/f and to the next record, and back into my s/f.
On the 1st record, it seems to be taking 3 tabs to get it to trigger to the m/f.
Is there a way I can speed that up?
And an even bigger help to know = What is the running during this time?
(It doesn't happen on the 2nd or all subsequent records)
thanks!
(sorry - I can post code tomorrow if needed I already c&r'd and backed-up today....gotta get out of here!)
I have an On Exit in a s/f to bring me to a control on my m/f and to the next record, and back into my s/f.
On the 1st record, it seems to be taking 3 tabs to get it to trigger to the m/f.
Is there a way I can speed that up?
And an even bigger help to know = What is the running during this time?
(It doesn't happen on the 2nd or all subsequent records)
thanks!
(sorry - I can post code tomorrow if needed I already c&r'd and backed-up today....gotta get out of here!)
↧
↧
DbFacePHP for MySQL
DbFacePHP is a self-service MySQL web interface, PHP application builder and sql reporting tool. It is written in PHP and gives you the ability to administer a MySQL database and create interactive reporting applications through an intuitive web browser interface. Connecting to a database, creating a query, updating data, and creating sql reporting applications are all available through simple mouse clicks, no PHP coding required.
![]()
DbFacePHP is not another phpMyAdmin. DbFacePHP helps you talking with MySQL by some clicks without programming. You are never so easy querying, updating data and building applicaions and sql reporting for MySQL databases with DbFacePHP.
![]()
Download Your Trial Here:
Get Your Copy Here With 25% Limited Discount Code: DBFACEPH

DbFacePHP is not another phpMyAdmin. DbFacePHP helps you talking with MySQL by some clicks without programming. You are never so easy querying, updating data and building applicaions and sql reporting for MySQL databases with DbFacePHP.

Download Your Trial Here:
Get Your Copy Here With 25% Limited Discount Code: DBFACEPH
↧
Just saying Hi
Hi people ,
thought I join like minded people and educate myself . It'll take me a while to have a look around , before I post anything :).
Nice to be here :)
thought I join like minded people and educate myself . It'll take me a while to have a look around , before I post anything :).
Nice to be here :)
↧
unix shell scripting and ORACLE
Hi ,
I have generate a dynamic sql query in unix and i want to run that generated sql query on unix
box.But when i have tried to run this its shows error because ther is a space in the generated
sql...Please assist
for example:
code_list=`sqlplus -s Test/test123 <<EOF
set heading off
set pagesize 0
set tab off
set feedback off
select decode(rownum, 1, ' ', 'union ') ||'select distinct '''||trial_name||''' as Schema_Name,
viewname from '||trial_name||'.CA_DATA a where view
name not in(select distinct object_name from dba_objects a
where a.owner='''||trial_name ||''' and (a.object_name like ''CV%''))'
from (
select distinct owner as trial_name from dba_objects
where owner like 'MK%'
or OWNER like 'V%')
/
exit
EOF`
sqlplus -s Test/test123 <<EOF
$code_list ;
exit
EOF`
in this query we first connect with DB and put the sql value in the variable.
and then i want to run that variable(code_list).this variable contain the sql query.I just want to
run the quey in code_list variable .but its not runing due to spce issue in the genearated dynamic
query.
Please assist.it's a very critical request.
Thanks for you help in advance.I am waiting for ur responce.
Regards,
Vikas
I have generate a dynamic sql query in unix and i want to run that generated sql query on unix
box.But when i have tried to run this its shows error because ther is a space in the generated
sql...Please assist
for example:
code_list=`sqlplus -s Test/test123 <<EOF
set heading off
set pagesize 0
set tab off
set feedback off
select decode(rownum, 1, ' ', 'union ') ||'select distinct '''||trial_name||''' as Schema_Name,
viewname from '||trial_name||'.CA_DATA a where view
name not in(select distinct object_name from dba_objects a
where a.owner='''||trial_name ||''' and (a.object_name like ''CV%''))'
from (
select distinct owner as trial_name from dba_objects
where owner like 'MK%'
or OWNER like 'V%')
/
exit
EOF`
sqlplus -s Test/test123 <<EOF
$code_list ;
exit
EOF`
in this query we first connect with DB and put the sql value in the variable.
and then i want to run that variable(code_list).this variable contain the sql query.I just want to
run the quey in code_list variable .but its not runing due to spce issue in the genearated dynamic
query.
Please assist.it's a very critical request.
Thanks for you help in advance.I am waiting for ur responce.
Regards,
Vikas
↧
Date Criteria Help Needed
I want one form to open if the dates are between 2 defined fields on another form, if not then I want it to open another form instead.
The first form that should open if the current date falls between the 2 parameters is named frmSetPayDate
The other form that should open if the date criteria does not fall between the 2 dates is named Set TimeCards Date
The 2 fields on the other form which is named frmAutoPayrollReport
are named BeginDate and EndDate
BeginDate being the start of the date week and EndDate being the end of the date week criteria.
Something kinda sorta like this;
IfCDate is Between Forms!frmAutoPayrollReport!BeginDate and Forms!frmAutoPayrollReport!EndDate Then ' 2 fields on another form that is open
DoCmd.Open form frmSetPayDate ' Form
Else
open Set TimeCards Date' Form
CDate referes to the date now. If I got it right
The first form that should open if the current date falls between the 2 parameters is named frmSetPayDate
The other form that should open if the date criteria does not fall between the 2 dates is named Set TimeCards Date
The 2 fields on the other form which is named frmAutoPayrollReport
are named BeginDate and EndDate
BeginDate being the start of the date week and EndDate being the end of the date week criteria.
Something kinda sorta like this;
IfCDate is Between Forms!frmAutoPayrollReport!BeginDate and Forms!frmAutoPayrollReport!EndDate Then ' 2 fields on another form that is open
DoCmd.Open form frmSetPayDate ' Form
Else
open Set TimeCards Date' Form
CDate referes to the date now. If I got it right
↧
↧
SQL server
Enjoy the best weekend time pass with some awesome teams of NFL.Titans vs Bills, Ravens vs Texans, Browns vs Colts, and Cowboys vs Panthers live hd coverage on our link.You must watch and enjoy the fun of matches online on your pc's and laptops.
Titans vs Bills Live Stream
Ravens vs Texans Live Stream
Browns vs Colts Live Stream
Cowboys vs Panthers Live Stream
Titans vs Bills Live Stream
Ravens vs Texans Live Stream
Browns vs Colts Live Stream
Cowboys vs Panthers Live Stream
↧
create pdf issue with vba + report
Hello
I have the access report which is working fine when i view the report in report view ( shows as expected)
but i usually export the report, saving the report in pdf format, it used to work fine in the past and now its actually creating the report and saving the report but some part of the report is showing as # error
but when i view the report in report view its just fine and even when i right click on the report and if i try to manually create/print the report in pdf format, its just working fine but with the vba code its breaking
if i debug the code its breaking at following line
DoCmd.OutputTo acOutputReport, RptName, ".pdf", loc, False
Could you please help me figure out why its breaking at the above code
Thanks
I have the access report which is working fine when i view the report in report view ( shows as expected)
but i usually export the report, saving the report in pdf format, it used to work fine in the past and now its actually creating the report and saving the report but some part of the report is showing as # error
but when i view the report in report view its just fine and even when i right click on the report and if i try to manually create/print the report in pdf format, its just working fine but with the vba code its breaking
if i debug the code its breaking at following line
DoCmd.OutputTo acOutputReport, RptName, ".pdf", loc, False
Could you please help me figure out why its breaking at the above code
Thanks
↧
function runtime exception
I use db2 9.7.6 full edition for windows. I need develop functions which can be use on sql select expression. Functions must contain modifying sql data and handling runtime exceptions. There are two variants, but I have problems of implementations all requirments in ever variants. The first variant is implementation of sql table function, e.g.
*++CREATE FUNCTION func1 (val CHAR(20))++
++RETURNS table(result varchar(1000))++
++LANGUAGE SQL++
++MODIFIES SQL DATA++
++BEGIN atomic++
++insert into a values(val);++
++ return (select result from a);++
++END++*
It work, but I can't implement handling exception how in sql procedures. When I tried to use block "declare exit handler", I got a syntax errors. The second variant is implementation of pl/sql function, e.g.
*++CREATE OR REPLACE FUNCTION bb++
++RETURN varchar2++
++MODIFIES SQL DATA++
++AS++
++BEGIN++
++ insert into st values ('a');++
++ return 0;++
++END bb;++*
But when I tried to execute this function, I got error "SQLCODE=-740, SQLSTATE=51034 is defined with the MODIFIES SQL DATA option, which is not valid in the context where the routine is invoked". Help me please. best regards, Turkin Andrew.
*++CREATE FUNCTION func1 (val CHAR(20))++
++RETURNS table(result varchar(1000))++
++LANGUAGE SQL++
++MODIFIES SQL DATA++
++BEGIN atomic++
++insert into a values(val);++
++ return (select result from a);++
++END++*
It work, but I can't implement handling exception how in sql procedures. When I tried to use block "declare exit handler", I got a syntax errors. The second variant is implementation of pl/sql function, e.g.
*++CREATE OR REPLACE FUNCTION bb++
++RETURN varchar2++
++MODIFIES SQL DATA++
++AS++
++BEGIN++
++ insert into st values ('a');++
++ return 0;++
++END bb;++*
But when I tried to execute this function, I got error "SQLCODE=-740, SQLSTATE=51034 is defined with the MODIFIES SQL DATA option, which is not valid in the context where the routine is invoked". Help me please. best regards, Turkin Andrew.
↧