Reference in SQL Expression to a group key
Hello to everybody, i am working with a report in Crystal Report 11 and i need some help.
In the design of my report i have two groups corresponding to a table which has two keys. The first one belongs to an Id and the second to a datetime.
The fact is that i have to filter second group with a specific date that i have to obtain with a sql query. So i was thinking in using SQL Expression but i cant make it the right way because i cant filter in the where condition with the id of the superior group. I dont know how to write the where condition.
If anyone can help me i will be grateful.
Thanks.
Thank you Sastry for responding so quickly.
I think you dont understand me. I have this:
-Group 1: id
-Grupo 2: datetime
the field datetime i need to filter with a specific date. In order to be clear the SQL Expression i made to filter this datetime is:
(select max(datetime) from Table1)
That maximum datetime i need it be for each id in the Group 1 (so the sql expression is not a single value, its a single value for each id of Group1), but i can't put this in the sql expression:
(select max(datetime) from Table1 where Table1.id = Group1.id)
and then the other problem is how to filter the datetime in group 2 with the value of the SQL Expression
PD: Where is the option add command in crystal report?
Similar Messages
-
Grouping & Back-references with regular expressions on Replace Text window
I really appreciate the inclusion of the Regular Expressions in the search & replace feature. One thing I am missing is back-references in the replacement expression. For instance, in the unix tools vi or sed, I might do something like this:
s/\(firstPart\) \(secondPart\) \(oldThirdPart\)/\2 \1 newThirdPart/g
which would allow me to switch the places of firstPart and secondPart, and totally replace thirdPart. If grouping and back-references are already present in the Replace Text window, how does one correctly invoke them?duplicate of Grouping & Back-references with regular expressions on Replace Text window
-
CR IX R2: SQL Expression Editor - Max on Group
This works, but it only shows the MAX value of the entire column, for all teams:
(SELECT MAX("PlanSegment_Team"."priority")
FROM (("Plan" INNER JOIN "PlanSegment"
ON "Plan"."pkPlan"="PlanSegment"."fkPlan") INNER JOIN "PlanSegment_Team" "PlanSegment_Team"
ON "PlanSegment"."pkPlanSegment"="PlanSegment_Team"."fkPlanSegment") INNER JOIN "Team"
ON "PlanSegment_Team"."fkTeam"="Team"."pkTeam"
But I want to show the MAX value for each Team's list of priorities. The following is my best guess:
(SELECT MAX("PlanSegment_Team"."priority"), "PlanSegment_Team"."fkTeam"
FROM (("Plan" INNER JOIN "PlanSegment"
ON "Plan"."pkPlan"="PlanSegment"."fkPlan") INNER JOIN "PlanSegment_Team" "PlanSegment_Team"
ON "PlanSegment"."pkPlanSegment"="PlanSegment_Team"."fkPlanSegment") INNER JOIN "Team"
ON "PlanSegment_Team"."fkTeam"="Team"."pkTeam"
GROUP BY "PlanSegment_Team"."fkTeam")
but it gives me an error of
"Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."
Any help?Don,
Thanks for your quick response. Are you saying I just got lucky with my first expression, even though it uses SELECT?
If so, is there somewhere that will tell me exactly what SQL Expression Editor is supposed to be for? I'm trying to learn this stuff to make myself more job-marketable.
Thank you very much,
Gene -
Hello,
I have an issue while installing SQL Server 2008 R2 Express. When I was installing SQL Server, I occurred an error message as shown in the figure.
I have followed couple of links as in
this and
this links but it did not fix the issue. Can anyone help me on this issue?
Regards
GauravHi gauravroondhe2306,
According to your description, you fail to install SQL Server 2008 R2 express with the error that SQL Server Browser service group does not exist. Please help to post SQL Server setup error log for analysis. By default, SQL Server setup summary and detail
logs are located in C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log.
Based on my research, this issue could occur when you install SQL Server on a Domain Controller, or the machine's name has been changed and the browser service group is named with the original machine's name.
To troubleshoot the issue, you could follow the solutions below.
1.Use SQL Server 2008 R2 Best Practice Analyzer to detect if SQL Server is installed on a domain controller. If SQL Server is installed on a domain controller, please demote your machine from being a domain controller and install the SQL Server again since
it is not recommended to install SQL Server on a domain controller.
2.Check if the name of local user group matches the machine's current name. If it doesn't match, please change the name of the local user group accordingly, and install SQL Server again. For more information about the process, please refer to the article:
http://geekswithblogs.net/TedStatham/archive/2014/04/15/installation-problems-with-sql-server-2008-r2-express.aspx
Regards,
Michelle Li -
Cannot find service {0}. Parameter name: SQLWriter SQL Express 2008 R2 SP2
Hi, installing SQL Express 2008 R2 SP2 onto Windows Server 2012 R2. I had previously removed SQL Express 2012 due to failed install due to incompatibility with our SAN. (I had uninstalled it via Programs & Features,
and also by following Shanky's tips. http://social.technet.microsoft.com/wiki/contents/articles/24364.sql-server-troubleshooting-could-not-find-database-engine-startup-handle-error-during-installation.aspx).
This is what's in Detail log:
014-10-07 13:12:00 Slp: Parameter 5 : SqlEngineConfigAction_install_confignonrc
2014-10-07 13:12:00 Slp: Parameter 6 : 0x50806C41
014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_
2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL
Server.reg_
2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
2014-10-07 13:12:02 Slp: Cannot find service {0}.
The SqlEngineConfigAction_install_confignonrc part is what is in the background before the
Cannot find service {0}. Parameter name: SQLWriter pops up.
And in Event Viewer:
Log Name: Application
Source: Microsoft-Windows-RestartManager
Date: 10/7/2014 1:11:48 PM
Event ID: 10010
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer:
Description:
Application 'C:\31f53f2e988a36f2c31e\x64\setup100.exe' (pid 688) cannot be restarted - Application SID does not match Conductor SID..
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RestartManager" Guid="{0888E5EF-9B98-4695-979D-E92CE4247224}" />
<EventID>10010</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-07T20:11:48.532980400Z" />
<EventRecordID>4538</EventRecordID>
<Correlation />
<Execution ProcessID="732" ThreadID="2548" />
<Channel>Application</Channel>
<Computer></Computer>
<Security UserID="S-1-5-18" />
</System>
<UserData>
<RmUnsupportedRestartEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
<RmSessionId>0</RmSessionId>
<Pid>688</Pid>
<FullPath>C:\31f53f2e988a36f2c31e\x64\setup100.exe</FullPath>
<DisplayName>Managed SQL Server Installer</DisplayName>
<AppVersion>0</AppVersion>
<AppType>5</AppType>
<TSSessionId>2</TSSessionId>
<Status>67108865</Status>
<Reason>1</Reason>
</RmUnsupportedRestartEvent>
</UserData>
</Event>
Found one article saying you can get this if previous version not fully removed, and to do a repair of the previous version, but as I said I uninstalled it and followed all steps for cleanup, so nothing to repair.Here is the ERRORLOG file from C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log. At the bottom I am seeing the error you said before was a SAN issue. I had hoped that issue was only with
SQL 2012, but it appears it is even with 2008?
If that is still the issue, I'm trying to understand if by the articles, if the SAN conflict is an OS issue or an SQL issue? In other words, is it because the OS is Server 2012? Or would this still occur if I install SQL
2008 on Server 2008 R2? I don't know that they will be willing to upgrade the SAN, and I don't really want to fool with a .VHD (virtual disk) as a workaround speaks of.
If you're asking if I did this from your article: select startup account for Database Engine services as NT Authority\SYSTEM
, I don't recall what I did this last time. I was doing that the last few days, but I think I didn't switch it to that once, just to see if I would have success. I don't know if that was this last time or not when I switched it.
Is there anywhere I can check that after the fact?
014-10-08 12:53:09.84 Server Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
Jun 28 2012 08:36:30
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
2014-10-08 12:53:09.84 Server (c) Microsoft Corporation.
2014-10-08 12:53:09.84 Server All rights reserved.
2014-10-08 12:53:09.84 Server Server process ID is 2640.
2014-10-08 12:53:09.84 Server System Manufacturer: 'IBM', System Model: 'IBM System x -[7870AC1]-'.
2014-10-08 12:53:09.84 Server Authentication mode is WINDOWS-ONLY.
2014-10-08 12:53:09.84 Server Logging SQL Server messages in file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2014-10-08 12:53:09.84 Server This instance of SQL Server last reported using a process ID of 2848 at 10/8/2014 10:56:44 AM (local) 10/8/2014 5:56:44 PM (UTC). This is an informational message only; no user action is required.
2014-10-08 12:53:09.84 Server Registry startup parameters:
-d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
-e c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
-l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2014-10-08 12:53:09.84 Server Command Line Startup Parameters:
-m SqlSetup
-f
-Q
-q SQL_Latin1_General_CP1_CI_AS
-T 4022
-T 4010
-T 3659
-T 3610
-T 902
-d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf
-l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf
2014-10-08 12:53:09.86 Server Warning: The server instance was started using minimal configuration startup option (-f). Starting an instance of SQL Server with minimal configuration places the server in single-user mode automatically.
After the server has been started with minimal configuration, you should change the appropriate server option value or values, stop, and then restart the server.
2014-10-08 12:53:09.86 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-10-08 12:53:09.86 Server Detected 16 CPUs. This is an informational message; no user action is required.
2014-10-08 12:53:10.00 Server Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2014-10-08 12:53:10.01 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2014-10-08 12:53:10.01 Server Lock partitioning is enabled. This is an informational message only. No user action is required.
2014-10-08 12:53:10.03 Server Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
message only. No user action is required.
2014-10-08 12:53:10.05 Server Support for distributed transactions was not enabled for this instance of the Database Engine because it was started using the minimal configuration option. This is an informational message only. No
user action is required.
2014-10-08 12:53:10.06 spid7s Warning ******************
2014-10-08 12:53:10.06 spid7s SQL Server started in single-user mode. This an informational message only. No user action is required.
2014-10-08 12:53:10.06 spid7s Starting up database 'master'.
2014-10-08 12:53:10.08 spid7s Error: 5178, Severity: 16, State: 1.
2014-10-08 12:53:10.08 spid7s Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector
size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
2014-10-08 12:53:10.09 spid7s Error: 5178, Severity: 16, State: 1.
2014-10-08 12:53:10.09 spid7s Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector
size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
2014-10-08 12:53:10.09 spid7s Error: 5178, Severity: 16, State: 1.
2014-10-08 12:53:10.09 spid7s Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf' because it was originally formatted with sector size 4096 and is now on a volume with
sector size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
2014-10-08 12:53:10.09 spid7s Error: 5178, Severity: 16, State: 1.
2014-10-08 12:53:10.09 spid7s Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf' because it was originally formatted with sector size 4096 and is now on a volume with
sector size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size. -
*** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'ClientPushMachine_G_AK'. Cannot insert duplicate key in object 'dbo.ClientPushMachine_G'. The duplicate key value is (16777412). : sp_CP_CheckNewAssignedMachine
CCCRT::RunSQLStoredProc - Failed to execute SQL cmd exec [sp_CP_CheckNewAssignedMachine] N'xxx', 1
CCRQueueRequest::GetRequestFromQueue - Failed to execute SQL cmd sp_CP_CheckNewAssignedMachine
I get the above issue and the one below at a client site; the error started with the error below then changed to the one reported above and back to the one below. Everything is working as it should but the issues
started when one of the admins at the data-centre incorrectly applied a gpo which affected a number of service accounts (sccm inclusive) and they expired....hence reporting in sccm got broke as well as this error in the ccm.log file appeared.
Remote client install still works but I believe this error affects new client discovered by sccm, so in other words devices discovered by sccm do not get the client installed automatically....but if all access and permissions are in place...pushing out the
client to the new discovered system works, it just not done automatically, which kinda defeats one the reasons for using sccm.
I have searched the breadth of the tinternet and I can only find two technet reference to the same error - one says to edit the stored procedure on the sql server which I don't think should be done... Like Jason said and I concur....its bad joo joos.
The second suggestion, said you should select all the options in the Client Push Installation properties, I have tried this but hasn't solved the problem.
I am planning to upgrade the site to the R2 CU3 before the end of the year but I would like to resolve this error before the upgrade.
The site is currently sccm 2012 sp1
Any idea?> Resolution? sil vous plait!
MerciHi ,
Please back up the database of the SCCM site. Then run the following query against the Site DB and see how it goes.
DELETE FROM System_SMS_Resident_ARR
WHERE ItemKey IN (
SELECT ItemKey FROM vSystem_SMS_Resident_ARR
GROUP BY ItemKey
HAVING COUNT(ItemKey) > 1
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
SQL Express 2008 R2 will not start on Windows 7 Home
Ok, This used to work, and then over night my system rebooted and now I cannot start SQL Express 2008 R2 after I have unistalled, and re-installed. Cleared out the folders and the certificates, changed the Named Pipes configuration and all to
no avail. Here is my log file.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2014-06-14 08:45:18.18 Server Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
Jun 17 2011 00:54:03
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
2014-06-14 08:45:18.18 Server (c) Microsoft Corporation.
2014-06-14 08:45:18.18 Server All rights reserved.
2014-06-14 08:45:18.18 Server Server process ID is 8924.
2014-06-14 08:45:18.18 Server System Manufacturer: 'SAMSUNG ELECTRONICS CO., LTD.', System Model: '700Z3A/700Z4A/700Z5A/700Z5B'.
2014-06-14 08:45:18.18 Server Authentication mode is MIXED.
2014-06-14 08:45:18.18 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG'.
2014-06-14 08:45:18.18 Server This instance of SQL Server last reported using a process ID of 2820 at 6/14/2014 8:32:55 AM (local) 6/14/2014 1:32:55 PM (UTC). This is an informational message only; no user action is required.
2014-06-14 08:45:18.18 Server Registry startup parameters:
-d C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\master.mdf
-e C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG
-l C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\mastlog.ldf
2014-06-14 08:45:18.18 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-06-14 08:45:18.18 Server Detected 8 CPUs. This is an informational message; no user action is required.
2014-06-14 08:45:18.21 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2014-06-14 08:45:18.23 Server Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
message only. No user action is required.
2014-06-14 08:45:18.25 spid7s Starting up database 'master'.
2014-06-14 08:45:18.28 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'ACT7'.
2014-06-14 08:45:18.29 spid7s SQL Trace ID 1 was started by login "sa".
2014-06-14 08:45:18.29 spid7s Starting up database 'mssqlsystemresource'.
2014-06-14 08:45:18.30 spid7s The resource database build version is 10.50.2500. This is an informational message only. No user action is required.
2014-06-14 08:45:18.32 spid7s Server name is 'MARTINDAHL-PC\ACT7'. This is an informational message only. No user action is required.
2014-06-14 08:45:18.32 spid10s Starting up database 'model'.
2014-06-14 08:45:18.32 spid7s Informational: No full-text supported languages found.
2014-06-14 08:45:18.32 spid7s Starting up database 'msdb'.
2014-06-14 08:45:18.33 Server Error: 17190, Severity: 16, State: 1.
2014-06-14 08:45:18.33 Server Initializing the FallBack certificate failed with error code: 1, state: 1, error number: -2146893802.
2014-06-14 08:45:18.33 Server Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2014-06-14 08:45:18.33 Server Error: 17182, Severity: 16, State: 1.
2014-06-14 08:45:18.33 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2014-06-14 08:45:18.33 Server Error: 17182, Severity: 16, State: 1.
2014-06-14 08:45:18.33 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2014-06-14 08:45:18.33 Server Error: 17826, Severity: 18, State: 3.
2014-06-14 08:45:18.33 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2014-06-14 08:45:18.33 Server Error: 17120, Severity: 16, State: 1.
2014-06-14 08:45:18.33 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
-=-=-=-=-=-=-=-=-=-=
I am logged into either the Administrator Account or my Account in which I am in the Adminstrator Group or an Admin. My OS is Windows 7 Home Premium Edition, so I cannot clear out the MSSQL groups and things I have seen online. Since this
is Express, there is limited capabilities with the config tool.
I have tried to change the log in as in the SQL Configuration tool and every item I check, Local Service, Local System, Network Service all give the same error,
"Cannot Find Object or Property. [0x80042004]
SInce I have Home Premium, MMC will not load the snap in for Local Users and groups to check out these items.
A check of the net user shows only the Administrator, Guest and my local login in Admin Account. net localgroups show these items.
*Administrators
*Distributed COM Users
*Event Log Readers
*Guests
*HomeUsers
*IIS_IUSRS
*IIS_WPG
*Performance Log Users
*Performance Monitor Users
*SQLServer2005SQLBrowserUser$MARTINDAHL-PC
*SQLServerFDHostUser$MartinDahl-PC$ACT7
*SQLServerMSSQLServerADHelperUser$MARTINDAHL-PC
*SQLServerMSSQLUser$MartinDahl-PC$ACT7
*SQLServerSQLAgentUser$MARTINDAHL-PC$ACT7
*Users
The command completed successfully.
I checked the SSL and Force Encryption is set to no and the certificates have been cleared.
I am not sure how to solve this problem. Please help. Thanks, in advance.I created a new Administrator account on the machine, mdahl. I then started the SQL Configuration Tool and changed the log on to this new account. Same problem. Here is the SQL Log.
2014-06-14 11:24:15.83 Server Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
Jun 17 2011 00:54:03
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
2014-06-14 11:24:15.83 Server (c) Microsoft Corporation.
2014-06-14 11:24:15.83 Server All rights reserved.
2014-06-14 11:24:15.83 Server Server process ID is 11448.
2014-06-14 11:24:15.83 Server System Manufacturer: 'SAMSUNG ELECTRONICS CO., LTD.', System Model: '700Z3A/700Z4A/700Z5A/700Z5B'.
2014-06-14 11:24:15.83 Server Authentication mode is MIXED.
2014-06-14 11:24:15.83 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG'.
2014-06-14 11:24:15.83 Server This instance of SQL Server last reported using a process ID of 5952 at 6/14/2014 11:21:35 AM (local) 6/14/2014 4:21:35 PM (UTC). This is an informational message only; no user action is required.
2014-06-14 11:24:15.83 Server Registry startup parameters:
-d C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\master.mdf
-e C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG
-l C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\mastlog.ldf
2014-06-14 11:24:15.83 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-06-14 11:24:15.83 Server Detected 8 CPUs. This is an informational message; no user action is required.
2014-06-14 11:24:15.87 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2014-06-14 11:24:15.88 Server Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
message only. No user action is required.
2014-06-14 11:24:15.90 spid7s Starting up database 'master'.
2014-06-14 11:24:15.91 spid7s 1 transactions rolled forward in database 'master' (1). This is an informational message only. No user action is required.
2014-06-14 11:24:15.91 spid7s 0 transactions rolled back in database 'master' (1). This is an informational message only. No user action is required.
2014-06-14 11:24:15.91 spid7s Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
2014-06-14 11:24:15.92 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'ACT7'.
2014-06-14 11:24:15.93 spid7s SQL Trace ID 1 was started by login "sa".
2014-06-14 11:24:15.93 spid7s Starting up database 'mssqlsystemresource'.
2014-06-14 11:24:15.93 spid7s The resource database build version is 10.50.2500. This is an informational message only. No user action is required.
2014-06-14 11:24:16.03 spid7s Server name is 'MARTINDAHL-PC\ACT7'. This is an informational message only. No user action is required.
2014-06-14 11:24:16.03 spid10s Starting up database 'model'.
2014-06-14 11:24:16.03 spid7s Informational: No full-text supported languages found.
2014-06-14 11:24:16.03 spid7s Starting up database 'msdb'.
2014-06-14 11:24:16.03 Server Error: 17190, Severity: 16, State: 1.
2014-06-14 11:24:16.03 Server Initializing the FallBack certificate failed with error code: 1, state: 1, error number: -2146893802.
2014-06-14 11:24:16.03 Server Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2014-06-14 11:24:16.03 Server Error: 17182, Severity: 16, State: 1.
2014-06-14 11:24:16.03 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2014-06-14 11:24:16.03 Server Error: 17182, Severity: 16, State: 1.
2014-06-14 11:24:16.03 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2014-06-14 11:24:16.03 Server Error: 17826, Severity: 18, State: 3.
2014-06-14 11:24:16.03 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2014-06-14 11:24:16.03 Server Error: 17120, Severity: 16, State: 1.
2014-06-14 11:24:16.03 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
Also, the link you provided is to Windows Vista, not Windows 7 Home Premium. However, I did look at the registry setting they said to look at in the link.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Under the ProfileList subkey, delete the subkey that is named <var>SID</var>.bak.
Note <var>SID</var> is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The <var>SID</var>.bak subkey should contain a ProfileImagePath registry entry that points to the original profile
folder of the user account that is experiencing the problem.
Exit Registry Editor.
Looking into my registry for my ProfilesList as mentioned. I have these items.
S-1-5-19 Folder with Default (Value not set), Flags (REG_DWORD) 0x0000000, ProfileImagePath (REG_EXPANDS_SZ) C:Windows\ServiceProfiles\LocalService, State (REG_DWORD) 0x0000000
S-1-5-20 Folder with Default (Value not set), Flags (REG_DWORD) 0x0000000, ProfileImagePath (REG_EXPANDS_SZ) C:Windows\ServiceProfiles\NetworkService, State (REG_DWORD) 0x0000000
Then I have an item for each of my three accounts, Administrator, Martin Dahl, and mdahl, All admin Accounts, which has no sid.bak, but a Sid, so not sure how this link helps me either. Still looking for assistance. Still not starting. -
I Have the following interface in oracle data integrator
http://i44.tinypic.com/2mrsmxt.png
# it execute successfully before inserting the following expression
In the mapping I insert the following SQL expression to get the average when the quantity is 0
AVG(
CASE WHEN TEST.QUN = 0 THEN
(SELECT TEST.QUN FROM TEST
WHERE TEST1.PRUDU=TEST.PRUDU
AND TEST1.FLOW=TEST.UNIT
AND TEST1.UNIT=TEST.UNIT
AND to_char(TEST.DATEDDD,'MON')= to_char(TEST1.DATEDDD,'MON')
AND TEST1.DATEDDD !=TEST.DATEDDD
GROUP BY TEST.QUN
ELSE TEST.QUN
END)
when I check this expression in ODI ..
# the sql expression is correct for this RDMS
when I executed the interface i get this error
Caused By: java.sql.SQLSyntaxErrorException: ORA-00937: not a single-group group function
any idea ?I changed the code a little ..
CASE WHEN TEST.QUN = 0 THEN
(SELECT AVG(TEST.QUN) FROM TEST
WHERE TEST1.PRUDU=TEST.PRUDU
AND TEST1.FLOW=TEST.FLOW
AND TEST1.UNIT=TEST.UNIT
AND to_char(TEST.DATEDDD,'MON')= to_char(TEST1.DATEDDD,'MON')
AND to_char(TEST.DATEDDD,'YYYY')!= to_char(TEST1.DATEDDD,'YYYY')
ELSE TEST.QUN
END
And I get this error ..
ORA-01427: single-row subquery returns more than one row tips.
The TEST Table from the source and TEST1 is a lookup table because I couldn't do the alais in ODI
In sql developer I did the following code that will do the same thing and work successfully ..
update test B
set B.qun=
(SELECT AVG(TEST.QUN) FROM TEST
WHERE TEST.FLOW=B.UNIT
AND TEST.UNIT=B.UNIT
AND TEST.PRUDU=b.prudu
AND TEST.FLOW=b.flow
AND to_char(TEST.DATEDDD,'MON')= to_char(B.DATEDDD,'MON')
AND to_char(TEST.DATEDDD,'YYYY')!= to_char(B.DATEDDD,'YYYY')
where B.qun=0;
any help ?
thanksssss
naif .. -
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 -
Select Expert or SQL Expression Fields help
I am trying to do something I would consider very simple but can figure it out.
I have two tables. FDC_Trips & Facility. On the report I can get the FDC_Trips.DivertedbyFacility field to populate a number value because that field is an integer. But we need the name to show up. That field is the ID (foreign key) of a Facilty which matches with the field Facility.Code. Instead of it displaying the DivertedbyFacility number/ID I would like it to be able to show the Facility.Name value. If I place the filed Facility.Name field on my report it is blank.
How can I write a where clause to query the Name of the Facility where the Facility.Code = FDC_Trips.DivertedbyFacility?
Do I use the Select Expert or SQL Expression Fields.
Please advise.Actually you'll use the Links tab in the Database Expert. If CR did it's stupid auto linking thing... delete them. It usually get's it wrong.
Now just link the fk field in FDC_Trips to the pk field in Facility. Once you have that done you'll be able to simply drop Facility.FacilityName directly onto the report.
HTH,
Jason -
SQL Express 2008 R2 - CREATE DATABASE permission denied in database 'master'
I have created a setup application with SQLEXpress 2008 as a prerequisite. On test SQLExpress installs OK
after the application is installed it must create and install a database using a mixture of SMO and Scripting. I used SMO to add the current user (who is a Windows Administrator) as a Login to the SQL Express server.
Dim l As Login = New Login(srv, My.User.Name)
l.LoginType = LoginType.WindowsUser
l.AddToRole("sysadmin")
l.DefaultDatabase = "MASTER"
l.Create()
It fails on srv.CreateDatabase with error message "permission denied in database MASTER"
this thread talks about converting the server to single user mode before adding a login
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/86daf5f5-d333-40b1-ae6f-0da052a96600
how is it possible to scrip this? there is no documentation i can find.
the database must be installed in the ProgramData folder. Is there a permissions issue with this. Do I need to assign permissions to this folder somehow?
bear in mind this will be a remote install and the user expects it work flawlessly. No manual interventionsif i connect to the sqlexpress instance (local)\SQLEXPRESSS using SQL Management Studio and try to modify the Windows User Login I get the error message:
"User does not have permission to perform this action. (Microsoft SQL Server, Error: 15247)"
how is this possible. it seems to be at an impasse. can't go forward or backward
Now try launching Managenment Studio by right clicking on shortcut and choosing "Run As Adminitstartor".
If above works then you are running on Windows 2008 family OS (Vista, 2k8 or Win7) which has
UAC feature.
If above does not work then you really don't have permission then follow below.
Troubleshooting: Connecting to SQL Server When System Administrators Are Locked Out
Start the instance of SQL Server in single-user mode by using either the
-m or
-f options. Any member of the computer's local Administrators group can then connect to the instance of SQL Server as a member of the
sysadmin fixed server role.
http://msdn.microsoft.com/en-us/library/dd207004.aspx
Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog: http://blogs.msdn.com/blakhani
Team Blog: http://blogs.msdn.com/sqlserverfaq -
Entity Object (EO) issue using "Derived from SQL Expression" funtionality
I am using JDeveloper 11.1.1.6
In my use case I am trying to get my EO to return results from a query such as the following:
SELECT table1.my_id,table1.my_des,
count(table2.store_num) as storeCount
FROM table1
LEFT JOIN table2
ON table1.my_id = table2.my_id
group by table1.my_id,table1.my_des
I have chosen to follow the path described in the following URL:
http://www.exploreoracle.com/2010/09/07/using-transient-attribute-with-derived-from-sql-expression-in-jdeveloper-11g/
To begin with, I created my EO's and VO's by using the "Business Components from Tables" wizard. This created EO and VO's for my 2 tables based on the DB schema.
I added the VO's to an app module and tested both VO's. I was able to navigate both VO's.
I then crreated a new attribute for the table1 EO. Please note that table1 does include 7 fields prior to this field therefore this becomes the 8th field. That is important once you get to the exception being thrown. The XML is as follows
<Attribute
Name="StoreCount"
IsUpdateable="false"
IsQueriable="false"
IsPersistent="false"
Precision="5"
Scale="0"
ColumnName="STORECOUNT"
SQLType="NUMERIC"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
Expression="(select coalesce(count(*),0) as StoreCount from table2 where my_id = table1.my_id)">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="STORE_COUNT"/>
</SchemaBasedProperties>
</Properties>
</Attribute>
I then tested the VO's again in the app module and everything continues to work fine.
I then added the new attribute to the VO by doing "Add Attribute from Entity".
I then tested the VO for Table1 and now get the following error. Could you please advise me as to what I might be doing wrong.
[132] oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 8 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1375)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3068)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2785)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1259)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1060)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2810)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:779)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4474)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:347)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1605)
at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:116)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
at oracle.jbo.jbotester.tree.ObjTreeNode$ShowAction.doAction(ObjTreeNode.java:399)
at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:97)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
... 81 more
## Detail 0 ##
java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3068)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2785)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1259)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1060)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2810)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:779)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4474)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:347)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1605)
at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:116)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
at oracle.jbo.jbotester.tree.ObjTreeNode$ShowAction.doAction(ObjTreeNode.java:399)
at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:97)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[133] JUErrorHandlerDlg.reportException(oracle.jbo.AttributeLoadException)
[134] LoadFromResultSet failed (8)
[135] DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
[136] oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 8 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1375)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:2258)
at oracle.jbo.uicli.binding.JUIteratorBinding.internalGetCurrentRowInBinding(JUIteratorBinding.java:500)
at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:2203)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalCheckPermission(JUCtrlActionBinding.java:2050)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:325)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1342)
at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1331)
at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1246)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at java.awt.Component.show(Component.java:1585)
at java.awt.Component.setVisible(Component.java:1537)
at java.awt.Window.setVisible(Window.java:842)
at java.awt.Dialog.setVisible(Dialog.java:986)
at oracle.jbo.uicli.controls.JUErrorDialog.showError(JUErrorHandlerDlg.java:289)
at oracle.jbo.uicli.controls.JUErrorHandlerDlg$1myRunnable.run(JUErrorHandlerDlg.java:370)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
... 60 more
## Detail 0 ##
java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:2258)
at oracle.jbo.uicli.binding.JUIteratorBinding.internalGetCurrentRowInBinding(JUIteratorBinding.java:500)
at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:2203)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalCheckPermission(JUCtrlActionBinding.java:2050)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:325)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1342)
at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1331)
at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1246)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at java.awt.Component.show(Component.java:1585)
at java.awt.Component.setVisible(Component.java:1537)
at java.awt.Window.setVisible(Window.java:842)
at java.awt.Dialog.setVisible(Dialog.java:986)
at oracle.jbo.uicli.controls.JUErrorDialog.showError(JUErrorHandlerDlg.java:289)
at oracle.jbo.uicli.controls.JUErrorHandlerDlg$1myRunnable.run(JUErrorHandlerDlg.java:370)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)The Is Updatable attribute on the EO is false which I assume is the same as never. Here is the current config for it:
<Attribute
Name="StoreCount"
IsUpdateable="false"
IsQueriable="false"
IsPersistent="false"
Precision="5"
Scale="0"
ColumnName="STORECOUNT"
SQLType="NUMERIC"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
Expression="(select coalesce(count(*),0) as StoreCount from table2 where my_id = table1.my_id)">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="STORE_COUNT"/>
</SchemaBasedProperties>
</Properties>
</Attribute>
This attribute is in the same order in the VO and it is in the EO. The VO code is as follows:
<ViewAttribute
Name="StoreCount"
IsUpdateable="false"
IsQueriable="false"
IsPersistent="false"
PrecisionRule="true"
EntityAttrName="StoreCount"
EntityUsage="MyTable2EO"/>
The VORowImpl has the attributes in the same order as well.
Do you have any additional suggestions. -
Need to create a SQL Expression Field based on this query - or can someone tell me how to do it CR syntax?
SELECT Count("ordhdr"."ACCT_NO")
FROM ordhdr
WHERE (dt_in between '2011-01-01 and '2011-10-31')create a group, group off of account number.
Your select statement should be close to this.
in Date (2011, 01, 01) to Date (2011, 10, 31)
You can drop your fields into the detail section.
Right click the ordhrd select insert summary, group 1, and change it from sum to count.
You can suppress the details.
The corresponding SQL would look something like this.
SELECT `ordhdr`, `acct_no`, `DT`
FROM `Datasource name`
WHERE (`DT`>=#2011-01-01 00:00:00# AND DT`<#2011-10-31 00:00:01#)
ORDER BY `acct_no` -
SQL Expression Fields not showing
Hello,
I want to use "SQL Expression Fields", however, it doesn't appear in the Field Explorer.
The only options that appear in my Field Explorer are:
- Database Fields
- Formula Fields
- Parameter Fields
- Running Total Fields
- Group Name Fields
- Special Fields
I am connecting to Oracle 10g Rel.2 with ODBC.
I have no problems creating reports with queries that access the database.
Do you have any idea about why the option doesn't appear?
CesarPost Author: synapsevampire
CA Forum: Data Connectivity and SQL
V361 is mistaken, SQL Expression fields are available in CRXI.
As with previous versions though, it turns off depending upon the type of database and connectivity used.
Try using a real SQL database, or if MS Access, set up an ODBC connection to the database.
In the future include your database in your post to avoid guess work on our part.
-k -
SQL Expression field with parameter
Hello,
I am trying to create a SQL Expression Field that will give me the maximum status date of an employee before a certain date entered in parameter.
ex: select max(status_date) from status where status_date < formula field or parameter
Since I can not put a paramter or a formula field in a SQL Expression field, I might need a template or an example of something that works ?
Thank's
Steph
Edited by: Stephanie Charest on Aug 4, 2008 7:59 PMOk,
The only way I found to get the maximum status date of an employee with the date entered in parameter was to litteraly put each employee ID, and Status Date in the Detail section.
Then in the select expert create the parameter date.
Then I created a running total field that counts the employees and resets on change of employee sorted by status date.
Then I created a formula that gets all the first occurences of this running total field and if the running total field equals 1, a new formula field shows 1 and if not (2 and more), it shows 0.
But I can't find the way to give me the total that I need for each group sections.
It's ok if the SQL expression field does not work, but I need to find a way to get the max date.
Thank's for your help for the SQL Expression field.
Steph
Maybe you are looking for
-
Problem with NetConnection in Adobe AIR(Flex) using Flash Media Server.
Hi I am creating a small chat application using Flash Media server. I have already created all my user interface components in Flex(Adobe AIR).In this application rather than sending text messages user can also send file to another user in his frie
-
Did a fresh install of Adobe Acrobat 9.0 Pro on my Windows 7 Enterprise 64 bit system and it is not working properly. When I try to launch Distiller it crashes. When I try to print to the Adobe PDF printer, the application asks to save to a location
-
New computer, but long time itunes and Ipod mini user. Downloaded itunes with no apparent difficulty. Clicked to run it, but hourglass flashed for a second, then no action. Repeated tries resulted in the same thing. Then, after disabling Norton and o
-
Ok apple I have one complaint and that is the fact that when I am on the Internet with my iPod I can't get onto the AppStore because it says cannot connect to iTunes store
-
I just want to ask if this is possible: Certain group of APs will advertise a specific SSID which will not be advertised by other APs. thanks,