Insert statement not work for Excel file
Hi,
In my JDBC application, I have a "INSERT ..." statement to add a new recode to a Excel file. When I run this application, the statement is executed successfully(no Exception), however the excel file doesnot change at all.
I am still able to run "SELECT ..." from the excel file, I am really confused.
Anybody could help me on this?
Thanks.
How do you see that the Excel file hasn't changed?
Do a select on the new record?
Open / Reopen with Excel?
Look at the file size?
What if you close your connection? Is a change apparent then?
Similar Messages
-
GUI_UPOLOAD is not working for excel file
Hi,
I am trying to upload the data from Excel using : GUI_UPLOAD, however, my internal table is getting filled with garbage values like ####.
Could you please help me out for the same.
I am working in CRM system, this system won't have ALSM function module.
Thanks,
Sandeephi Sandeep,
You may use FM 'TEXT_CONVERT_XLS_TO_SAP ' check [Previous Post|Upload excel over 10.000 lines;
Regards,
New SAP User -
Bug: Text Search is not working for Excel spreadsheets
Hi,
We have published several Excel, Word and PowerPoint file items to our portal application content area.
However, The intermedia text search is not returning the excel files - it is working on other file formats though!
I have even tried directly issueing select from sqlplus. eg.,:
select name,filename from wwv_document$ where name like '%.XLS'
AND CONTAINS(BLOB_CONTENT,'network')>0;
Result>> No rows selected.
We are using Portal3.0.9 and 8.1.7 DB.
Thanks in advance!
RamFirstly, are you syncronizing your indexes. Newly added content is not searchable until the indexes have been synced. See the Portal configuration guide for how to do this.
Are your Excel files being indexed successfull? After indexing, are there any entries for the WWSBR_DOC_CTX_INDX in the ctx_user_index_errors view. You should be able to join via the rowid to the wwdoc_document$ table to see which docs are failing if any are. -
Encode Video Files not working for avi files
Hi,
I've been trying to convert some .avi files to apple format using Lion's native 'Encode video files' function however keep getting a 'avconvert: source file not found for source file://fileparthhere avconvert: failed to create an export session. Check setup
I can't work out why as this has worked before in Lion and works fine for other video formats. The only thing I've done is remove Final Cut Express HD and can't add it again as I don't own it anymore
Suggestions? Is there a encoder to make this work or should it work anyway?
ThanksIf you click Yes the project file will be updated when you save it. That has nothing to do with the media.
Are the Lesson and Media folders still in the Book Files folder (or whatever it's called)?
Select one of the clips in the browser and use Edit>Item Properties. One of the first lines is Source. That gives you the file path for where your media is supposed to be located. What does it say? If nothing is there, use the File>Reconnect function and point the application to where the media is located. -
Oracle text search not working for WSDL files
I have a table (resources) with blob data type column (xml_data) and I've created context type index on that column. I've XSD and WSDL files stored in that blob column.
I can search XSD and XML files with a query with contains operator. But any search on the words from wsdl file returns zero results.I am not able to perform search on wsdl file.
Please advise me whether oracle text can work for WSDL files also ?
Query details
===========
create index myIndex on resources (xml_data) indextype is ctxsys.context;
select * from resources where contains(xml_data, 'searchword') > 0
Thanks a lot,
SanthiEven though it isn't listed specifically, I can't see why it wouldn't work. The WSDL file should be a simple XML file, so in theory it shouldn't be any different to Oracle Text than the XML file that you loaded and searched successfully. Did you get any errors during indexing, and what do your tokens look like in the DR$MYINDEX$I.TOKEN_TEXT column?
Do you have a mini test case that didn't work for you? Perhaps we could play with it a bit.
Long term you might want to consider using section groups so that you can search "within" tags.
-Ron -
SQL insert statement in java with Excel file
Dear all,
I wrote a program is as the follow:
import java.io.*;
import java.sql.*;
public class handleExcel
Connection con = null;
Statement stmnt = null;
public handleExcel()
String excel = "C:\\EGS\\app_files\\info_update_form_exported_data.xls";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String str="jdbc:odbc:DRIVER=Microsoft Excel Driver (*.xls);DBQ=" + excel + ";";
String sql = "insert into [Sheet1$] (Name, Age, Test1, Test2, Test3) values ('mary','16','aa','bb','vv')";
con = DriverManager.getConnection(str, "", "");
stmnt = con.createStatement();
stmnt.executeUpdate(sql);
catch(Exception e)
System.out.println("con is error!!");
e.printStackTrace();
public static void main(String[] args)
handleExcel TestHpc = new handleExcel();
But when I run it, the error is as the follow:
java.sql.SQLException: [Microsoft][ODBC Excel Driver]
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
at hk.gov.edb.util.handleExcel.<init>(handleExcel.java:31)
at hk.gov.edb.util.handleExcel.main(handleExcel.java:97)
Please help me to solve this problem. Thank you so much for your help!
Regards,
kzyoHi
You can use the[b] jakarta POI api in order to read/write Excel file from java. Pure Java, no drivers nedeed.
I tested and ok.
Hope this helps -
SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW
Dear Experts,
We have connected our 9i db with Sybase db using Hs connectivity.
and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
select Into (variable) is not working.
Please help to resolve the select into statment which is in BOLD in the below routine
PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
Thanks & Regards
Eidy
PROCEDURE SRBL_INSERT IS
CURSOR SRBL IS
SELECT impno,impcod,impnam
from oracle_table1 a, oracle_table2 b
WHERE a.impcod=b.empcod
v_srpcod varchar2(5);
BEGIN
FOR rec in SRBL loop
begin
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
exception when no_data_found then
v_srpcod:=null;
end;
END LOOP;
END;
Edited by: Eidy on Aug 16, 2010 11:28 AMhellow
try this.
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
v_srpcod := v_impcod ;
........ -
File.execute() not working for bat file
Dear all,
The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog of the application EndNote. I’m not certain whether the FM clipboard (supported by the copy/cut/paste methods for Doc) really fills into the Windows Clipboard also.
In the PhotoShop script forum I found the idea how to do this.
#target framemaker
// note the blank in the path
copyToWinClipboard ("E:\\_DDDprojects\\FM+EN escript\\FM-11-testfiles\\BibFM-collected.rtf");
function copyToWinClipboard (text) {
var theCmd, clipFile = new File(Folder.temp + "\\ClipBoardW.bat");
clipFile.open('w');
// theCmd = "echo \"" + text + "\" | clip"; // this doesn’t help either
theCmd = "echo " + text + " | clip";
clipFile.writeln (theCmd);
clipFile.close ();
clipFile.execute ();
Running this script provides a short flicker (the command prompt), but the clipboard does not contain the expected string. However, when double clicking on the generated I:\!_temp\ClipBoardW.bat the clipboard is filled correctly.
IMHO the execute method does not work correctly for bat files. In another area of my project-script i run an exe file with this method correctly.Hi Klaus,
sorry for my late response.
execute definitely works witch batch-files
Here's a "batch" - example you can test.
There are two methods to prevent window from closing:
"|more" - kind of pagebreak
"pause"
var oTemp = app.UserSettingsDir + "\\tmp";
var MyDosCommand = "ipconfig.exe /a|more";
var MyPath = new Folder (oTemp);
if (!oTemp.exists)
var MyPath = new Folder (oTemp);
var lFehler = MyPath.create();
oTemp = oTemp + "\\" +"nw.bat";
var MyFile = new File (oTemp);
MyFile.open ('w');
if (MyFile.error > "")
alert("ERROR");
MyFile.writeln(MyDosCommand);
MyFile.writeln("pause");
MyFile.close();
MyFile.execute(); -
"Open With" CS3 not working for JPEG file
Operating system is XP. I am trying to get CS3 to automatically open all JPEG files when I double click on them in windows explorer.
I open windows explorer, right click on the image that I want to open, then click "open with" ....
...at this point CS3 is not one of the choices on the "open with" menu so I already smell a problem ....
..... so I click "choose program" and navigate to the adobe photoshop cs3 folder and point to photoshop.exe, then click the "always use the selected program" box, click open, and bada-boom, bada-bing, the image opens in photoshop CS3, right? WRONG.
The image opens in the Quicktime Picture Viewer program and NOT IN PHOTOSHOP CS3.
I feel that I have entered the Twilight Zone, otherwise known as The Adobe Messed Up Someting In The Registry Upon CS3 Install Zone. Does anyone have any hints on how to get PS CS3 working as the default program for JPEGs when I double click them from explorer on my XP computer?
Thanks,
MarkAfter a long search I found the answer:
To associate all jpeg files with Photoshop CS3 so that they will open into CS3 when double clicked:
Click Start, Run and type in: Control Folders.
Click the file Types Tab.
Wait for the list of file types to populate.
Single click on the jpeg file type.
Click the Advanced button.
Highlight open and click the edit button.
Browse to the location of photoshop.exe in the CS3 folder.
A few OK's and you are done.
AND ANOTHER THING .........
After the change above was made, jpg files would open directly to photoshop cs3 when doubleclicked, but the maintained the same goofy quicktime pictureviewer icon when viewed in windows explorer. To change the icon for jpeg files displayed in all folders to the photoshop icon, do this:
Start / My Computer
Click Tools at the top of the screen.
Click folder options .... then the file types tab
Click on jpeg in the list and click the advanced button
Click change icon and browse to the photoshop.exe for CS3
A list of ocon choices will appear .... I chose the second row first icon
A couple of OKs and you are done -
"Automatically Write Changes Into XMP" Not Working for DNG Files
Hello,
I am needing to update DNG/JPG file pairs with keywords that I add in lightroom. The following is the problem that I am encountering.
When the image consists of only a JPEG file (ie. I had my DSLR only snap a jpeg and not an associated DNG), and I add one or more keywords to the file in Lightroom, these are written / saved immediately in Lightroom and are visible immediately in the 'tags' column for that image in windows explorer. Very useful and important functionality for my workflow.
However, when the image consists of both a JPEG and a sister DNG (i.e.,snapped simultaneously by my DSLR), and I try to add keywords to these (treated at this point as a single image by lightroom) then Lightroom does not record the keywords into either of the two files and consequently no tags are visible in windows explorer. I have confirmed this apparent problem with a seperate image metadata utility software, and am hoping that it's just something simple that I am missing.
Also "Automatically Write Changes Into XMP" is selected and I have also tried manually both: "right click," "metadata," "write metadata to file;" and "right click" "update DNG preview and metadata" and the problem persists.
Hopefully someone has encountered something similar and can point me in the right direction.
Thanks in advance.@Eric: hitting cntrl+s works but can be tedeous on large galleries. I've been doing this but it can be a pain.
@Jeannine: different topic than this thread but to answer anyways... Lightroom automatically saves all changes into your catalogue. You never need to dave your changes (here's the kicker though) as long as you do not move the original file. If you
move the file than lightroom won't know that it's the same image as the one you've edited. Once you are done editing your image you will need to "export" the image to a new file (you don't wan to overwrite the original). If you don't export than only lightroom will have your edits. Lightroom is "non-destructive" Which means that it doesn't touch your original photo. Lightroom keeps a text file containing the instructions on what you did to make the edited version. Since your changes are just text inatryxtions you have to "export" the image to get your final image in a version you can put online, print, etc. But to answer your original question, I think you prob moves the original image. If not, could you give us more info? -
Preview is not working for MEdia files
Suddenly whenever I would like to have a quick look for any video file via (Space bottom) its not working, keep giving that "Loading preview" but never show the video.
i am using quick time X.
any help
mohammadThere are quite a few different settings that you can choose from when converting a RAW file to a DNG. Without knowing what settings you set up in LightRoom there's no way to tell why your images aren't importing properly.
Roughly speaking, a linear DNG is one where the first part of the RAW conversion process (called debayerising or demosaicing) has already been done by Adobe.
Ian -
Simple Insert Statement Not Working
This problem is just driving me crazy. I dont know what I m
doing wrong here. The code works fine on my localhost but giving
problem on the live site. It is a simple insert statement like
this:
insert into tblSubImages(productid, title, subdescription,
image, place)
values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#',
#form.place#)
The error I m getting looks like this:
Syntax error in INSERT INTO statement.
The error occurred in
D:\Hosting\davedhillon\superprinters\admin\addaditional.cfm: line
11
9 : <cfset uploadedImage = cffile.serverfile>
10 : <cfquery name="insertadditional"
datasource="#super.dsn#">
11 : insert into tblSubImages(productid, title,
subdescription, image)
values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#')
12 : </cfquery>
13 :
SQL insert into tblSubImages(productid, title,
subdescription, image)
values(1,'ewr','werw','FamilyRoomBedroom.jpg')
DATASOURCE davedhillon_accesscf_super
VENDORERRORCODE 3092
You can see it is the simple insert statement which I have
worked with so many times. Why has it started giving problem all of
a sudden?
Thank youTry copying and pasting the SQL statement produced in the
error into your DB's query analyzer and try running it, as it might
produce a more useful error message so you can see where the
problem exists in the SQL statement. Also, I think I've seen that
3092 code before and it means there is a reserved word violation so
cf_dev2 solution will probably solve it.
CoolJJ -
I cannot get my thunderbird box to work since upgrade. addons not working for larger files
When I try to use box for larger attachments ,it is not working and just keeps trying to load . I have checked my box account and spoken to there tech and he said it is not on their end ?
I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
Use the AirPort Utility to configure the Time Capsule.
One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router. -
Quick look not working for office files from mail
I installed the new Microsoft Powerpoint on my ipad to check it out. I didn't really like it so I uninstalled it. Now when I am in mail and try to view a Powerpoint presention (or any other office file), quick look opens with just the name and size of the file rather than letting me view the file. I am assuming installing Powerpoint somehow disabled Quick View for those files. How do I fix this? I really need to be able to read office files from Mail on my ipad!!
It sounds like you may have 2 different programs that support quicklook differently. I suspect the .doc files are different formats that are using one or the other application.
A quick test - select a file with the full preview. Get info on it in the Finder (File > Get Info) see what application it is set to open with by default. I suspect this will be TextEdit or MS Word. Compare this to a file that has no preview in quicklook. Change over the default application to the other application and see if the preview appears.
My understanding is that the software has to be aware of quick look to parse the document and create the preview. It could be that one of the softwares needs an update, or is too old to support quicklook.
you should be able to see the version number by opening the application and using the About menu under the Application menu. Post them here if the above doesn't work.
You may also compare the 'Kind' in the info dialog, it could be that they are slightly different formats. Opening and saving may generate the previews (keep the originals if you do this!) -
QuickLook not working for SVG files
Hi,
I get a blank white rectangle when I QuickLook SVG files. Is it working for anyone else?
I'm testing with this file, which renders correctly in Safari, and shows a preview in Finder. I'm running OS X 10.10.2.
qlmanage -d 1 -p SVG_logo.svg says that it's using the Web.qlgenerator.Apple closed my radar as a duplicate of #19639311.
A quick google search revealed that this same bug is affecting html files as well.
http://apple.stackexchange.com/questions/169948/updating-to-os-x-10-10-2-broke-q uick-look-previews-for-html-files
10.10.2 quick look broken for HTML files
Maybe you are looking for
-
ITunes does not open in 1 user account
IiTunes says it's not compatible with this version of OS, in 1 user account and not in the others. Same thing in iPhoto. Please help.
-
MB_DOCUMENT_BADI not triggring in ECC 6.0 version
Hi All, We are upgrading our SAP R3 from 4.6c to ECC 6.0. In the new system, Transaction SE18 now has two options 1. Enhancement spot 2. BAdI Name When I display my BADI MB_DOCUMENT_BADI Attributes tab shows BAdI migrates to enhancement spot MB_GOODS
-
dear friends I am interested to complete my certification for 9i platform. I have read the book tewice. If anybody have latest dumps then please farward me at irfanahmad697=yahoo,com (plz correct it). Mostly testking is the more popular dumps in this
-
Question : unable to open iTunes with error code 13010
Hi all, I recently encounter the problem with opening the iTunes software. While iTunes opening, it always fail and pop up a message something like "can not open iTunes (13010)" (I use non-English version iTunes). Even I delete the iTunes database an
-
Help me with CL_GUI_ALV_GRID
Hi There are so many fields in LVC_S_FCAT and LVC_S_LAYO. Anyone can tell me which fields are important and used most frequently. Edited by: Alex Zhang on Aug 20, 2008 5:32 AM