Transaction - a few SQL-Expressions

How can I execute a few SQL-Expressions.
Only the first SQL-Expression was executed. When i want to execute more SQL-Expressions then I get an Exception.
OK here is my code:
I hope its not too much.
The Connect class is at the end.
//add col at postgres 7.2 i need to use this version
public int addCol(String tabname,String tNewArea,String tNewDTyp,
String tNewLo,String tNewHi,String tNewNull,
String tNewPK){
try {
//Connect class with DriverManager or is DataSource better,
//but I need to use host,post,dbname,user,pw
con = Connect.openConnection(host,_port,_dbname,_user,_pw);
//is this a good way to do this with setAutoCommit
_con.setAutoCommit(false);
String sql="ALTER TABLE "+tabname+" ADD COLUMN "+tNewArea+" "+tNewDTyp+check;
stmt=con.prepareStatement(sql);
int res=_stmt.executeUpdate();
//pk exists ?
String pk=getPrimary(tabname);
//pk del
if(tNewPK.equals("Ja")){
if(pk!=null){
if(!pk.equals("")){
sql="DROP INDEX "+tabname+"_pkey";
stmt=con.prepareStatement(sql);
System.out.println(_stmt);
res = _stmt.executeUpdate();
System.out.println("col:"+res);
//pk add
sql="ALTER TABLE "+tabname+" ADD PRIMARY KEY("+tNewArea+")";
stmt=con.prepareStatement(sql);
System.out.println(_stmt);
res =_stmt.executeUpdate();
System.out.println("pk:"+res);
Connect.closeConnection(_con,_stmt,_rs);
_con.commit();
return 1;
catch(Exception e) {
try{
_con.rollback();
System.out.println("Transaktion at addCol failed");
catch(SQLException sql){
System.out.println("Exception at addCol: "+sql.getMessage());
finally {
Connect.closeConnection(_con,_stmt,_rs);
return -1;
public class Connect
//open connection
public static Connection openConnection(String host,String port,String db,String user,String pw)
Connection con = null;
try{
// Class.forName(driver);
con = DriverManager.getConnection("jdbc:postgresql://"+host+":"+port+"/"+db,user,pw);
return con;
catch (SQLException e) {
System.out.println("Exception in openConnection: "+e.getMessage());
catch (Exception exc){
return con;
//close connection
public static void closeConnection (Connection con, PreparedStatement stmt, ResultSet rs) {
if (rs != null) {
try {
rs.close();
catch (SQLException e) {}
if (stmt != null) {
try {
stmt.close();
catch (SQLException e) {}
if (con != null) {
try {
con.close();
catch (SQLException e) {}
Many thanks in advance
Olaf

Did you check wat kind of exception you are getting? May be the first sql statement itself is generating some db error which results in an exception being thrown.

Similar Messages

  • 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.

  • 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.

  • SQL Expression Field - Combine Declared Variable With Case Statement

    Hello All, I have been using Crystal & Business Objects for a few months now and have figured out quite a bit on my own. This is the first real time I have struggled with something and while I could do this as a Formula Field I would like to know how to do this as a SQL Expression. Basically I want to create a SQL Expression that uses a CASE statement but I wanted to make the code a little more efficient and employ a variable to hold a string and then use the variable in the CASE statement. The expression editor accepts the CASE statement OK but I don't know how to declare the variable. Please assist with the syntax?
    This is what I have:
    CASE
       WHEN u201CDatabaseu201D.u201DFieldu201D = u2018Hu2019 THEN u2018Hedgeu2019
       WHEN u201CDatabaseu201D.u201DFieldu201D = u2018Pu2019 THEN u2018PVIu2019
       ELSE u2018Noneu2019
    END
    This is what I want:
    DECLARE strVar AS VARCHAR(25)
    strVar =  u201CDatabaseu201D.u201DFieldu201D
    CASE
       WHEN strVar = u2018Hu2019 THEN u2018Hedgeu2019
       WHEN strVar = u2018Pu2019 THEN u2018PVIu2019
       ELSE u2018Noneu2019
    END

    Hi Todd,
    Please use the following for loop; your problem will be solved.
    Local StringVar str := "";
    Local NumberVar strLen := Length ({Database.Field});
    Local NumberVar i;
    For i := 1 To strLen Do
           if {Database.Field} <i> = "H" then str := "Hedge"
            else if {Database.Field} <i> = "P" then str := "PVI"
            else str := "None"; exit for
    str
    Let me know once done!
    Thank you,
    Ashok

  • MS SQL Express 2008 Installation Failure (Facility Code/Error Code : 1203/-2068643839)

    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.htm

    PFB 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 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

  • Sql expression fields - odbc drivers

    We are using Crystal 2008 with SAP ECC 6.0, and the database is sql server 2005. We had Integration kit installed. We have developed few reports with this one from ECC 6.0.
    My problem is, I am not able to see the SQL EXPRESSION FIELDS in the FIELD EXPLORER of CR 2008. From the replies for my
    previous postings in other forums here and from the feed back of Don Williams, I understood there is a problem with odbc drivers.
    I checked trying with new report and tried using ODBC(RDO) but found no drivers. The ODBC data source window showing "dBASE Files, Excel Files & MS Access Database" in the data source Names field.
    Even from my machine, I checked the ODBC drivers and found only the above three were present in the user DSN tab of ODBC data source administrator window. Shall I have to add ODBC drivers for SQL Native client OR SQL server OR both (FROM THE DRIVERS TAB)?
    Will there be any other ODBC is required for SAP INTEGRATION?
    What are the steps to resolve this and to activate and use the drivers? so that I can see SQL Expression fields & also "Show sql query".
    BABASHARI

    Hi,
    So by establishing the connectivity through the proper transports and authorizations done to CRM, can I build
    single report by getting the data from two tables one from ECC and another from CRM?
    >> which then means for SSO you need to configure 2 SAP systems on the BusinessObjects Server
    And one more question, If I could not succeed in getting the connectivity through the proper transport & authorization to
    CRM, (lack of basis resources) then can I use BAPI / RFC'S to pull the data from CRM into ECC and then into CRYSTAL(as, ECC is working fine with crystal through the integration kit)? Is it a good practice? Thanks in advance.
    >> for CR then the ECC system would become the single point of entry. sure - that would work as well - but shoulnd't be necessary
    Ingo

  • SQL Command/SQL Expression Fields

    CR XI R2
    Hi All,
    Here's the situation.
    There is an SQL table of lookup codes.  The columns in the table are "FIELD", "VALUE", and "DESCR".
    The data looks like
    CRA_TYPE      RV     Receiving
    CRA_TYPE      AJ      Adjustment
    CUST_TYPE    MD     Medical
    CUST_TYPE    RT      Retail
    The main datatables contain a "VALUE" in a particluar "FIELD" and I need to be able to retrieve the appropriate "DESCR" to output on the report.
    There is a stored procedure that takes 'FIELD" and "VALUE" and selects "DESCR" but I can't figure out how to set it up as a formula field and pass parameters to it for each line.
    It is basically
    SELECT DESCR FROM tbLookUp WERE [FIELD]=@FIELD AND [VALUE]=@VALUE
    The "FIELD" parameter would be static (in this case "CRA_TYPE") and the "VALUE" parameter would be the value of the CRA_TYPE field in each datarow.
    I can't just use the "VALUE" since more than one field might have the same "VALUE" but a different "DESC".  Only the combination of "FIELD" and "VALUE" is unique.
    I've been playing with SQL Commands and SQL Expression Fields with no success.  There aren't a lot of samples to look at especially the SQL Expression Fields.
    I could create a new stored procedure that would just send in the translation but I don't want to create a stored procedure for every report and almost all the reports will need a similiar transaction scenario.
    Any help would be greatly appreciated.  
    Thanks in advance.
    Larry

    Yes, I am pretty familiar with Crystal, at least in the routine stuff and pretty good in VB and SQL.
    In normal SQL I would retrieve it with a join to the LookupTable.
    like: JOIN tbLookUp ON tbLookUp.FIELD = 'CRA_TYPE' AND ( tbLookUp.[value] = tbCRA.CRA_TYPE)
    and then just add to the SELECT statement:   tbLookUp.DESCR
    However, I can't find anyway to use the Database Expert to add the FIELD='CRA_TYPE" to the linking process
    I was hoping the "SQL Expression Fields" might hold the answer but the documentation and examples on their use is pretty slim.
    I was hoping for a way to run something like:  SELECT DESCR FROM tbLookUp WHERE FIELD = 'CRA_TYPE' AND [value] = {tbCR_AUDIT.CRA_TYPE} which would evaluatefor each record like a Formula Field which I could then just insert into the report.
    Everything I've tried in the formula editor for an SQL Expression is no good, but run just fine in the SQL Server Management Studio.
    I could just skip the "Database Expert" completly and write an SQL Expression as a "SQL Command" that would retrieve it but I'm trying to use the "Database Expert" for ease of maintenance by other people later on and keep as much as I can in CR.
    Maybe I'm asking CR for too much.
    Thanks

  • Regarding Restrictions on calling functions from sql expressions

    Hi all,
    While going through the functions of oracle 9i plsql documentation i came across restrictions on calling a function, i that i did not understand the following statement. can anyone explain me with an example. Please.........
    Functions called from SQL statements cannot contain statements that end the transactions.
    Regards,
    Sri Ram.

    Some where from google
    http://www.ucertify.com/article/what-are-the-restrictions-on-a-user-defined-function-that-is-called-from-a-sql-expression.html
    >
    •The function cannot contain statements that end the transaction. For example, the function cannot contain transaction control statements (such as COMMIT), session control statements (such as SET ROLE), or system control statements (such as ALTER SYSTEM). Also, it cannot contain DDL statements (such as CREATE) because they are followed by an automatic COMMIT.

  • SQL EXPRESS DOWNLOAD

    Hi,
    I'm planning on doing a small home business application.
    I read that I could use a free sql express database for this, please advise if this is accurate and can anyone sugesst an easy place for this download.
    I've followed a few links so far but not getting anywhere.
    Thanks
    Rebekah

    Hi Rebekah2084,
    Microsoft SQL Server 2014 Express is a free, feature-rich edition of SQL Server that is ideal for learning, developing, powering desktop, web & small server applications, and for redistribution by ISVs. The SQL Server 2014 Express release includes the
    full version of SQL Server 2014 Management Studio.
    Here is link to download http://www.microsoft.com/en-gb/download/details.aspx?id=42299
    Thanks
    Please Mark This As Answer if it solved your issue 
    Please Mark This As Helpful if it helps to solve your issue 

  • SQL Express 2005

    Hi,
    Does anyone know if SAP B1 can run on SQL Express 2005 db. An error occurs when creating the tables for new db. Could it be access rights?
    Thanks.

    We have the same problem on a SQL Server 2005 9.00.4035.00.  Windows 2003, SP2.
    I am not able to use the SQL Server Configuration Manager or Surface Area Configuration Manager tools.  When I open them, I get the error messages excerpted below:
    Configuration Manager:  Cannot connect to WMI provider......The specified module could not be found.
    Surface Area Configuration (both options):  .....An exception occurred in SMO while trying to manage a service (Microsoft.sqlserver.smo).  Failed to retrieve data for this request (Microsoft.Sqlserver.SmoEnum)........
    This must have happened sometime in the past few weeks, because it worked a few weeks ago.  It works fine on all the other SQL 2005 servers.  If the server is changed to another sql server, using the tool on the problem server, it works fine.  If I log onto another server, and change the tool to point to this problem server, it gives the same error messages.  SQL Services and the WMI service are started.  Rebooting does not affect it.  I tried the mofcomp suggestion with no effect.  None of the suggestions in this thread above have solved this issue.
    Do you think reinstalling Client Tools might solve it?  I do not know if these configuration tools are installed with database engine or client tools.

  • 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
    Thanks

    Thanks
    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

  • SQL Expression in decode function or case statement?

    Can I put SQL expressions in decode function or case statement?
    For example,
    select le.profile, decode( select count(1) from profile_data where NAME= 'XXXX_AFTER' and object_id = le.profile, 0, 'N', 'Y')
    from element le;
    or
    select le.profile, case WHEN ( select count(1) from profile_data where NAME= 'XXXX_AFTER' and object_id = le.profile) = 0 THEN 'N'
    ELSE 'Y'
    from element le;
    None of the above work.
    Can anyone tell me how to make it work?
    Is there any workaround?
    Thanks,
    J

    You simply needed and END to your CASE statement;
    SQL> with profile_data as (
       select 'XXXX_AFTER' name, 1 object_id from dual),
         element as (
       select 1 profile from dual union all
       select 2 from dual)
    select le.profile,
       case WHEN ( select count(1) from profile_data where NAME= 'XXXX_AFTER' and object_id = le.profile) = 0
       THEN 'N'
       ELSE 'Y'
       END new_col
    from element le
       PROFILE N
             1 Y
             2 N

  • NOT ABLE TO SEE SQL EXPRESSION FIELDS IN CR2008

    Hi,
    I am not able to see the SQL EXPRESSION FIELDS in the FIELD EXPLORER of CR 2008.Can
    you please help me
    BABASHARI

    Hi,
    I would suggest you open the question in the Crystal Reports forum.
    Ingo

  • 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,
    Kamal

    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,
    Kamal

Maybe you are looking for

  • Flash 8 Application consuming lots of Memory!!

    Hi There, I just developed an Application using Flash 8 Professional. Unfortunately Im finding a bad memory usage when i run the Application. Visual Studio acts as the container for the SWF. The memory usage rises upto 80% and its really not acceptab

  • Create GR with with RG23D using BAPI or FM

    Hi,   We are using the 'BAPI_GOODSMVT_CREATE' to create the GR with this, the GR is created properly, I want to know along with creating the GR can we capture the excise inovice with BAPI, for depot plant. there si one BAPI 'BAPI_EXCINV_CREATE_FROMDA

  • Apple ID & password being asked for certain songs

    For  some reason I am being asked for my Apple ID & Password for certain songs and even when I do enter the correct information It still will not play the song it will just skip ahead. Even though I purcahsed these songs from iTunes when I deleted on

  • Mail connection by missing quantity

    Hi, I would like to customize the System: by missing quantity in production order, when we post the new GR  from the material, production scheduler or MRP controller has to recieved an email (mail connection). Can I give another email-address (Outloo

  • Contact photo and .mac

    Hello, I have contacts in the address book with photos and after sync address book with dot.mac I cannot see photos in my contacts. Please advise how I can sync photos with dot.mac.