Frame driver SQL syntax
Below is the syntax out of the Frame Drivers example text area for the SQL Query for the Frame Driver. Can anybody break down the SQL statement and map the fields to something that makes sense??? I understand up to the point that says select ename, but after that I am lost about what the rest of this statement is doing. The word url looks like it is just whipped in ther and there is one double = sign in there. It looks like there are some values but then some look like they are not there at all. etc. I would like to see something like this.
select ename,'PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from PORTAL30_DEMO.EMP where DEPTNO=:department
Hi
select ename,'MYBUGS.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from MYBUGS_DEMO.EMP where DEPTNO=:department
This query returns the employee name and an url which points to a form for each employee.
This is the break up which explains the URL
'MYBUGS.wwa_app_module.link' - link to form which takes parameters as p_arg_names and p_arg_values.
'?p_arg_names=_moduleid&p_arg_values=1060253649' - The argument name is is _moduleid and value is 1060253649
'&p_arg_names=_sessionid&p_arg_values= ' - The arg name is _sessionid and no value
'&p_arg_names=_empno_cond&p_arg_values==' - The arg name is empnocond and value is '='
'&p_arg_names=show_header&p_arg_values=YES' - The arg name is show_header and value is 'YES'
'&p_arg_names=EMPNO&p_arg_values='||empno - The arg name is EMPNO and value is empno from the table.
Hope this helps.
Thanks,
Sharmila
Similar Messages
-
the sql for the frame driver errors displaying the whole SQL and the following error messages
*(WWV-09700)*
ORA-01403: no data found (WWV-11230)
LINK LOV ERROR:
You must supply an LOV query, name, cursor, or static values.
LOV: "%0"
Parse Message: Cursor supplied, no need to parse.
I have a bind variable and I dont want any LOV linked to it. I tried to give a default value and still get the same error. The sql works fine in toad and give the results.It is a union of two sqls.
The sql returns two columns and sample result from toad is
1st column: <!--AABBCC55-->AABBCC55: <l>Abraham Acuna< /l>
2nd colum: portal_cust.maintain_user_dynamic_pg.show?p_arg_names=p_user_name&p_arg_values=AABBCC55
I am using database link in the sql.
Any idea on why is this happening?
Thanks in advance.I am getting the same error even when I use a simple sql in the frame driver like
select user_name as display_value, 'www.google.com' as returned_url from fnd_user where user_name like nvl(:p_vlaue, '%') || '%'
please help.. -
Odbc sql server driver sql server incorrect syntax near 'è'
Hello.
An online game I host uses ODBC and SQL.
I'm using SQL Server Management Studio 2012.
I had two errors suddenly appear.
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'è'
and
[Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark after the string ".
Can anyone explain what these are and how I can fix them please.
Kind regards
ZathHello Zath,
"Unclosed quotation mark after the string" means there is a Quotation mark missing, like in this query at the end:
SELECT *
FROM sys.objects
WHERE Name like 'sys%
But without knowing your queries it's difficult to say, where & why this occurs.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How can I put more than One ComboBox in the Driving Frame of a Frame Driver
Hi,
I am working with a Frame Driver and I want that in the Driving Frame put more than one ComboBox to filter the report, for example, I want to put one combobox for City, another for Year, and another for Month, and when the user select the City, Year and Month and do click in Submit button, then in the Target Frame appears the information for those filters.
Does anybody know how to do that?
Thanks a lot.
Bye,Hi,
It is not possible to have more than one combo in the source frame. This is because frame drivers can take only
two columns in the sql query, one is the display value and the other the return value.
Thanks,
Sharmila -
SQL syntax for expert little help Access 2013
Hi
working example SQL local machine
strData= "SELECT DISTINCT Detail, FamCode as Fam FROM Mat_Family ORDER BY FamCode"
cmbMatFam.RowSource=strData
working example SQL server machine (other computer)
Public Const ServerConnectionWith_RawMaterial_LV
As String=
"[ODBC;Description=Live;DRIVER=SQLServer;SERVER=SERVER;UID=Name;PWD=Password;DATABASE=RawMaterial_LV]."
strData= "SELECT DISTINCT Detail, FamCode as Fam FROM " &
ServerConnectionWith_RawMaterial_LV & "Mat_Family ORDER BY FamCode"
cmbMatFam.RowSource = strData
working example SQL local machine
strData = "SELECT Material_M.M_Code, Material_M.Family_Code, ISNULL(z_TotalBars.Bars, 0) AS tBars, ISNULL(z_TotalRes.rBars, 0) AS rBars, "
strData = strData & "ISNULL(z_TotalBars.Bars, 0) - ISNULL(z_TotalRes.rBars, 0) AS Bal, Material_M.Material_Fam, Material_M.Type, Material_M.Series, "
strData = strData & "Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density, Material_M.cPound_Ft, Material_M.cPrice_Pound,"
strData = strData & "Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date , Material_M.Description "
strData = strData & "FROM Material_M LEFT OUTER JOIN z_TotalRes ON Material_M.M_Code = z_TotalRes.M_Code LEFT OUTER JOIN "
strData = strData & "z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Code "
strData = strData & "WHERE (Material_M.Family_Code = '" & cmbMatFam.Column(1) & "') AND (ISNULL(z_TotalBars.Bars, 0) > 0)"
Form_frmMaterialLookup.RecordSource = strData
NOT working example SQL server machine (other computer) ??????
strData = "SELECT Material_M.M_Code, Material_M.Family_Code, ISNULL(z_TotalBars.Bars, 0) AS tBars, ISNULL(z_TotalRes.rBars, 0) AS rBars, "
strData = strData & "ISNULL(z_TotalBars.Bars, 0) - ISNULL(z_TotalRes.rBars, 0) AS Bal, Material_M.Material_Fam, Material_M.Type, Material_M.Series, "
strData = strData & "Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density, Material_M.cPound_Ft, Material_M.cPrice_Pound, "
strData = strData & "Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date , Material_M.Description "
strData = strData & "FROM " &
ServerConnectionWith_RawMaterial_LV
& "Material_M LEFT OUTER JOIN z_TotalRes ON Material_M.M_Code = z_TotalRes.M_Code LEFT OUTER JOIN "
strData = strData & "z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Code "
strData = strData & "WHERE (Material_M.Family_Code = '" & cmbMatFam.Column(1) & "') AND (ISNULL(z_TotalBars.Bars, 0) > 0)"
Form_frmMaterialLookup.RecordSource = strData
Error Message
Syntax error (missing operator) in query expression 'Material_M.MCode= z_TotalRes.M_Code LEFT OUTHER JOIN z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Cod
Usually I just add "
& ServerConnectionWith_RawMaterial_LV & "
to a SQL statement and it works,but not this time
(Tables Material_M, z_TotalRes, z_TotalBars are in RawMaterial_LV
Database)
Appreciate any suggestion Thanksparenthesis did the job, now adding
"WHERE (ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')"
Tested working Query
SELECT Material_M.M_Code, Material_M.Family_Code, Material_M.Material_Fam, Material_M.Type,
Material_M.Series,
Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density,
Material_M.cPound_Ft, Material_M.cPrice_Pound,
Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date
, Material_M.Description
FROM
([ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Deco2014$;DATABASE=RawMaterial_LV].Material_M
LEFT OUTER JOIN
[ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalRes
ON Material_M.M_Code = z_TotalRes.M_Code)
LEFT OUTER JOIN
[ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalBars
ON Material_M.M_Code = z_TotalBars.M_Code
Not working Query
SELECT Material_M.M_Code, Material_M.Family_Code, Material_M.Material_Fam, Material_M.Type,
Material_M.Series,
Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density,
Material_M.cPound_Ft, Material_M.cPrice_Pound,
Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date
, Material_M.Description
FROM
([ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Deco2014$;DATABASE=RawMaterial_LV].Material_M
LEFT OUTER JOIN
[ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalRes
ON Material_M.M_Code = z_TotalRes.M_Code)
LEFT OUTER JOIN
[ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalBars
ON Material_M.M_Code = z_TotalBars.M_CodeWHERE (ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')
Message Error
Wrong number of arguments used with function in query expression '(ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')
Works this way
WHERE (z_TotalBars.Bars > 0) AND (Material_M.Family_Code = 'BZ') -
After updating our ODBC driver to match our current Unidata database version (7.1), we now get the following message from Crystal Reports 2011 on many of our existing reports:
"Failed to retrieve data from the database. Details: 37000:[Rocket U2][U2ODBC][1401249]Error ID: 21 Severity: ERROR Facility: DBCAPERR - SQL Syntax error. [Database Vendor Code: 5365440]
The generated SQL statement follows:
SELECT "INVCDETH_NF"."ITEM_NBR", "ITEMMAST_NF"."ITEM_DESC", "INVCDETH_NF"."SHIPPED_QUANTITY", "INVCDETH_NF"."Z_INV_DATE", "INVCDETH_NF"."Z_COMPANY", "INVCHDRH_NF"."INVOICE_TYPE", "INVCDETH_NF"."EXTENDED_PRICE", "INVCDETH_NF"."COST_OF_SALES", "INVCDETH_NF"."Z_PCC_CODE", "INVCDETH_NF"."DISCOUNT_AMOUNT", "INVCDETH_NF"."WAREHOUSE", "ITEMMAST_NF"."PRICE_CODE", "INVCHDRH_NF"."INVOICE_NBR", "INVCHDRH_NF"."REFERENCE_NBR"
FROM ("Administrators"."ITEMMAST_NF" "ITEMMAST_NF" INNER JOIN "Administrators"."INVCDETH_NF" "INVCDETH_NF" ON "ITEMMAST_NF"."ITEM_NBR"="INVCDETH_NF"."ITEM_NBR") INNER JOIN "Administrators"."INVCHDRH_NF" "INVCHDRH_NF" ON ((("INVCDETH_NF"."INVOICE_NBR"="INVCHDRH_NF"."INVOICE_NBR") AND ("INVCDETH_NF"."INV_HEADER_ID"="INVCHDRH_NF"."INV_HEADER_ID")) AND ("INVCDETH_NF"."REFERENCE_NBR"="INVCHDRH_NF"."REFERENCE_NBR")) AND ("INVCDETH_NF"."RELEASE_NBR"="INVCHDRH_NF"."RELEASE_NBR")
WHERE "INVCDETH_NF"."Z_COMPANY"='01' AND "INVCDETH_NF"."WAREHOUSE"='086' AND ("INVCDETH_NF"."Z_INV_DATE">={d '2013-12-08'} AND "INVCDETH_NF"."Z_INV_DATE"<={d '2013-12-26'})
ORDER BY "INVCDETH_NF"."WAREHOUSE"
I downloaded the trial version of CR2013 and get the same result. Can anyone shed any light? Thanks!Yes, in that the query is what Crystal generated from the report being built in the designer. I simply copied it from the Database > Show SQL Query screen. Since the error I'm receiving is a SQL Syntax Error, I thought it would be appropriate to show it.
The bottom line is that because I am not very knowledgeable in SQL, I can't look at the query and identify the error. However, I am responsible for supporting CR in-house. Naturally, I have reported this to Rocket (the makers of the ODBC driver) but haven't received their reply yet. -
Hi,
I am trying to create a very simple SQL Expression, but can't seem to get the syntax to be valid. The database connection is to a SQL Server database. If I were to create the query in SQL Server Management Studio, it would be something like
select LastName from People
However, every variant I can think of, based on various examples in books and on-line postings, fails syntax check. These include, among many others:
select "People"."LastName"
from "People"
select "People"."LastName"
from "PiapDB_ss5"."dbo"."People"
I have also tried single quotes instead of double quotes. I keep getting the same error:
Database Connector Error: '42000:[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid syntax near the keyword 'select'. [Database vendor code: 156].
Any suggestions as to the proper syntax?
Thanks.
Danan sql expression field is meant to return one value, not records. therefore using a "select * from ..." statement won't work. if you know the select statement will return one value only (e.g. select name from table where id=123), you can surround the statement with parenthesis, that should work.
-
Error when making connection: You have an error in your SQL syntax;
I'm getting this error when trying to make a simple Database Connection:
SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????????????????????' at line 1
SQLState: 42000
VendorError: 1064
I tried a different driver and got the same error with more "?"s in the "use near....." part.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DBTest{ public static void main(String[] args){ try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch(Exception e){ System.out.println(e); System.exit(0); } Connection conn = null; try { conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/testDB?" + "user=root&password=password"); conn.close(); } catch (SQLException ex) { // handle any errors System.out.println("SQLException: " + ex.getMessage()); System.out.println("SQLState: " + ex.getSQLState()); System.out.println("VendorError: " + ex.getErrorCode()); } } }
MySQL Server Version:
Server version: 5.0.67-0ubuntu6 (Ubuntu)cotton.m wrote:
c0c0 wrote:
I've tried Drivers 5.1 , 5.0 and 3.1 now and I get the same problem every time. I've tried switching databases, users, etc but always get this same error:
java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1
I have the latest version of mysql from the Ubuntu repositories. Do I have to configure that a certain way? It isn't the URL which I supply that it does not like because I've tried multiple URLs and they all give me the same error when I supply the correct information.
Any help is greatly appreciated.This is.. very odd.
I have to ask are you really, really sure that your code is just as you posted? Are you sure you aren't running a query of some sort? My guess at this point would be some sort of rather bizarre encoding issue. I'm sorry but I can't reproduce your behaviour, I am connecting to different MySQL instances with no problem from Ubuntu..
Yes the code is exactly the same as what I posted (except hiding actual usernames and passwords)
I've even tried to connect to a remote mysql server and get the same behavior (If I type in the wrong database it alerts me there is no db of that name, if I lg in with the wrong password it alerts me cant login ____ @ ______, when I have all the correct information I get that same old error) , I'm somewhat convinced it's my driver now. I thought at first it was the way I had mysql configured but now I think it's my driver or the way I have everything installed. I simply put the driver location in the classpath and do the command:
export set CLASSPATH=/usr/share/tomcat5.5-webapps/ROOT/lib/mysql-connector-java-5.1.7-bin.jar
Was this the wrong way to go about doing it? I'm not currently running tomcat I simply put it there because a book said that's where it should go for tomcat, but I wanted to first try this not running tomcat with just a simple normal Java example. -
Using session storage between Report and Frame Driver
I have an existing report that has a link calling a frame driver with multiple forms. I would like to make the Initial Target Frame Content dynamic based on information contained in the targeted record of the report. I am able to make this work (in basic concept) on the frame driver side, but have not been able to pass session variables from the report side. I can, of course, pass bind variables via a link from the report. Does anyone know of a way to access the parameter bind varaiables in the frame driver component using session storage or something else in order to make these variables available to the PL/Sql of the Initial Target Frame?
Message was edited by: PM
user477244Seems that session is changed during logon or even if
web page (where the servlet is located) is refreshed!In Portal 10g (and maybe even in 9.0.2.6) the Web provider session is not lost any more when the user logs in to Portal.
PL/SQL doesn't lost the session storage data during
logon. But is it possible to find Java session storage
from PL/SQL session storage?No, you cannot share the session between database and Web providers. You need to find other ways to share information between portlets belonging to different providers. You can use parameter passing, or a persistent store, such as the database.
Java session storage doesn't use domain name or
subdomain which are mandatory for PL/SQL session
storage.The domain, sub-domain strings are irrelevant, as long as you can uniquely identify your session variable. For example, if you want to make sure that you have a separate session variable for every portlet instance, you should include the preference path in your domain or sub-domain. In case you want to share the session store between your portlets, don't include the unique portlet ID.
Peter -
Hi Gurus,
I have this problem in my MS SQL Server 2012 that is running in SQL Server 2008 R2 Enterprise 64 bit.. Not sure why... Here is the full details of the error:
Microsoft OLE DB Provider for ODBC Drivers 80040E14
[Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.
/Libraries/DBA/DBA.asa, line 717
Line 717 is this:
rs.open destTableName,,,,adCmdTable
Full details of the code:
'Field object used to iterate through each field of the rs
dim rs, fld
'call dbInitRS(rs)
set rs = server.createobject("adodb.recordset")
'On Error Resume Next
'Open rs
set rs.activeConnection = myConnection
rs.cursorType = adOpenKeyset
rs.lockType = adLockOptimistic
'rs.open destTableName
rs.open destTableName,,,,adCmdTable
'if err.number <> 0 then
' goto HandleError
'end if
rs.addNew
Any ideas how to solve this problem?
ThanksStill does not work. I have allow MSDSTC in my firewall list.
Hi dudskie,
Have you try to use DTCTester or DTCPing to verify MSDTC functionality over the network? Please refer to the following article:
Troubleshooting Problems with MSDTC:
http://msdn.microsoft.com/en-us/library/aa561924.aspx
Use the DTCTester utility to verify transaction support between two computers if SQL Server is installed on one of the computers. The DTCTester utility uses ODBC to verify transaction support against a SQL Server database. For more information about
DTCTester see How to Use DTCTester Tool.
Use DTCPing to verify transaction support between two computers if SQL Server is not installed on either computer. The DTCPing tool must be run on both the client and server computer and is a good alternative to the DTCTester utility when SQL Server
is not installed on either computer. For more information about DTCPing, see
How to troubleshoot MS DTC firewall issues.
If you have any feedback on our support, please click
here.
Hope this helps.
Regards,
Elvis Long
TechNet Community Support -
SQL Developer 1.1.0.21: Issues with Data Grid and SQL syntax checking
In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion.
Is there any option to change this behavior?
Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check.
I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql.
Manish"In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion."
In the "Results" tab, Click Ctrl & Tab keys (at the same time) or with mouse click on any cell other than the first column (a sequence or rownum), you will be able to navigate using the arrow keys.
"Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check."
The 0.0134 seconds could be the result of the most recently executed successful statement. Check the Script Output tab for errors. Use F5 (Run Script option) instead of F9.
"I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql."
On the SQL statement (or code), Right Click -> Format SQL (or press Ctrl & B), proper formatting would help.
I use version 1.0.0.15.57 and seems to be working allright.
- Babu Rangasamy -
Hi,
We have exadata x3-2. I am seeing this error in alert log file frequently.
The db version: 11.2.0.3 On RAC on Linux 5.8 x86-64Bit
Errors in file /d01/oracle/TEST/11.2.0/admin/TEST1_dbtest/diag/rdbms/prod/TEST1/trace/TEST1_reco_11909.trc:
ORA-01017: invalid username/password; logon denied
[Oracle][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user 'RECOVER'. {28000,NativeErr = 18456}
ORA-02063: preceding 2 lines from HIS_CUST
The file /d01/oracle/TEST/11.2.0/admin/TEST1_dbtest/diag/rdbms/prod/TEST1/trace/TEST1_reco_11909.trc
Contains many repeated lines like below
*** 2015-01-21 06:34:40.209
ERROR, tran=21.24.51311, session#=1, ose=0:
ORA-01017: invalid username/password; logon denied
[Oracle][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user 'RECOVER'. {28000,NativeErr = 18456}
ORA-02063: preceding 2 lines from HIS_CUST
Could any please help why is this happening.
ThanksHi,
You have customers who are running distributed transactions using a gateway which need to be rolled back. However, the gateway has not been correctly configured for distributed transactions. To roll back a transaction on the SQL*Server database a connection is made as the user defined in the parameter HS_FDS_RECOVERY_ACCOUNT in the gateway init<sid>.ora file but this user has not been created in the SQL*Server database with the password defined in HS_FDS_RECOVERY_PWD. This user also needs to own the transaction log table.
I assume you are using the Database Gateway for SQL*Server (DG4MSQL) as the Database Gateway for ODBC (DG4ODBC) doesn't support distributed transaction.
If you have access to My Oracle Support have a look at this note -
How to Setup DG4MSQL to Use Distributed Transactions (Doc ID 227011.1)
Otherwise, check the Gateway documentation.
Regards,
Mike -
BO XI 3.1 in Webi Rich Client, i get this when I use the default Audit Universe to run the Sample Auditing Report.
A database error occured. The database error text is: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) Could not prepared..(WIS 10901)
In infoview webi i get this,
A Database error occured. The database error text is: [Microsoft][ODBC driver Manager] Data source name not found and no default driver specified. (WIS 10901)
We tried checking all the rights and we are trying this using the Administrator user. Also tried logon to Desinger, Import Auditing Universe and Verify the Parameters and then re exported. Still not workingHi Prasanth,
Thanks for your suggestions and I tried all that what I can do along with your suggestion, and still getting the same error, all the connection are working fine, but when I checked for Integrity, Parse Object and Cardinality I was getting some Object error and cardinality error, which am trying to resolve, so I think am having a wrong version of the Activity Universe.
Thanks for your suggestion.
Thanks and Regards
Senthil -
Hey All!
Im trying ot use a a bean to select data from a table where email != ''
The funny thing is my code works in one couple of jsp/bean but not in another, even though it's the exact same code.
This works
The Bean:
String sql = "SELECT applicantid, firstname, lastname, dob, " +
"homestreet, homestate, homecity, homezip, " +
"email, college, major, standing, " +
"graddate, schstreet, schcity, schstate, " +
"schzip, schphone, resOne, resTwo, " +
"resThree, waiver, bioletter, password, " +
"homephone " +
"FROM apptest " +
"WHERE " + filter + " " +
"ORDER BY " + orderBy;
The filter is the String "email != ''" and orderBy ="lastname"
Works perfectly!
But when I use similar code for another table
Code:
String sql = "SELECT providerid, applicantid, pin, title, " +
"company, firstname, lastname, phone, " +
"email, recletter " +
"FROM provtest " +
"WHERE " + filter + " " +
"ORDER BY " + orderBy;
with filter as "email != '' " and orderBy = "lastname"
I get the following error:
Error in findRecords ProviderUtility(Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1")
Keep in mind that email != '' (these are single quotes)
I am really baffled.
Ike"The funny thing is my code works in one couple of jsp/bean but not in another, even though it's the exact same code."
If it's EXACTLY the same code, what did you need another bean for?
If you needed a new bean, then it's not exactly the same.
Why aren't you using PreparedStatement to escape strings and dates for you?
Believe the engine when it tells you there's a mistake.
% -
This is a weird one!!!
I am using Dreamweaver/php/mysql and I am in the process of
developing the forms that edit articles that have been added to the
CMS. I have a page called edit.php which has the current list of
articles. Each article has a radio button next to it and have given
it an id of "id" (which is what I called it in the DB). On
selecting this article, and hitting submit, this should load up a
editnews2.php. On editnews2.php I have a filtered recordset that
filters on "id " so that it loads the article selected into the
editnews2 form. I have bound the fields in the form to the related
fields in the recordset.
When I test this out using the TEST button, in the recordset
pop-up window and enter an id, it retrieves the correct article
from the database. However, when I do it using the forms, I get an
error:
"You have an error in your SQL syntax; check the manual that
corresponds to your Mysql server version for the right syntax to
use near " at line 1"
This is really weird because the recordset works and
retreives the data no problems, which mean the connection file path
is correct and other parameters are correct. I have tried lots of
times to try and figure this out but I am now really stuck.
Could anyone shed some light on this one?
regards
orange22orange22 wrote:
> When I test this out using the TEST button, in the
recordset pop-up window and
> enter an id, it retrieves the correct article from the
database. However, when
> I do it using the forms, I get an error:
>
> "You have an error in your SQL syntax; check the manual
that corresponds to
> your Mysql server version for the right syntax to use
near " at line 1"
What that means is that the way Dreamweaver is building your
query
contains a mistake - probably an extra quotation mark or
something like
that.
Go into Code view and use echo to display the actual SQL
query being
sent to the database. That will give you a clue as to where
to start
troubleshooting the rest of the code.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
How do I move an iMovie project from my iMac to my laptop
I want to develop a movie project on two computers. One is permanently at work and my laptop is for weekends at home. Can't figure out how to keep it editable after moving to laptop. This is not just moving video to a different hard drive. I use lots
-
SP3 install causes error in WL Commerce Server
Hi Support, After we installed SP3 for our Weblogic Server and Commerce Server, our Example portal failed at the login step with the following error on html page: Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
-
when burning a dvd, the disc always ejects 5 minutes before the project is complete and ruins my whole project any help.....please?
-
Type conversion when calling a java program in form 6i
Hi, I would like to call a java program in form 6i. The java program takes a date parameter in. When I call the java program in form, how can I pass a date parameter to it? -- Method: isSystemDate (Ljava/util/Date;)Ljava/lang/String; FUNCTION isSyste
-
Deleteing quota entry from MS Windows
Hi everyone, I need help on deleting an already existing quota entry in MS Windows XP. I used java to run the commands available in FSUTIL QUOTA in CMD and I was able to create and modify quota... The problem is that I cannot delete an already existi