Help with adding a table and column which are strings to a database
I want to add a column and table into a database.
I want to do this both for the Table and Column.
I want (Data) and Test to be replaced with my strings.
String MyData = "My column"; // This will change at times.
String MyData2 = "My table";
String sql = "Insert into Test (Data) Values (?)";
How can I change (Data) and Test to add variables "MyData" and "MyData2".
Thanks.
This is a fairly short intro to JDBC that gives the details:
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html
Similar Messages
-
Table and views which are afftected during the SAP license post processing
Hi,
can anyone tell me those table and views which are afftected during the SAP license post processing process in SAP 4.7 installation on oracle.
Regards,
Abhishekhi
there is no table active with the name MLICHECK
the table is not active in the dictionary
what to do now?
i want to see the license data of the sap system now in the table view.............. -
Table and columns separation in string
Hi,
I am having one column data containing combining table and column names like
act_hand_table.work_order
i want seperate table and column names
i want separte . filed
Please help me
Regards,
KiranKiran Bathula wrote:
Hi,
I am having one column data containing combining table and column names like
act_hand_table.work_order
i want seperate table and column names
i want separte . filed
Please help me
Regards,
KiranTry
SQL> ed
Wrote file afiedt.buf
1 with t as
2 (select 'act_hand_table.work_order' col from dual)
3* select substr(col,1,instr(col,'.',1)-1)tbl,substr(col,instr(col,'.',1)+1) from t
SQL> /
TBL SUBSTR(COL
act_hand_table work_orderHope this helps
Regards,
Achyut -
Need help with adding a table-like chart
Post Author: lindad
CA Forum: Charts and Graphs
I am trying to see if there is any way to add a table to a Crystal Report (using Crystal 10) that looks like a table you would create in MSWord. We need an easy way to remove and add columns in a table and right now using drawn lines and moving fields to realign every time is a real pain.Post Author: lindad
CA Forum: Charts and Graphs
The table includes multiple rows and columns where the fields are from different places in the db. Also, the headers are just txt fields that do not associate with a specific field.
If I add a border to the fields, I still need to manually move them horizontally and vertically to realign if I add or delete a column or row. As you know in MSWord, if you add or remove a column or row in a table, the table automatically resizes itself and makes the fields line up correctly.
Is there any way to do this in Crystal? -
Need a BW table to find ECC table and feilds which are loading in to BW
Hi all,
do we have any table to find what are the tables and feilds data loaing form ECC to BW ?
Regards
KiranChances are, the field name will have the same name in the extract structure. You could use SE11 and scan the extract structure for the field.
You could also ask the user what the data element behind the field is, and then, also in SE11, do a where-used on the data element, to see if it is in one of your extract structures. -
Need help with adding formatted text and images to Crystal Report?
Here's my scenario:
I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
1) Pass HTML or RTF to the report
Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
2) Create each add as a subreport and append it programatically
I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
3) Pass an Image to the report
I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
Thank you.Hello Pavel,
I would got the third way.
You can use dynamic images in your report.
Just by changing the URL to the image the image can be changed.
Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
or directly here
[Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
[Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
[codesample for .NET|https://boc.sdn.sap.com/node/6000]
Please also use
[Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
[Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
Hope this helps
Falk -
Case sensitive table names and column names in 8i or 9i databases
Hi everybody,
I've got a couple of business-side colleagues who insist that Oracle table and column names are case sensitive. That is, there is a setting in the set up of a database that lets you pick if table and column names are case sensitive. For example, this would mean that there could be a table named EMP in a given schema schema plus a table named emp in that same schema.
Can this be true? I'd be surprised of course, but I've been surprised before.
Thanks for any direction.
-- Bill LogginsYou can do it, but I would avoid it like the plague.
SQL> create table "a" (b date);
Table created.
SQL> create table "A" (b date);
Table created.
I think I would refuse to work on a database where this has been used ! -
Trying to use 2 different Dimension tables and make a hierarchy on some columns which are split into these dimensions .. how do I do that
If you need to make a hierarchy in an Attribute view you need to have all relevant fields/columns in the same Dimension table..
-
I don't understand why I can't download for free the apps designed by Apple, such as Pages and Numbers, which are free with iOS 7. Can anyone help me?
The apps are free with iOS 7 if you purchased a new device after September 2013. The apps do not come free just because you are running iOS 7 now. Did you purchase or receive a new iPad recently?
If you did, are you using the same Apple ID to get the apps that you used to activate the iPad? If you are, sign out of your ID, restart your iPad, sign in again and go back to the App Syore and see if the apps show up as free.
Settings>iTunes & App Store>tap your ID and sign out. Restart the iPad and go back to the settings and sign in again. -
Tables and Columns used in Universe (BO 6.5)
Hi All,
Please help me out with the below queries:
1. Is there any automated way to find out which report is using which universe? (may be through a SQL fired in BO repository)
(Note: As per the BO Documentation, OBJ_X_DOCUMENTS This is the only table in the document domain. It stores the binary content of all documents sent to the repository (through the user actions Publish to corporate documents, Send to users or Send to Broadcast Agent). The document contents are stored as BLOBs (Binary Large Objects) stored in slices.)
2. I need to identify the universes which use certain tables and columns.
I fired the following SQL in BO repository:
SELECT
UNV_UNIVERSE.UNI_FILENAME,
UNV_UNIVERSE.UNI_LONGNAME,
UNV_TABLE.TAB_NAME,
UNV_COLUMNS.COLUMN_NAME
FROM UNV_UNIVERSE, UNV_TABLE,UNV_COLUMNS
WHERE
UNV_UNIVERSE.UNIVERSE_ID = UNV_TABLE.UNIVERSE_ID
AND UNV_TABLE.TABLE_ID = UNV_COLUMNS.TABLE_ID
But as 'UNV_COLUMNS' table is empty, no data is returned. My question is is this table supposed to be empty in BO repository?
Is there any other way to find out this (identify the universes which use certain tables and columns)?
Many Thanks & Regards,
SandeepHi,
Please find the below list of tables created in the BO repository, which helps you to retrieve the information related to reports, universes, users e.t.c.
OBJ_M_ACTOR
OBJ_M_ACTORDOC
OBJ_M_ACTORLINK
OBJ_M_CATEG
OBJ_M_CONNECTDATA
OBJ_M_CONNECTION
OBJ_M_DOCAT
OBJ_M_DOCATVAR
OBJ_M_DOCCATEG
OBJ_M_DOCCST
OBJ_M_DOCUMENTS
OBJ_M_GENPAR
OBJ_M_MAGICID
OBJ_M_OBJSLICE
OBJ_M_REPOSITORY
OBJ_M_RESERVATION
OBJ_M_RESLINK
OBJ_M_TIMESTAMP
OBJ_M_UNIVCST
OBJ_M_UNIVDBCST
OBJ_M_UNIVERSES
OBJ_M_UNIVSLC
OBJ_M_USRATTR
OBJ_X_DOCUMENTS
UNV_AUDIT
UNV_CLASS
UNV_CLASS_DATA
UNV_COLUMNS
UNV_COLUMN_DATA
UNV_CONTEXT
UNV_CONTEXT_DATA
UNV_CTX_JOIN
UNV_DIMENSION
UNV_DIM_OBJ
UNV_JOIN
UNV_JOINCONTENT
UNV_JOIN_DATA
UNV_JOIN_OBJECT
UNV_OBJCONTENT
UNV_OBJECT
UNV_OBJECT_DATA
UNV_OBJECT_KEY
UNV_OBJ_COLUMN
UNV_OBJ_TAB
UNV_PROPERTY
UNV_PROP_DATA
UNV_PROP_TAB
UNV_RELATIONS
UNV_TABLE
UNV_TABLE_DATA
UNV_TAB_OBJ
UNV_TAB_PROP
UNV_UNIVERSE
UNV_UNIVERSE_DATA
UNV_X_UNIVERSES
Hope this tables helps you. -
Toplink changes table and columns to uppercase
I found a way to make toplink not to change table and columns to upercase with setShouldForceFieldNamesToUpperCase=false setting (which should be false be default but so some reason isn't.)
However, when toplink is used with JSF how can setShouldForceFieldNamesToUpperCase be set to false? Is there a way to do it in persistence.xml or perhaps there is a better way altogether? (I know i can use @Table and @Column but that is a lot of redundant code if all the fields in java have exact match in DB and i am looking for a cleaner solution.)
My setup is a follows
toplink v2-b49
mysql 5.0 (with 5.0.5 driver)
servlet/jsp 2.5/2.1
jsf 1.2
tomcat 6.0.13
ThanksThanks Doug
I Created that class with
public void customize(Session session) throws Exception {
session.getDatasourceLogin().getPlatform().setShouldForceFieldNamesToUpperCase(false);
But that doesn't help. Then I checked if it is being set correcly and saw that it is false even before I set it, so the default works as advertised and the var is false.
So i guess this is not the problem. Any idea what can cause it?
here is the class
@Entity
@Table(schema="jpaTABLE")
public class User {
@Id
private int ID;
private String Name;
private String Password;
private String Status;
public User() {}
geters...
setters...
here is the code
Query q = em.createQuery("SELECT u FROM User u WHERE u.Name = :name AND u.Password = :password");
here is the error
[TopLink Fine]: 2007.06.07 04:20:24.636--ServerSession(9017297)--Connection(17227669)--Thread(Thread[http-8080-1,5,main])--SELECT ID, NAME, PASSWORD, STATUS FROM jpaTABLE.USER WHERE ((NAME = ?) AND (PASSWORD = ?))
bind => [abc, 123]
[TopLink Warning]: 2007.06.07 04:20:24.682--UnitOfWork(14633980)--Thread(Thread[http-8080-1,5,main])--Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b49-beta3 (05/31/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'jpaTABLE.USER' doesn't exist
Error Code: 1146
Call: SELECT ID, NAME, PASSWORD, STATUS FROM jpaTABLE.USER WHERE ((NAME = ?) AND (PASSWORD = ?))
bind => [abc, 123] -
Can we hide the tables and columns from subject areas in the front end
Hi,
Is there any way to hide the tables and columns from the subject area in front end.I need to create a report with some tables which the user does not want to see.So after creating the reprot can I hide those tables and columns in the front endHi,
Your question is not that clear to me...do you want to hide the entire table/column that dont want to show up in the front end then you could do in Presneation Layer in the RPD by going Permissions in the property of that object.
But if you want to hide the column in the report that can be visible in the subject Area: go to column properties -> Column fomat...thereis Hide option.
Can you please elaborate your question...what exactly you are looking for...
--SK -
Get description of tables and columns
Good afternoon.
Is there any option in SAP B1 to get a description of table and column dynamically? That is, without the "Tools -> Queries -> Query Generator"?
I am developing an add-on, which lists all the tables and columns of the sap, and I have to bring the descriptions automatically. If you do not have to get the SDK route descriptions, as you suggest doing this?
Edited by: Harley Rodrigues on Feb 1, 2012 9:38 PMHi Harley,
Welcome to the Forum!
please refer to your SDK Help. you can find it from this path C:\Program Files\SAP\SAP Business One SDK\Help
also alternatively you can view it from your MS SQL Server Management under Databases
regards,
Fidel -
Toplink JPA forces database table and column names to UPPERCASE! Why?
I have recently experienced using Toplink JPA while using glassfish ... migrating an existing application to EJB 3.0 persistence. Toplink JPA, as implemented in glassfish, forces tablenames and column names from my code to be uppercase in select statements, etc. as then submitted to the database. Why? I cannot find anything in the EJB 3.0 specs on persistence that even suggests this.
This created a serious problem for me, in my application. For my code to work I had to change the names of the database tables to all uppercase, even though that meant other of my applications, already written using the original mixed case names of the databases, will no longer work unless I revise the code in those applications! (I am using mySQL as my database.)
In both Unix/Linux and Java, which are both case sensitive, If I wanted names of files or other items to be uppercase, I would have written them that way. I do not expect some middleware piece of software to muck around with the case of text I have put into my code.
I am hopeful this 'feature' of the reference implementation of the EJB Persistence API will be corrected in a subsequent version. [Maybe you can tell I am not happy!]
Thanks for listening to my rant.Robert,
I found that the name I specify in all of my @Table, @Column, ... annotations is used with the case as it is provided.
If TopLink determines the schema information through defaults then the names it comes up with are definitely upper cased by default.
Are you specifying the schema information that you want in annotations or XML?
Doug -
Sql query parsing (retrieve tables and columns used in query)
Hi,
1. Is there any view in Oracle which can tell me, which tables and columns were used in the last ran query, no matter how complex the query is.
2. Secondly I can get table names, used in stored procedures and views, using USER_DEPENDENCIES VIEW, however this System View does not return column names, used in that procedure / view, any idea please .
Thanks and Regards,
Luqmanluqman123 wrote:
Hi,
1. Is there any view in Oracle which can tell me, which tables and columns were used in the last ran query, no matter how complex the query is.I don't believe so. You can look at V$SQL and retrieve the actual SQL text from there.
2. Secondly I can get table names, used in stored procedures and views, using USER_DEPENDENCIES VIEW, however this System View does not return column names, used in that procedure / view, any idea please .Oracle added fine grained dependency tracking in 11g, but didn't expose any views to query this information. However, it has been reverse engineered a bit: About Oracle: DBA_DEPENDENCY_COLUMNS
Maybe you are looking for
-
Delay when querying from CUBE_TABLE object, what is it?
Hi Guys, We are using Oracle OLAP 11.2.0.2.0 with an 11g Cube, 7 Dimensions, Compressed and partitioned by Month. We have run into a performance issue when implementing OBIEE. The main issue we have is a delay while drilling on a hierarchy. Users hav
-
My computer is running soooooo slow!
I use both Safari and Chrome and in both OS everything runs slow. I can leave the room after closing out a program and to go to another room and back and maybe the program will be closed by then. I ran the etrecheck but I am not well versed in comput
-
How to run a jar file in JBuilder
Hi there I need to know how to run a jar file using JBuilder. Thanks :) Countess
-
This is just a informed post telling you guy's how to get your video's from you Ipod Touch, Ipad, or Iphone to your windows PC. Here it is step by step. STEP 1: Connect you device to your windows pc. STEP 2: Open up "computer" on your pc, you should
-
Column headers in SQLPLUS query
Hi I am running a simple SQL query in SQLPLUS, and I want the column headers to appear just once at the top. If I set the 'SET PAGESIZE' to 50000 (which I thought was the max) it repeats the column headers evert 50000 lines. If I set 'SET PAGESIZE 50