Error in compiling SQL Expression
In the [Error in SQL Expression; thread, Kurt Reinhardt wrote "Please note, a SQL Expression can only return a single, distinct value per each record in the main recordset.", I tried this where my main Record Selection's SQL query is:
{GLF_LDG_ACC_TRANS.ldg_name} = {@&CH_LDG_GL_ACT_CURR} and
{GLF_LDG_ACC_TRANS.period} = {@&CH_PERIOD_GL_CURR} and
{GLF_LDG_ACC_TRANS.ACCNBRI} "99991103" and
{GLF_LDG_ACC_TRANS.DOC_REF1} "{%SundryCreditors}" and
{GLF_LDG_ACC_TRANS.DOC_TYPE} = "$APINVCE"
My SQL Expression %SundryCreditors is:
select doc_ref1
from glf_ldg_acc_trans
where ldg_name = 'APLED09'
and period = "GLF_LDG_ACC_TRANS"."PERIOD"
and doc_ref1 = "GLF_LDG_ACC_TRANS"."DOC_REF1"
and accnbri like 'SUNDRY%'
which essentially queries the same table as the main recordset using the same key fields, and returns one row only. However, when I click on the Check button in the Formula Workshop window, I get the error message "Error in compiling SQL Expression : Database Connection Error: '42000:MicrosoftODBC SQL Server DriverSQL ServerIncorrect syntax near the keyword 'select'. Database Vendor Code: 156 '".
Do you know what is my issue?
If you know what you're doing, you can add a full select statement into a SQL Expression... And Kurt is correct when he says that it may only return a single row of info. Don is also correct when he says that this not what SQL commands are designed for.
Here's what's happening...
When you link your tables in the Database Expert and drop fields onto the design surface (and optionally, add criteria to the Select Expert), CR builds out a SQL statement that can is to be sent out to the db server so that the data can be returned. You can view this SQL by going to Database > Show SQL Query...
When you add a SQL Expression, CR inserts it into the SQL Query as another data column. This is typically done to take advantage of functions that are available in the data base but not in CR.
A few crafty individuals, like Kurt, have figured out that you can in fact inset a full SELECT query into a SQL Expression and it will be inserted into the CR generated querie's SELECT list as a sub-query.
Bear in mind 2 things... #1) You have to be familiar with SQL syntax, namely you have to know the proper syntax for using sub-queries in a SELECT list in your data base. #2) CR doesn't officially support is behavior and they won't offer you any help if the current functionality is removed in later versions.
HTH,
Jason
Similar Messages
-
Crystal Report Windows Form Viewer - Error in compiling SQL Expression
I am using C# and the Crystal Reports API to render reports in a windows application. Recently we decided to start using SQL Expressions in our reports. The reports developers are able to use them in development, but as soon as we deploy the reports to production, we are seeing the following error.
Why does this work when developing forms but not when using the C# API?Hi Adam
I pinged couple of people here, but so far have not got a reply. I'll update this post as soon as I get anything.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Syntax Error when using SQL Expression
Morning all,
When I try to type any SQL Expression within Crystal I am getting syntax errors, even when I type only SELECT {field name} FROM {table name}.
Here is the query I did which gave me the following error:
Query
SELECT order_progress . date_created
FROM order_progress
WHERE order_progress . order_no = order_header . order_no
AND order_progress . order_status =77
ORDER BY order_progress . date_created DESC
Error
Error in compiliing SQL Expression
Database connector Error: 'HY000[Informix] [Informix ODBC Driver]General Error. Syntax Error[Database Vendor Code-11060]'.
Now this means, 1: I am getting a connection error with my db, for no apperent reason. 2: my syntax is not approved?!
Can someone explain why is this happening and how to resolve this?
many thanks
Kind Regards
JehanzebMorning Kyle,
Thanks for the informative answer, I have found out the formula which counts number of days however, I am not sure what you meant by the following:
>
Kyle McAdam wrote:
> create a formula that does the datediff....this will be a group.
Done this, it counts the working days as in weekdays and takes bank holidays out as well
here is the formula:
WhileReadingRecords;
//{order_progress.order_status}= 77;
//{order_header.order_status}>=77;
Local DateVar Start := {order_header.date_entered}; // Starting Date
Local DateVar End := {order_header.act_despatch}; // Ending Date
Local NumberVar Weeks;
Local NumberVar Days;
Local Numbervar Hol;
DateVar Array Holidays;
Weeks:= (Truncate (End - dayofWeek(End) + 1
- (Start - dayofWeek(Start) + 1)) /7 ) * 5;
Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
(if DayOfWeek(Start) = 1 then -1 else 0) +
(if DayOfWeek(End) = 7 then -1 else 0);
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek ( Holidays<i>) in 2 to 6 and
Holidays<i> in start to end then Hol:=Hol+1 );
Weeks + Days - Hol;
You will then have a formula field that is evaluated to 1, if the status is 77.
you mean second formula? How I used,
If Order_header.Order_Status=77 then
1
else
2;
however this doesn't seem to be working.
> Now, sum that formula in each group footer. Suppress the detail lines...
which formula to sum up?
> **Don't use a cross tab with this solution. For a cross tab, you would have to calculate the totals in a different manner.
so far I used Cross tab and it is showing the right days, however not showing the correct jobs per day.
You might be right there that it calculates the totals differently, additionally how am I suppose to get the right Percentage if using the Cross tab. The percentage should be, count of number of jobs % Total jobs.
hence:
{#NumofJobs} % {#Total_Jobs}
however, when I create this formula it does not let me add that into the cross tab.
I also need to put a subreport in my report, can I use Crosstab to contain a link to my subreport?
Many thanks
Kind Regards
Jehanzeb -
Errors when applying sql expression on filter, please help
Hello guys
I was trying to put a filter on the date column and filter between timestampadd(sql_tsi_day,-31,current_date) and current_date
I was successfully able to define both field on sql expression of the filter and I selected "is between"
However when I run reports it returns the following errors:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22024] A comparison is being carried out between non-compatible types. (HY000)
SQL Issued: SELECT "Year"."Transaction Date" saw_0 FROM tranSale_cube WHERE "Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date ORDER BY saw_0
When I using the same timestamp expression on the column formula and run report without filters, the report will return the correct date however though
I am using essbase as the data source.
Please help
ThanksThanks
However, the error still exist the same.. This error code returns when I run report based on this one single column
when I put this date column with measures and other columns then run report, I get a different error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
SQL Issued: SELECT Product."Brand Name" saw_0, "Up Level"."Trial - level 12" saw_1, "Year"."Transaction Year" saw_2, "Year"."Transactoin Month" saw_3, "Year"."Transaction Date" saw_4, tranSale.count_of_transactions saw_5, Avg(tranSale.count_of_transactions by "Up Level"."Trial - level 12", "Year"."Transactoin Month", Product."Brand Name") saw_6 FROM tranSale_cube WHERE ("Up Level"."Trial - level 12" IN ('0', 'Product Upsell')) AND ("Year"."Transactoin Month" >= '2009 Feb') AND ("Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4
I believe it must be something with the essbase that is not serving OBIEE well. Because I tried the same filter on a different environment not having essbase, it return me the right results..
Could anyone help?
Thanks -
Error 997 on SQL Express 2012 install for Windows 7
When installing SQL 2012 Express on my Windows 7 machine at home, I receive a
Error
997.Overlapped I/O operation is in progress
This happens when it is doing the 'Install Set Up Files' portion of the set up wizard. I am not on as a temporary user. I have tried turning off my anti-virus. I unistalled that MS update KB2918614, tried to load SQL without success
and then reinstalled KB2918614 again. I tried contacting Microsoft, but they want money. So, what is there left to try?Hello,
Please review all SQL Server requirements on the following link:
http://technet.microsoft.com/en-us/library/bb680951.aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Sql expression fields in subreports (CR XI)
Post Author: yyu
CA Forum: Data Connectivity and SQL
Is it normal that the sql expression fields don't show up in a subreport?
I don't see any. Does anyone know how? Thanks!Sorry for the delay getting back to you all.
I set up a report against the xtreme database sample. Added the Customer table, and put the columns "Customer ID" and "Customer Name" on the report. I then created a new SQL Expression and entered the following:
( SELECT SUM(`Orders`.`Order Amount`) FROM `Orders`
WHERE `Orders`.`Customer ID`=`Customer`.`Customer ID`)
I could save the new SQL Expression, which is farther than I got in the real report. I added the SQL Expression field to the report. But when I try to preview the report, I get an error:
Error in compiling SQL Expression :
Failed to open a rowset.
Details: ADO Error Code: 0x800004005
Source: Microsoft JET Database Engine
Description: Unspecified Error
Native Error: 62411
I suspect that's the MS Access version of the error I was getting with MySQL. -
SQL Expression for date conversion - version XI
I am trying to convert a number field to a date field in order to use it in a date parameter in Infoview. The database field is in a 15 digit DTM format but is stored as a number. There is also a zero stored in the database field. When I try to create the date SQL Expression I get this error: Error in compiling SQL Expression: Failed to retrieve data from the database. Details: ORA-01840: input value not long enough for date format. How can I get the SQL Expression to not look at the zero? I tried putting a statement in my Record Selection to not pull any zero fields but that doesn't work. Any ideas? Thanks! Kelley
Hi Kelly,
It's been a while since I used Info View, so if it's about registering, etc. I won't know the
answer.
Did you link it ? Have you tested that it should even return data ?
Check the filtering, etc in a query builder to make sure.
Have you tested the sub report by running it by itself ? (just add a value to the parameter
field request)
Do you have suppression formulas in the sub report ?
Is the section of the main report that is holding the sub report
free of "suppresion" formulas ? -
Hello everyone,
I'm having trouble with this SQL expression that works in 8.5, and XI R2 runtime and designer, but I cannot edit the expression. As soon as I open the SQL Expression and click the X-2 check button, the error following
SQL Expression I'm trying to run:
(Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
The Errror I Receive After Clicking the X-2 button:
Crystal Reports
Error in compiling SQL Expression :
Failed to retrieve data from the database.
Details: ADO Error Code: 0x
Source: SalesLogix OLE DB Provider
Description: The multi-part identifier "CEIHRPROJECTEDACTUAL.STAFFINGCHAINID" could not be bound.
Native Error: [Database Vendor Code: 181797304 ].
OK
This is the SQL statement passed to the database:
SELECT (Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
If I reverse the order of the where clause as follows, I do not get the error
(Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
This is the working SQL statement passed to the database.
SELECT (Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
FROM "sysdba"."CEIHRPROJECTEDACTUAL" "CEIHRPROJECTEDACTUAL"
I figured I would just reverse the where clause statements, but then I came to this one that I couldn't get to work:
(Select case when tmp.restartcount = 0 then 'F' else 'T' end from
(Select Count(b.restart) as restartcount from ceistaffing a inner join ceihrprojectedactual b on a.staffingchainid = b.staffingchainid
where a.candcontactid = (Select distinct candcontactid from ceistaffing a2 where a2.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
and b.restart = 'T'
and a.createdate = (Select min(a1.createdate) from ceistaffing a1
where a1.createdate > (Select max(a3.createdate)
from ceistaffing a3
where a3.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
and a1.candcontactid = a.candcontactid)) as tmp )
I've burned an entire day trying to find some solution. Are there any patches out there that will fix this?
I'm running Crystal Report XI Release 2 SP2 - Version 11.5.8.826
Thank you, ...RobOkay, to simplify the illustration of the problem Iu2019m facing, Iu2019ve created a bare bones example as described below:
I've created a report that returns all contacts from our "CONTACT" table. On the report, I've created a SQL expression to return a count of all contacts with the similar last name, as shown below:
(Select count(a1.ContactID) from CONTACT a1 where a1.LASTNAME = "CONTACT"."LASTNAME")
When I try to save the SQL expression, I get this error:
Crystal Reports
Error in compiling SQL Expression :
Failed to retrieve data from the database.
Details: ADO Error Code: 0x
Source: SalesLogix OLE DB Provider
Description: The multi-part identifier "CONTACT.LASTNAME" could not be bound.
Native Error: [Database Vendor Code: 205193720 ].
OK
This SQL expression works fine in CRW 8.5, but no luck in XI R2 SP4 - As mentioned above in the thread, this seems to be an issue solely with how XI R2 is parsing the SQL Expression. If I remove the "A1" alias from my expression all is good, but that will not work for some of the more advanced SQL expressions I have that are using joins and sub queries.
What will it take to get this recognized as an issue worthy of a hot fix? I'm at a stand-still here, facing the unfortunate possibility of having to re-architect many of my reports. Please help.
Thank you, ...Rob
Edited by: Rob Bartram on Aug 6, 2008 3:45 PM -
CR2008: MySQL ODBC Connection duplicating FROM statement in SQL Expression
Maybe I'm doing something wrong here, but I think maybe I'm not and that I've found a bug.
I'm doing a very simple select statement:
SELECT count(*)
FROM labtech.computers
WHERE os NOT LIKE %server%
When I do this statement, I get an error:
Crystal Reports
Error in compiling SQL Expression :
Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]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 'SELECT count(*)
FROM labtech.computers
WHERE os NOT LIKE %server% FROM `labtec' at line 1 [Database Vendor Code: 1064 ]'.
OK
There is nothing wrong with this sql statement, so I started digging a little, removing everything except for
Select *
Crystal Reports
Error in compiling SQL Expression :
Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]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 'SELECT *
FROM `labtech`.`clients` `clients1`' at line 1 [Database Vendor Code: 1064 ]'.
OK
You will see that it is adding the
FROM `labtech`.`clients` `clients1`
So, my questions is:
1) Is this an issue with CR2008 or the MySQL ODBC driver
2) If it's CR2008, how do I report it?
3) Can anybody else duplicate it?
Thanks in advance for any help.
-ScottHi Scott,
Lots of info in these forums, more info in the [Crystal Report Designer|SAP Crystal Reports; forum. If you search in there you'll find references to others who suggested training material. You can also click on the eLearning tab above and find more info...
Thank you
Don -
SQL Expressions in RAD -Getting error during runtime while generating rpt
Hi
We have just migrated from WSAD to RAD Version: 7.0.0.7.
The issue is: I am getting the error at the runtime when I am trying to use the SQL expression in my one of the report. The SQL Expression feature is not supported by this version of RAD. I checked the Help contents. It says
Field Objects: SQL expression fields
This report contains SQL Expression fields. These fields are not visible in this version of the Crystal Reports designer, but they will be evaluated by the system when the report is executed. New SQL Expression fields cannot be created by the designer. SQL Expression fields will remain in the .rpt file after saving and can be edited by other Crystal Reports designers
To me it seems you can use the 'SQL Expressions' in the report using some Crystal Reports designers and at the runtime it will be evaluated. So I edited my report with some Crystal Reports Designer and tested it on WSAD. It worked fine. Now since we have migrated to RAD, this is an issue since I am getting the following error:
ERROR [WebContainer : 0] com.crystaldecisions.reports.formatter.formatter.objectformatter - com.crystaldecisions.reports.dataengine.be: Failed to parse expression.
[12/17/08 15:12:14:750 EST] 0000001c SystemOut O 15:12:14,671 ERROR [WebContainer : 0] com.businessobjects.reports.sdk.JRCCommunicationAdapter - Failed to export report
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Failed to parse expression.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
When I remove the expression fields, it works fine on RAD too.
I am using following versions:
RAD Version: 7.0.0.7
Crystal Reports for Rational Application Developer Version: 11.5.6.v20080304.
Crystal Report Runtime Support version is 11.8.4.v1094
Please let me know if somebody has faced the similar issue.
Any help/suggestions would be appreciated.
Thanks,
KamalHi
We have just migrated from WSAD to RAD Version: 7.0.0.7.
The issue is: I am getting the error at the runtime when I am trying to use the SQL expression in my one of the report. The SQL Expression feature is not supported by this version of RAD. I checked the Help contents. It says
Field Objects: SQL expression fields
This report contains SQL Expression fields. These fields are not visible in this version of the Crystal Reports designer, but they will be evaluated by the system when the report is executed. New SQL Expression fields cannot be created by the designer. SQL Expression fields will remain in the .rpt file after saving and can be edited by other Crystal Reports designers
To me it seems you can use the 'SQL Expressions' in the report using some Crystal Reports designers and at the runtime it will be evaluated. So I edited my report with some Crystal Reports Designer and tested it on WSAD. It worked fine. Now since we have migrated to RAD, this is an issue since I am getting the following error:
ERROR [WebContainer : 0] com.crystaldecisions.reports.formatter.formatter.objectformatter - com.crystaldecisions.reports.dataengine.be: Failed to parse expression.
[12/17/08 15:12:14:750 EST] 0000001c SystemOut O 15:12:14,671 ERROR [WebContainer : 0] com.businessobjects.reports.sdk.JRCCommunicationAdapter - Failed to export report
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Failed to parse expression.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
When I remove the expression fields, it works fine on RAD too.
I am using following versions:
RAD Version: 7.0.0.7
Crystal Reports for Rational Application Developer Version: 11.5.6.v20080304.
Crystal Report Runtime Support version is 11.8.4.v1094
Please let me know if somebody has faced the similar issue.
Any help/suggestions would be appreciated.
Thanks,
Kamal -
Error using presentation variable in SQL Expression
Hi all,
I'm receiving an error - '...Error getting drill information...' due to a presentation variable being used in a SQL Expression. It probably has something to do with a data type issue. I've narrowed the error to the use of the presentation variable.
I'm setting a presentation variable, pres_mth_nme_to, from a dashboard prompt. The prompt contains a month name.
I'm using the presentation variable as part of a SQL Expression in a filter. The gist of the SQL Expression is to use the
presentation variable in a CASE and set a value accordingly. For example:
Column: Month Sort Value
Operator: Between
Value: *10*
SQL Expression: *Case @{pres_mth_nme_to}{some default} WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END*
The month name is character. If I were to hard code this, I don't recieve the error. For example:
CASE 'SEP' WHEN 'NOV' THEN '10' WHEN 'DEC' ...END
There something going on with the data type from the prompt and it being used in the comparison. If I use a CAST, the problem still exists.
CASE CAST(@{pres_mth_nme_to} as char(3)) WHEN 'NOV' THEN ... END
If I'm in Answers, the problem doesn't exist, I'm assuming because of the default values. If I'm on the dashboard, it does exist, I'm assuming because of recieving the prompt value.
I don't know what I'm missing. Any suggestions?
Thanks.DJ,
if the formula presented by you is exactly true, i mean it was not fabricated to present as an example in the forum, you should include the presentation variable in single quotes.
i.e. your formula must look somthing like
Case '@{pres_mth_nme_to}{some default}' WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END
let me know if it did solve the issue...
-bifacts
http://www.obinotes.com
Edited by: bifacts on Oct 25, 2010 1:50 PM -
SQL Express 2008 R2 Error:15209 - An error occurred during encryption
I am trying to install SQL Server Express 2008 R2 but it keeps failing .
The computer is Windows 7 x64, all the latest service packs and updates installed.
The application is by Greatland, called Yearli (formerly called WinFiler).
Last year’s WinFiler, which was installed on this PC, used SQL 2008 Express (x86).
This year’s version is using R2 and attempted to install a new database.
I have since uninstalled last year’s database.
When I run the Yearli install, it first attempts to install SQL Express 2008 R2, but the install fails with this error at the end of ERRORLOG:
Error: 15209, Severity: 16, State: 1. "An error occurred during encryption."
I have been researching this for days. What I have done so far, based on MSKB and other user posts, is the following:
Changed the account for the SQL service from Local System to NETWORK SERVICE.
Add NETWORK SERVICE to the “Protect” folder with Full permission added.
Neither of these have worked. SQL appears to be installed, but the service will not start.
In the Windows System log I get this message:
The SQL Server (WFP_SS8E) service terminated with service-specific error The specified resource name cannot be found in the image file..
In the Windows Application log I get this message:
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'. Diagnose and correct the operating system error,
and retry the operation.
The App log error is interesting because there is no E: drive on the system.
SFC /Scannow came up clean.
I don’t have any other ideas, so if anyone else does, I’d appreciate it.SQL appears to be installed, but the service will not start.
In the Windows System log I get this message:
The SQL Server (WFP_SS8E) service terminated with service-specific error The specified resource name cannot be found in the image file..
In the Windows Application log I get this message:
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'. Diagnose and correct the operating system error,
and retry the operation.
Hi dfosbenner,
According to your description, SQL Server fails to start and you get the error message (Operating system error 2……) in Windows Application log. To work around this issue, you might have to change the path of the files by running the following scripts from
the command prompt. The example is to put MSDB files in C drive, you can change the path of the files to other drives.
NET START MSSQL$SQLEXPRESS /f /T3608
SQLCMD -S .\SQLEXPRESS
ALTER DATABASE msdb MODIFY FILE ( NAME = MSDBData, FILENAME = 'C:\MSDBData.mdf');
ALTER DATABASE msdb MODIFY FILE ( NAME = MSDBLog, FILENAME = 'C:\MSDBLog.ldf');
go
exit;
NET STOP MSSQL$SQLEXPRESS
For more details, please review the following thread.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/54bbcac3-41c5-4a5d-a4f6-2669e538dc82/sqlserver-2008-express-install-error?forum=sqlexpress
Thanks,
Lydia Zhang -
I am performing silent installation for a named instance of SQL Server 2008 Express edition on a Windows 7 machine. The installation fails with Exit Facility Code
1203 and Error Code -2068643839.
PFB the details:
Operating System : Windows 7 Professional edition Service Pack 1
System Type : 64-Bit Operating System
SQL Express Installer : SQL Server 2008 Express Installer 32-bit (compatible with 64-bit OS)
I browsed through the MSDN and other forums. The root cause of this issue has been stated as the Windows user is not an administrator or windows user does not have the rights to modify the Microsoft SQL Server folder inside the Program Files folder. I have
checked for this common issues and the windows user is an administrator and has the sufficient rights to modify the
C:\Program Files(x86)\Microsoft SQL Server folder.
Appreciate if anyone can provide pointers to resolve this issue.
PFB the contents of Summary.txt file:
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
rerun SQL Server Setup.
Exit code (Decimal): -2068643839
Exit facility code: 1203
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
rerun SQL Server Setup.
Start time: 2014-01-28 15:59:43
End time: 2014-01-28 16:01:03
Requested action: Install
Log with failure: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20140128_155901\sql_engine_core_inst_Cpu32_1.log
Exception help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22
Machine Properties:
Machine name: ********
Machine processor count: 4
OS version: Windows Vista
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID
Feature Language
Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: C:\Program Files (x86)\DHL\EasyShip v5.3\SQL Express\Express\x86\setup\
Installation edition: EXPRESS
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: False
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Automatic
CONFIGURATIONFILE: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20140128_155901\ConfigurationFile.ini
ENABLERANU: True
ERRORREPORTING: False
FEATURES: SQLENGINE
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT AUTHORITY\LOCAL SERVICE
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTANCEID: DHLEASYSHIP
INSTANCENAME: DHLEASYSHIP
ISSVCACCOUNT: NT AUTHORITY\NetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
MEDIASOURCE: C:\Program Files (x86)\DHL\EasyShip v5.3\SQL Express\Express\
NPENABLED: 1
PID: *****
QUIET: True
QUIETSIMPLE: False
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\SYSTEM
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: NT AUTHORITY\SYSTEM
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 1
X86: False
Configuration file: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20140128_155901\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0xB8A6B4FA
MSI log file location: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20140128_155901\sql_engine_core_inst_Cpu32_1.log
MSI error description:
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20140128_155901\SystemConfigurationCheck_Report.htmPFB the details from sql_engine_core_inst_Cpu32_1.log file:
=== Verbose logging started: 1/28/2014 16:00:53 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Release\x86\setup100.exe ===
MSI (c) (D8:20) [16:00:53:535]: Resetting cached policy values
MSI (c) (D8:20) [16:00:53:535]: Machine policy value 'Debug' is 0
MSI (c) (D8:20) [16:00:53:535]: ******* RunEngine:
******* Product: C:\Program Files (x86)\DHL\EasyShip v5.3\SQL Express\Express\x86\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (c) (D8:20) [16:00:53:535]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (D8:20) [16:00:53:535]: Grabbed execution mutex.
MSI (c) (D8:20) [16:00:53:536]: Cloaking enabled.
MSI (c) (D8:20) [16:00:53:536]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (D8:20) [16:00:53:536]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (08:30) [16:00:53:538]: Running installation inside multi-package transaction C:\Program Files (x86)\DHL\EasyShip v5.3\SQL Express\Express\x86\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
MSI (s) (08:30) [16:00:53:538]: Grabbed execution mutex.
MSI (s) (08:94) [16:00:53:539]: Resetting cached policy values
MSI (s) (08:94) [16:00:53:539]: Machine policy value 'Debug' is 0
MSI (s) (08:94) [16:00:53:539]: ******* RunEngine:
******* Product: C:\Program Files (x86)\DHL\EasyShip v5.3\SQL Express\Express\x86\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (s) (08:94) [16:00:53:539]: Machine policy value 'TransformsSecure' is 0
MSI (s) (08:94) [16:00:53:539]: User policy value 'TransformsAtSource' is 0
MSI (s) (08:94) [16:00:53:539]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (08:94) [16:00:53:539]: Specified instance {B5153233-9AEE-4CD4-9D2C-4FAAC870DBE2} via transform :InstID01.mst;:InstName01.mst is already installed. MSINEWINSTANCE requires a new instance that is not installed.
MSI (s) (08:94) [16:00:53:539]: MainEngineThread is returning 1639
MSI (s) (08:30) [16:00:53:540]: User policy value 'DisableRollback' is 0
MSI (s) (08:30) [16:00:53:540]: Machine policy value 'DisableRollback' is 0
MSI (s) (08:30) [16:00:53:540]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (08:30) [16:00:53:540]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (08:30) [16:00:53:540]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (08:30) [16:00:53:540]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (08:30) [16:00:53:540]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (08:30) [16:00:53:540]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (08:30) [16:00:53:540]: Restoring environment variables
MSI (c) (D8:20) [16:00:53:541]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (D8:20) [16:00:53:541]: MainEngineThread is returning 1639
=== Verbose logging stopped: 1/28/2014 16:00:53 === -
Error in filter with SQL Expression
HI Experts,
I have a sql query which works fine, but have to_date funtion() in the where clause as below :
and oe.ORDERED_DATE BETWEEN to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
AND to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
and (ol.ORDERED_ITEM LIKE 'abckdo%' OR ol.ORDERED_ITEM LIKE 'xysalnb%')
I am trying to create an OBIEE report with filter where the values of the filter are select as SQL Expression. and gave value to first variable as "to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')" and the second variable as " to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')"
But the report is giving me an error. If I remove the date condition, then the report works fine. Can anyone give some inputs in resolving the problem. The mentioning of the HH24:MI:SS is very import to get the right resultset.
Thanks in Advance.
svrHi SVR,
I've had similar difficulties in the past with OBIEE and using the TO_DATE in the logical SQL expressions. I'm not sure if OBIEE recognizes TO_DATE or if it only recognizes TO_DATE is certain situations.
However, I believe OBIEE recognizes the CAST( AS DATE) in all situations. Here's what I would recommend doing.
1) Go into the connection pool associated with the report your creating and click on the second tab, "Connection Scripts"
2) In the "Execute on Connect" area, click the "New" button and paste the following code: alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS' ** this step changes the default DD-MON-YYYY format of Oracle, to the format you will be giving the data in.
3) Save the RPD and bounce the services if you made this change off-line.
4) Instead of using TO_DATE() on your formulas, use CAST('09-APR-2009 23:59:59' AS DATE). Since we changed the default DATE mask to be the format that you're passing in, you should no longer see any issues.
Hope that helps!
-Joe -
Error using Filter with SQL Expression
Hey all -
New to Oracle BI, and getting a problem with Filters that use SQL Expressions.
The column I'm filtering on is a 4 digit year, expressed as a VARCHAR2(4 byte) in the physical database. My SQL Expression in the filter is:
Column: CAL YEAR 4 DIGIT
Operator: Is equal to/in
SQL Expression: TO_CHAR(ADD_MONTHS(SYSDATE, -24), 'YYYY'))
when I click on the "Results" Tab I get the following error message:
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
I've isolated the issue to the expression above. If I put in a literal value and supply a four digit year like below it works:
Column: CAL YEAR 4 DIGIT
Operator: Is equal to/in
SQL Expression: *2008*
Any ideas on what's causing my problem?
Thanks!
Macmacearl wrote:
SQL View does not display unless data is returned by the query. Is that normal?
Also, none of these options shows the literal result of the expression we built, i.e.:
expression: CAST(YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -24, CURRENT_DATE)) as CHAR)
result: *2008*
Having the ability to test expressions and see their results would be very helpful in debugging. If anyone knows how to do that please share!
Thanks!
MacOk, Probably shoud have figured this out before, but in response to my own question, the way to view the result of an expression is to add the expression as a column and include it in the Table Presentation.
- Mac (he can be taught)
Maybe you are looking for
-
Adobe Acrobat 9 pro's windows installer appearing after right click on any file or application
I accidentally deleted the acrobat 9.0 manually from the program files. The acrobat doesn't work... There is also a nuisance. The windows installer for the Adobe acrobat keep on appearing when i right click a file or application. I have to cancel it.
-
V7 BB Desktop deleting outlook events
Hi there, So I have seen many discussions on this topic, but none seem to resolve/ explain how to fix the issue.. The problem is that on synchronization with outlook, my outlook calendar all my history has been deleted, and wants to continue to do th
-
Jobs says it's the best iPod Apple ever made. Then why won't it hold the music without needing to keep all my music on my computer? I'm supposed to always keep the cd's I want on my iPhone on my computer or else they will be deleted from my iPhone wh
-
Option Keys Don't Respond at All
Neither "Option" key on my white apple keyboard responds.....I can get functionality by switching keys, but this is not the best solution. Is this just a hardware issue? Mac Book 13 in Mac OS X (10.4.7)
-
Dear Friends, When I change, Insert, Delete telephone data, Fax data or SMTP data in the BP Relationship screen, I'm not getting any values for TASK field which is under E101XIF_PARTNER_REL_COMPLEX/E101BURS_EI_RELATION_DATA/E101BURS_EI_ADDRESS/E101BU