Insertion wizard problem.....
As I said before i am now php mysql expert and so i user the
wizards and one problem i am having is that when i suggest a page
to redirect to after say adding a record, i run the page and fill
the form but it does not redirect. WhAts going on?
Thanks kaliappan for reply
i get it dynamically in a form but how code i make the update works as
SQL> UPDATE WH_T_ITEMS
2 SET BALANCE_QTY = 111 --:WH_I_ITEMS.BALANCE_QTY
3 WHERE WH_T_ITEMS.STORE_ID = 1 --:WH_INVENTORIES.STORE_ID
4 AND TRANSACTION_SERIAL = 1 --V_TRANSACTION_SERIAL
5 AND ITEM_SERIAL = 1 --:WH_I_ITEMS.ITEM_SERIAL;
1 row updated.
SQL> SELECT * FROM WH_T_ITEMS;
ITEM_SERIAL STORE_ID TRANSACTION_SERIAL ITEM_QTY UNIT_PRICE ITEM_PRICE BALANCE_QTY IS_OPEN WIT
2 1 1 2585 142175 55 585
3 1 1 659 367722 558 585
1 1 1 4558 11691270 2565 111
Similar Messages
-
Single record insert performance problems
Hi,
we have on production environment a Java based application that makes aprox 40.000 single record Inserts per hour into a table.
We ha traced the performance of this Insert and the medium time is 3ms, that is ok. Our Java architecture is based in Websphere Application Server and we access to Oracle 10g through a WAS datasource.
But we have detected that 3 or 4 times a day, during aprox 30 seconds, the Java service is not able to make any insertion in that table. And suddenly it makes all the "queued inserts" in only 1 second. That "pause" in the insertion cause problems of navigation because is the top layer there is a web application.
We are sure that is not a problem with the WAS or the Java code. We are sure that is a problem with the Oracle configuration, or some tunning action for this kind of applications that we don´t know. We first thought it could be a problem with a sequence field in the table. Also, a problem when occurs the change of the redo log. But we've checked it with our DBA and this is not the problem.
Has anybody any idea of what could be the origin of this extrange behaviour?
Thanks a lot in advance.
Jose.There are a couple of things you'd need to look at to diagnose this - As Joe says it's not really a JDBC issue from what we know.
I've seen issues with Oracle's automatic SGA resizing causing sporadic latency in OLTP systems. Another suspect would be log file sync wait events, which are associated with commits. Don't discount the impact of well meaning people using tools like TOAD to query the DB - they can sometimes cause more harm than good.
Right now I'd suggest you run AWR at 10 minute intervals and compare reports from when you had your problem with a time when you didn't. -
Update record form wizard problems
I have an update form right after my log in page, but I guess my id is not getting carried to it. So everytime a user tries to update his record it says "No Primary Key Column was set"
I used the update form wizard to create the update form and the log in form wizard for logging in. I checked the URL parameter and selected the right field in Primary Key Column in the update form wizard. You can actually update the record if you select "entered value" in Primary Key Equals and put a number against it, but not otherwise.
Am i missing something. Im a complete novice so any advice is appreciated.I see this problem posted in lots of places - hopefully this will help someone...
I had put the form on the page myself and filled in the filename in the "action" setting for the form.
If the wizard creates the form, it uses...
for the action value which maintains the get parameters that you passed from the other page. The "setPrimaryKey" function then has both that GET value (so it doesn't lose track of which record it's working on) and the POST information coming in from the form.
I couldn't understand how my page had the primary key information the first time in but not when I submitted the form... this was the reason. It never affected the insert part of things because that doesn't rely on an existing primary key. -
Labview 2013 report generation toolkit word 2010 insert table problem
Hi,
I am currently evaluating LV2013 with respect to the report generation toolkit for use with word 2010. My Vi/program won't insert the correct table and gives me an error message. see below:-
Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table.vi->NI_Word.lvclass:Append Text Table to Report.vi->Word Table save.vi
I have since run the following word example.vi provided by NI within LV2013 office examples:- Growable table.vi. this gives me the same error!
Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table.vi->NI_Word.lvclass:Append Text Table to Report.vi->Growable table.vi
It would seem that regardless of my own Vi there is a fundamental problem in the office example vi.
I have found examples of a similar problem in LV2011/2012 but the work around code doesn't seem to match the LV2013 vi's code for a direct replacement.
Can anyone help/shed some light on this?
Thanks in advance,
Dan.Because the upgrade of Word from 2007 to 2010 I needed to upgrade an existing application from LabVIEW 2009 to 2013. This didn't work because of the insert table error. I discovered that the problem is the vi called "Word_Insert_Table.vi" located in the ..Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\addons\_office\_wordsub.llb. There is a "Cut" command implemented, this command removes the created cell instead of clearing it. Therefore the table will be filled half and then returnes with an error. I have removed this command. I have posted the changed vi (LV 2013).
Attachments:
Word_Insert_Table.vi 30 KB -
I have a problem while executing an insert-statement from an ASP-script.
The problem is, that a statement like :
Insert into test(test1,test2) values('testing','testagain')
inserts 2 identical records instead of just 1
I'm working with Oracle 8i on win98
Any solutions ?
JesperHi,
You please check the asp code whether the insert is inside a loop. Check whether are you calling the form again. You please check whether are you doing refresh for the same form.
These are the possible places where these type of problem may occur.
bye -
DB2 Insertion Ampersend problem:
Hi Guys,
I have been stuck up with a problem. we are implementing BPM JDBC to JDBC scenario.
the receiver DB is DB2 (AS400).
The sender side payload contains special Characters like Ampersand (&), now when we try to insert these field into the Revier its giving problem. Below Error occcurs:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'UIINV' (structure 'Statement1'): java.sql.SQLException: [SQL0104] Token & was not valid. Valid tokens: ) ,.
We have properly converted the source '&' value into '&' .
Below is the Receiver Structure for the Tag which is failing to insert and above error Occurs:
Actual Data for the field is CKQ-QUART-COOKIES&CREAM .
In the XML payload we have converted the value into below format:
<INDESC hasQuot="no">U&'CKQ-QUART-COOKIES&CREAM'</INDESC>
This is not inserting into the DB and above exception is occuring in the Adapter Level.
Regards,
Senthilprakash.
Edited by: senthilprakash selvaraj on Dec 12, 2008 2:49 PM
Edited by: senthilprakash selvaraj on Dec 12, 2008 2:50 PMHi,
& is a special character in XML hence use & instead of &.
Check this link.
[http://www.devx.com/tips/Tip/14068]
Thanks,
- Gujjeti. -
Flash CFGRID Insert Row Problem
I think others have posted similar issues, but I've been
unable to find a resolution to it. I have a Flash grid in an
Accordion page that I need users to be able to insert data into.
Most of the time, the grid will be empty when the user enters data.
I've tried using the picturebar insert button, I've tried using
onClick="GridData.insertRow(mygrid);". I even tried a fairly
extensive script that seemed to be a timer that would detect a
double click to insert. None of these work well. The
onClick="GridData.insertRow(mygrid);" is the best in that I only
have to click a column field about 3 times before I can enter data
in the field. Multiple clicks to activate the field is just not
useable.Hi,
Thanks for the reply, I have the same problem. The suggestion you gace did not work as it works only for flash grids. I am using an HTML grid.I just want to set a default value of OLST to the Client column. Please help!
<cfgrid name = "FirstGrid"
format="html"
height="320"
width="580"
font="Tahoma"
fontsize="12"
query = "rsIncidentTypes"
bgcolor="orange"
selectmode="edit"
selectcolor="teal"
delete="true"
insert="true"
insertButton = "Insert a Row"
deleteButton = "Delete selected row"
onChange="FirstGrid.dataProvider.editField(FirstGrid.selectedIndex,'Client', 'OLST');"
> -
hi,
i want to insert the date into my emp table.
my query is :
INSERT INTO emp (empid,empname,creation_date)
VALUES (1,'JOE','12/05/2007');
i run this query in my oracle 10g Express edition.
but it will throw the error like this
ORA-01843:not a valid month.
how to insert the date like this format in oracle 10g.
please help me.
Thanks in advance.I think it only causes a problem if you to_date('01/01/07', 'dd/mm/yyyy') - that returns '01/01/0007', whereas to_date('01/01/07', 'dd/mm/rrrr') returns '01/01/2007'.
But, following on from all the y2k problems, who on Earth would NOT specify their years as a four digit number? Why rely on implicit conversions!
I always use to_date('01/01/2007', 'dd/mm/yyyy') - explicitly stating my year in four digits, not two, and I've never had a problem. -
need help urgently,am useing microsoft access as my database,whenever i try to insert data into the table i have in my database it tells me syntax error in INSERT INTO statement.please how do i overcome this problem.my code is below.thanks in advance.
'\n'
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class NewCustomerRecord extends JFrame{
private JTextField firstnameF,othernameF,phoneF,addressF,depositF,currentF,dateF;
private JButton registerbutton;
private Connection con;
private Statement st;
private ResultSet set;
private PreparedStatement stat;
public NewCustomerRecord(){
//super(f,"",true);
JPanel panel = new JPanel();
panel.setLayout(null);
JLabel firstL = new JLabel("First Name:");
firstL.setBounds(5,15,80,20);
panel.add(firstL);
firstnameF = new JTextField();
firstnameF.setBounds(70,15,100,20);
panel.add(firstnameF);
JLabel otherL = new JLabel("Other Names:");
otherL.setBounds(175,15,80,20);
panel.add(otherL);
othernameF = new JTextField();
othernameF.setBounds(255,15,100,20);
panel.add(othernameF);
JLabel phoneL = new JLabel("Phone No.:");
phoneL.setBounds(5,40,80,20);
panel.add(phoneL);
phoneF = new JTextField();
phoneF.setBounds(70,40,100,20);
panel.add(phoneF);
JLabel addressL = new JLabel("Address:");
addressL.setBounds(185,40,80,20);
panel.add(addressL);
addressF = new JTextField();
addressF.setBounds(255,40,100,20);
panel.add(addressF);
JLabel depositL = new JLabel("Deposit:");
depositL.setBounds(5,65,60,20);
panel.add(depositL);
depositF = new JTextField();
depositF.setBounds(70,65,100,20);
panel.add(depositF);
/*JLabel currentL = new JLabel("Current Bill:");
currentL.setBounds(135,65,80,20);
panel.add(currentL);
currentF = new JTextField();
currentF.setBounds(205,65,50,20);
panel.add(currentF);*/
JLabel dateL = new JLabel("Date:");
dateL.setBounds(185,65,50,20);
panel.add(dateL);
dateF = new JTextField();
dateF.setBounds(255,65,100,20);
panel.add(dateF);
registerbutton = new JButton("Register Customer");
registerbutton.setBounds(115,100,145,20);
registerbutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
insertRecord();
dispose();
registerbutton.setMinimumSize(new Dimension(50,20));
panel.add(registerbutton);
add(panel);
setSize(400,200);
setDefaultCloseOperation(EXIT_ON_CLOSE);
public void insertRecord(){
double bal=0.0;
String s=depositF.getText();
double dep = Double.parseDouble(s);
bal+=dep;
//String ss=dateF.getText();
//short dd=Short.parseShort(ss);
String ss=Double.toString(dep);
String bb=Double.toString(bal);
String fullName=firstnameF.getText()+"\t"+othernameF.getText();
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:sparkletransaction","","");
String insert="INSERT parsonaltransaction(date,name,phone,addres,deposit,balance)";
insert=insert+" VALUES(?,?,?,?,?,?)";
stat=con.prepareStatement(insert);
stat.setString(1,dateF.getText());
stat.setString(2,fullName);
stat.setString(3,phoneF.getText());
stat.setString(4,addressF.getText());
stat.setString(5,ss);
stat.setString(6,bb);
stat.executeUpdate();
stat.close();
catch(Exception e){
System.out.println(e);
public static void main(String[] arg){
new NewCustomerRecord().setVisible(true);
}try changing
"INSERT parsonaltransactionto
"INSERT INTO parsonaltransactionEdit: Also, should that really be parsonal, or maybe personal, or maybe even personnel? -
PHP/mySQL Insert/Update Problems
I hope someone can help because I can't find anything online
that is helping me with this problem. I can't get the Dreamweaver
controls to work when coding a PHP insert or update record page. It
looks like it creates the code correctly but when I put them out on
my webserver and then fill out the form and click submit the page
submits and tries to use a URL string of (null)/admin/index.php
where index.php is the form page not the page I told it to redirect
to. I don't know why the (null) value keeps getting inserted into
the string either. The browser obviously can't find this URL so
gives a page cannot be displayed screen and nothing get's inserted
or updated in the mySQL database.
Any help would be greatly appreciated. This problem is
driving me crazy because I want to save time not having to hand
code things. Below is a User Authentication page using the
Dreamweaver controls that does the same thing when I try to
login.tobyd wrote:
> the page submits and tries to use a URL string of
(null)/admin/index.php
> where index.php is the form page not the page I told it
to redirect to. I don't
> know why the (null) value keeps getting inserted into
the string either.
The following two lines set the URL for login success and
failure.
> $MM_redirectLoginSuccess = "../admin_index.php";
> $MM_redirectLoginFailed = "../admin/index.php";
As you can see, they are relative paths, suggesting that the
login form
is in a different subfolder, but at the same level as
admin_index.php
and the admin folder. The (null) almost certainly comes from
the fact
that your login page is in the site root. If you're typing in
the
redirect filenames manually, use the Browse button instead.
Dreamweaver
should set the correct path for you.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Server cleanup wizard problem - unable to connect to the WSUS Server Database.
I'm trying to run server cleanup wizard.. it starts to run and then after a while it gives me this error:
The WSUS administration console was unable to connect to the WSUS Server Database.
Verify that SQL server is running on the WSUS Server. If the problem persists, try restarting SQL.
System.Data.SqlClient.SqlException -- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.
Source
.Net SqlClient Data Provider
Stack Trace:
at Microsoft.UpdateServices.Internal.BaseApi.SoapExceptionProcessor.DeserializeAndThrow(SoapException soapException)
at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, ExtendedPublicationState publicationState)
at Microsoft.UpdateServices.Internal.BaseApi.Update.SearchUpdates(UpdateScope searchScope, ExtendedPublicationState publicationState, UpdateServer updateServer)
at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetUpdates(UpdateScope searchScope)
at Microsoft.UpdateServices.UI.AdminApiAccess.UpdateManager.GetUpdates(ExtendedUpdateScope filter)
at Microsoft.UpdateServices.UI.AdminApiAccess.WsusSynchronizationInfo.InitializeDerivedProperties()
at Microsoft.UpdateServices.UI.AdminApiAccess.WsusSynchronizationInfo.get_NewUpdatesCount()
at Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetSyncInfoRow(WsusSynchronizationInfo syncInfo)
at Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetListRows()
ThanksSome questions:
Are there any other databases running on this Std Edition SQL service?
[a] Yes there are, we have Kaspersky enterprise DB, Report Server DB and local application DB.
Are there any other services running on this WSUS Server?
[b] Yes there are, we have Active Directory, Kaspersky enterprise, SQL Server 2005, and WSUS all on the same server.
How many days since your WSUS server was first installed?
[c] It's been about a year now.
What is the physical size of the SUSDB.mdf file?
[d] 9,666,752 KB
What is the hardware configuration of this machine, including disk drives?
[e] Intel Xeon 1.86, 2GB Ram, HD C: 39GB - E: 25.2, running Windows Server 2003 R2 SP2.
How many client systems are you servicing from this WSUS Server?
[f] Around 40.
What products/classifications are you synchronizing.
[g] Windows XP-vista, Windows Server 2003, Office 2003-2007, SQL Server 2005.
Okay, for starters, you have an underpowered/overextended machine running Active Directory, ASP.NET, and a database server, all on a sub 2GHz CPU with 2GB RAM, and not enough disk spindles. The machine has had WSUS running for about a year and is 9GB in size.
There's no doubt in my mind that some of your performance issues are directly related to disk and database fragmentation.
There's also no doubt that some of your performance issues are directly related to memory starvation.
I'd suggest the following long-term fixes:
1. Get a second machine. Make it a dedicated database server. Provision it accordingly to support servicing multiple database applications.
2. Lacking #1, this machine needs more memory. It also needs more disk spindles. At a minimum the databases being serviced should be on a dedicated physical drive; ideally there would be two dedicated drives allocated for supporting database services. The
For the short-term fixes, do this:
1. During after-hours time, if you don't already have one, build a temporary machine that can act as a DC/GC, while you take this machine temporarily offline.
1. Shutdown the Update Services service, SQL Server database engine, and any other services dependent on the SQL Server database engine (Kapersky, and other reporting applications). Disconnect from the network to temporarly eliminate DC traffic. (You could also shutdown the AD services, but disconnecting the network cable is ever-so-much easier.) Defragment ALL drives.
2. Restart ONLY the SQL Server service. Obtain this SQL script to Reindex the WSUS Databases.
3. Restart ONLY the Update Services service. Attempt the Server Cleanup Wizard again. Run it in two passes. Pass 1 performing everything except remove unused updates. Pass 2 running only remove unused updates.
4. After completion of the Server Cleanup Wizard, reconnect the machine to the network and resume all other services.
5. If you're able to complete #3, secure the services of a well-qualified DBA to determine if there are any misconfigurations in your SQL Server setup that would account for why your WSUS database is 9GB in size -- such as improperly configured autogrowth parameters. Based on the products you're updating and only forty clients, 9GB is about 3x the maximum size I would expect to see in a WSUS database. It's possible this is simply caused by excess unused updates, it's possible it's caused by fragmentation, it's probable it was caused by unnecessary autogrowth of the database due to insufficient update maintenance. You'll want a DBA to assist you in shrinking that database after you successfully run the Database Maintenance and Server Cleanup Wizard.
Lawrence Garvin, M.S., MCITP(x2), MCTS(x5), MCP(x7), MCBMSP
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2009) -
I am actually really new to Dreamweaver MX, so I am not sure
what I am doing wrong.
At first , I did open that " Insert Table" icon, and filled
out following values( Rows, Columns..),then Navigated to hard drive
folder and selected a logo picture, but when I
clicked OK, it gave me mistake message, it said not allowing
to share files ??? And it closed the table dialog and the programm
itself. So since then I cant open that " Insert Table" icon. Icon
is actually active and I am not on Layout view. Does anybody know
about that" sharing files" problem and how can I fix my problem?
Thank you very much!Dreamweaver MX? Wow - that's old.
Can you tell us the version #?
On a PC, go to Program Files/Macromedia/Dreamweaver MX/ and
find the
dreamweaver.exe file. Right click, choose Properties, and
then click on the
Version tab - the version number is towards the top of that
tab, like
On a Mac, get info on the Dreamweaver App, and I believe it's
right on that
panel.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"krestik_2" <[email protected]> wrote in
message
news:fn9ges$btg$[email protected]..
>I am actually really new to Dreamweaver MX, so I am not
sure what I am
>doing
> wrong.
> At first , I did open that " Insert Table" icon, and
filled out following
> values( Rows, Columns..),then Navigated to hard drive
folder and selected
> a
> logo picture, but when I
> clicked OK, it gave me mistake message, it said not
allowing to share
> files
> ??? And it closed the table dialog and the programm
itself. So since then
> I
> cant open that " Insert Table" icon. Icon is actually
active and I am not
> on
> Layout view. Does anybody know about that" sharing
files" problem and how
> can I
> fix my problem?
> Thank you very much!
> -
Using DW 8.0.2 on MAC OSX 10.5.4.
Installed "Insert a QuickTime Movie" extension from Adobe
Exchange using Ext. Manager. (extension worked)
Following that my Insert Bar is now labeled 'Common' and has
only the Common tab with only the first 4-5 icons. Same scenario in
the 'menu' configuration. Attempts to customize show only the
common objects available.
Also can no longer insert layer from main menu.
Have reinstalled DW 8 and updated to 8.0.2 with no change.
How can I fix this???I'm pretty sure this is part of the preferences file. If you
go to your Library->Preferences and search for the .plist file
which has the name Dreamweaver in it you can drag that to the trash
and then restart DW. It will take longer to restart after doing
this because OSX will need to create a new preferences file, but
this should solve problems with the menus. -
Updating or inserting database problem
Hi,
I have a problem when i try to insert or update records within database from java, i m using ms access.
I can retrive the data from the table but when i insert or update it , the code executes without any error but has no effect on the table.
I would be thankful if u guyz help me out .
The code is below :
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//loading drivers
Connection conn = DriverManager.getConnection("jdbc:odbc:client");
Statement s = conn.createStatement();
ResultSet rs = s.executeQuery("insert into client (name,hours,minutes) values ('ik',2,34)");
/* int c = s.executeUpdate("insert into client (name,hours,minutes) values ('ik',2,34)");
rs.absolute(2);
rs.updateString("Name","dla");
rs = s.executeQuery("commit");*/
rs.close();
s.close();
conn.close();Thanks for reply, i appreciate the help u guyz hav givin me
they wer helpful upto some extent but the actual problem with
my coding was that statment s variable is used with to different
sql queries ,
when i used s variable with a single query the base table was affected with the coding changes.
Thanks once again guyz....! -
Alignment/image insertion inTextArea Problem
can any one tell me how can I set the allignment for TextArea. And how to insert an image in TextArea.
Can you tell me about Alignment in Simple TextArea not in JTextArea.I tried the Component class field ALIGNMENT_RIGHT LEFT OR CENTER, but can not solve this problem. can u help me.
Maybe you are looking for
-
I can't see the latest emails I sent in the sent items in Apple mail. Also, I am not able to see my old emails in the inbos folder. Can someone please help me out with this?
-
Playing video from IPhone app.
Hi All, I am building simple game app for iphone. I am thinking of adding video to the game app. Does anybody have url links for sample code for Video Streaming from IPhone app? What kind of Video format is suitable for IPhone App? Thanks
-
What happened to my Adobe Connect room?
Apologies if this is the wrong place to post, but I can't find anywhere else! I keep getting an error message saying my Adobe Connect room is down for maintenance. I thought it was going away in December, but not now?? I sure hope you guys are not
-
Can't see the bottom of my notification center with IOS7 on iPhone 5
Can't see the bottom of my notification center with IOS7 on iPhone 5.
-
Known Intel Bug with iDVD?
I just bought a brand new Intel iMac about two months ago and last night I tried burning my first DVD with it. The DVD ejected and there was nothing on it. It did not give me the usual...your dvd has been successfully completed would you like another