Column name in the database starts with a number!
Hello,
Recently we updated out database and we changed our tables' and columns' names, I'm developing an adf application with EJB3.0 the question is that the new column names start with a number (eg. 001U_ID), its a kind of encoding the names of the tables so no one can modify the values.
When I create a query on the table it is throwing an exception:
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'U_ID'.
I think the problem is that the EJB3.0 doesn't recognize column names starting with a number!!! What can I do to solve this issue?
Thanks
Shahe
Shahe wrote:
the entities are declared using the database tables, I'm using EJBQL to retrieve data from the tables.Can you explain this more. Are you using JPA entities? If so post the definition of the Entity bean and the query you used.
Similar Messages
-
How to display name of the employees start with any letter?
Hi Developer,
Please guide me in solving the issues, that i need to display names of the employee starting with any letter.
example:
if i provide name of the employee starting letter 'A' it should display only those name in the database table with starting letter.
parameters: a*
it should display name with starting letter a.
example:
abdi
akbar
akash
akilesh
thanks,
ravi.Hi Ravinder,
You can use Ranges for this purpose:
RANGES: r_name FOR type_name.
r_name-sign = 'I'.
r_name-option = 'CP'.
r_name-low = 'a*'.
INSERT r_name.
SELECT name FROM table_name INTO TABLE it_name WHERE name IN r_name.
Regards. -
When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock. Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.
This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
Regards. -
"HTTPS hostname wrong" for a hostname starts with a number
Does anyone know about why HttpsClient throws the error for a hostname starts with a number. I have no problem with other hostname but only for the hostname starts with a number. The certificate works fine with Browser. I am sure the hostname in the certificate and in the request are exactly the same.
I know how to skip the hostname verification, but I don't want to do that for security concern.
Can sun develpoer shed some light how to verify the hostname in HttpsClient?
java.io.IOException: HTTPS hostname wrong: should be
<1company.mydomain.com>
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
at java.net.URL.openStream(URL.java:960)
Thanks
Al8079I looked at the RFCs you mention, and they do seem to indicate that host/domain names cannot start with digits...however if you look at RFC 1123 closely it says:
RFC1123 APPLICATIONS LAYER -- GENERAL October 1989
2. GENERAL ISSUES
This section contains general requirements that may be applicable to
all application-layer protocols.
2.1 Host Names and Numbers
The syntax of a legal Internet host name was specified in RFC-952
[DNS:4]. One aspect of host name syntax is hereby changed: the
restriction on the first character is relaxed to allow either a
letter or a digit. Host software MUST support this more liberal
syntax.
Host software MUST handle host names of up to 63 characters and
SHOULD handle host names of up to 255 characters. -
Using column value is it possible to find the table name in the database?
Hi all,
using column value is it possible to find the table name in the database?
guys i need the table value
Note:
oracle-9i
for example:
i don't know NIC(column value) in which table in the database.
Thank you,
with regards,
JP.
Edited by: Guest on Feb 27, 2012 5:42 AMHi,
As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
1. USER_TAB_COLS
2. ALL_TAB_COLS
3. DBA_TAB_COLS
4. COLS
These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
To know about various data dictionaries avalible in Oracle please query select * from cat;
Let us know if you need further assistance.
Twinkle -
I have a column of names, some DO NOT start with a capital letter, how do I filter them
new to Mac environment and i have a column of names, some DO NOT start with a capital letter, how do I filter them
HI PTU,
You can mark the rows starting with lower case letters using a formula, then filter on the contents of the column containing the formula. For the example below, the names are in column B and the formula is in column C.
C2: =IF(AND(CODE(B)>=95,CODE(B)<=122),"!!!","")
CODE returns the ASCII code for the first character in the target cell. Lower case letters have ASCII codes in the range specified in the formula: a = 95, z = 122
For names starting with characters in this range, the forula returns a string of three exclamation points. For any other initial character, the formula returns a null string ( "" ).
An empty cell in column B will cause the formula to return an error in that row of column C. You can avoid this by embedding the formula in an IF statement that suppresses the calculation if the length of the entry in column B is less than one character. Revised formula shown below.
C2: =IF(LEN(B)<1,"",IF(AND(CODE(B)>=95,CODE(B)<=122),"!!!",""))
Regards,
Barry -
Membership rules does not work with UDF column name having the max length
Found a bug in OIM .
Membership rules does not work with UDF column name having the maximum length
Steps to Reproduce
1.Create a UDF having max column name length for eg UDF_USR_PERSONAL_SUB_DOMAIN_CO (lable = Personal Code)
2. Create a simple Rule like Personal Code = 7000
3. Assign this Rule as a member ship rule of a Group.
4. Create a user with Personal Code = 7000.
5. User doesnot get the group membership.
Thanks
SurenYes , i verified logs as well .
If you just decrease the column name length , w/o making change to any other attributes , it starts working ..
Thanks
Suren -
I have taken over 9999 pictures with my phone and it is now creating duplicate names for the pictures starting back at 0001 making it difficult to manually upload my photos like i always have. How do i fix this?
(I tried to just write this as a reply to someone who had already asked the question whos problem was magically solved after posting the question and the site was not allowing me to post to it so here I am)Additionally, when I try to sort the photos by date to easily extract the newest photos which I have not yet uploaded, it is unable to put them in correct order regardless of the fact that the date is correct. Only the videos end up in chronological order for some reason while the photos stay in order by name.
-
Can't open files where the name starts with a number
On our network server, we have some folders where the files are numbered. Example:
1 - Memo
2 - Agenda
3 - Report X
4 - Report Y
5 - Report Z
We have 5 Macs in our office. Everybody can read these files fine except for one person. On her computer she can't open any file that starts with a number and gets the below error message. How do I fix this?
All our Macs (to the best of my knowledge) are setup exactly the same since they were purchased at the same time late last year.Word - Microsoft Support
-
How to change recordset bahaviour to accept dynamic column names in the where clause
Hi
im using php-mysql and i make a recordset and i want to make the column names in the where clause to be dynamic like
"select id,name from mytable where $tablename-$myvar";
but when i do this my i break the recordset and it disappear
and when i use variables from advanced recordset it only dynamic for the value of the column not for the column name
and when i write the column name to dynamic as above by hand it truns a red exclamation mark on the server behaviour panel
so i think the only way is to change the recordset behaviour is it? if so How to make it accept dynamic column names?
thanks in advance.As bregent has already explained to you, customizing the recordset code will result in Dreamweaver no longer recognizing the server behavior. This isn't a problem, but it does mean that you need to lay out your dynamic text with the Bindings panel before making any changes. Once you have changed the recordset code, the Bindings panel will no longer recognize the recordset fields.
Using a variable to choose a column name is quite simple, but you need to take some security measures to ensure that the value passed through the query string isn't attempting SQL injection. An effective way of doing this is to create an array of acceptable column names, and check that the value matches.
// create array of acceptable values
$valid = array('column_name1', 'column_name2', 'column_name3');
// if the query string contains an acceptable column name, use it
if (isset($_GET['colname']) && in_array($_GET['colname'], $valid)) {
$col = $GET['colname'];
} else {
// set a default value if the submitted one was invalid
$col = 'column_name1'
You can then use $col directly in the SQL query. -
"User names cannot start with a number" error while adding a user
Is it possible to use WL Portal 7.0 admin framework to manage users with all numeric
user id ?
I got an error "User names cannot start with a number" while trying to add users
with all numeric user ids. I am using "portalAppTools" web app provided with WL
7.0 out of the box.
What "out the box" functionality do I need to change to make this happen ? Thanks
ShahThe problem is that when we have user groups starting with a number, then the search
feature doesn't work for user groups (case # 466837 with BEA).
So, which brings me to the following question:
a. Should the search feature work?
b. What is the limitation? I mean, it is designed not to allow user groups starting
with a number. So, there must be a reason for this. So, if we change "disallowFirstCharDigit",
will it have any impacts on Portal?
As an aside, it seems somewhat strange that the Portals can start with a number!
Thanks in advance
Venkatesh
"Ture Hoefner" <replyto@newsgroup> wrote:
Hello Shah,
Search your tools web app for the UsermgmtTools.properties file. In
my
installation, it is at:
D:\bea70sp1\weblogic700\samples\portal\sampleportalDomain\beaApps\sampleport
al\tools\WEB-INF\classes\com\bea\jsptools\p13n\usermgmt\servlets\jsp
It starts with this:
# Messages and other properties used by usermgmt jsp tools
# Name properties - UserBean and GroupBean
disallowedCharacters: ~`!$%^&-*() {}[]|\\/?<>,:;+="'
disallowFirstCharDigit: true
Ture Hoefner
BEA Systems, Inc.
www.bea.com
"Shah Sidi" <[email protected]> wrote in message
news:3db0a001$[email protected]..
Is it possible to use WL Portal 7.0 admin framework to manage userswith
all numeric
user id ?
I got an error "User names cannot start with a number" while tryingto add
users
with all numeric user ids. I am using "portalAppTools" web app providedwith WL
7.0 out of the box.
What "out the box" functionality do I need to change to make this happen?
Thanks
Shah -
Hi Lync gurus,
I have a weird issue:
Just installed a Lync Standard 2013.
Everything works except I keep getting this error in Log: every 30 minute or so.
First an Error: Event 47067
A server did not respond to HTTP request
Server lyncserver.domain.local did not respond to HTTP request PublishCertRequest targeted at
https://lyncserver.domain.local:444/LiveServer/UserPinService.
Cause: Server might be down or the network path between servers might not be properly configured.
Resolution:
Please ensure that the server can be connected on the target port using telnet and then re-try.
Then I get a Warning: Event 47068
GetAndPublish web service failed.
Certificate could not be published in the database associated with User Services Cluster [lyncserver.domain.local ]. Request Details - Entity: [[email protected]], Device Id: [6BB30A3E-2923-553A-8E5F-0B2FB2CEA330], Authenticated User: [sip:[email protected]].
Additional Context: [Publish_Failure: OtherFailure;HttpNoResponse:"lyncserver.domain.local "]
Cause: This could be due to network connectivity issues with the remote server, or because the database is down.
Resolution:
Please ensure that the user services is reachable and the database is up and running.
Thanks for any helpPlease check you can telnet port 443 and port 444 on Lync Front End Serve from client.
Try to regenerate a new certificate for Lync Front End Server.
Check all the services on Lync Front End Server are started.
Check the option “Enable all purposes for this certificate” is checked for the trusted root CA certificate.
For the detailed steps:
Run MMC--Add\Remove Snap-ins--certificates--Local Computer--Trusted Root Certificate Authorities--Certificates, find the Root CA certificate you installed--Properties--General, check the "Enable all purposes for this certificate".
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
How to have report which use the odbc name of the database
First, sorry for my English... i have a BIG problem with Crystal 2008. I have a lot of report created with crystal report 8. In crystal report 8, when i create a report, i select the odbc and then add all the tables i need. then i go under "database", "setting position". here i find all the tables and if i select them, in the field "table" the name is "databasename.dbo.tablename". so i delete "databasename.dbo." and leave only "tablename". so in my app i can use the name i want for the database, i only need to create the odbc with the correct database name and it works.
now with crystal 2008 i can't do this!!!! if i change the name of the database and modify the odbc, when i print the report i have an error like "provider error" or similar. i try to use the expert database, the "change position data source" but no results. this appends only if i add a new table to an old report or if i create a new report.
what shall i do?? now i'm still using crystal 8 (i only need to use the runtime and the preview object in .net, but i don't need all the feature of the new crystal report), but i'd like to use the new one because it's a lot better for create reports....
thanksHello,
That's the general work around, basically fully qualifying the database.user info.
Have a look at these links, lots of great samples on how to use all of them:
Root Page
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome
Enterprise Samples (including managed and unmanaged ras)
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
Non-Enterprise Samples
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Exporting Samples (RAS)
http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
Thank you
Don -
How to display Column Names of a Database Table in JSP
Dear All,
I want to display all the attribute names(column names) of a database table on JSP.
[ ex: mytable contains : ( EmpId,EmpName,Dept ). This should be display as EmpId--text box
EmpName--text box
Dept----textbox
please note , i don't want to display values,but only column namesYeah make use of methods like
ResultSet DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern)
else use
String ResultMetaData.getColumnName(int column_index)
search google i'm sure u wud get thousands of example on it... :) -
Under Data Marts folder, what is the datasource starting with 8?
hello BW gurus,
Run rsa1 -> Source Systems, then pick the BW system itself as the client, under folders BW DataSources -> Business Information Warehouse -> Data Marts, we can see some datasources or infosources starting with 8, how these datasouces get created and what are the purpose of them?
We know that the datasource starting with 7 means the export datasource generated from PSA, but have no idea what is for datasource starting with 8. Anyone's explanation is greatly appreciated!Hi Kevin,
The DataSources starting with 8 are the datamart data sources, or Export DatSources. This means that they would supply data from the BW system to the BW system.
You will notice that the name is 8DataTarget, where DataTarget could be like an ODS object or an InfoCube. This means that data from this ODS or InfoCube can be updated to other data targets in the BW system using update rules.
You can generate the Export datasource from the context menu of a data target.
Hope this helps...
Maybe you are looking for
-
How to share audio with other members of a meeting?
Hi, I want to share a video with my class but my student cannot hear the video since they only receive audio from my mic. I was wondering if there is a way I can share what I am hearing. If someone can provide me with instruction on how to do this I
-
HT3131 how can i run in clamshell without the power adapter plugged in?
just what the question states..I dont want to have to always connect the power adapter. thanks
-
Guitar Rig 3 Electric Guitar & GarageBand.
Ok i am pretty new to recording music on a mac! All i really want to record some voice and guitar tracks. i have the guitar rig installed and everything but i cant seem to find a way to record using it with GB or With the Software that came with the
-
Image SPAM (Played out)
I know that most of you are tired of hearing about Image SPAM. It seems like a new article is written ever day or so: http://news.google.com/news?hl=en&ned=us&q=image+spam I'm curious. I have to give a short presentation to some management in IS, and
-
Lightroom creates slideshows as PDFs. One of the options when saving a slideshow is to run the slideshow in full screen mode. When you use Abrobat Reader to display your slideshow in full screen there are no controls. You can add controls to advance