Sql to verify the calculation of end_date of SCD2 dimension

create table SRC
(CUST_no    NUMBER(9,0),
C_TYPE      VARCHAR2(2),   
EFFECTIVE_DATE    DATE(7));
INSERT INTO SRC VALUES('56039', 'MM', '1/04/2010');
INSERT INTO SRC VALUES('56039', 'RS', '10/08/2011');
INSERT INTO SRC VALUES('16039', 'MM', '1/04/2011');
INSERT INTO SRC VALUES('17039', 'XM', '1/04/2011 10:00:00');
INSERT INTO SRC VALUES('17039', 'MM', '1/04/2011 13:00:00');
INSERT INTO SRC VALUES('17039', 'OS', '5/04/2011');
commit;
create table TARGET_RESULT 
(t_KEY    NUMBER(22),
T_CUST_NO    NUMBER(9,0),
T_C_TYPE      VARCHAR2(2),
EFFECTIVE_DATETIME    DATE(7),
END_DATETIME    DATE(7),
DW_CURRENT_FLAG    VARCHAR2(1));
INSERT INTO TARGET_RESULT VALUES('a123','56039', 'MM', '1/04/2010', '09/08/2011 23:59:59', 'N');
INSERT INTO TARGET_RESULT VALUES('a125','56039', 'RS', '10/08/2011', '31/12/2999', 'Y');
INSERT INTO TARGET_RESULT VALUES('b222', '16039', 'MM', '1/04/2011', '31/12/2999', 'Y');
INSERT INTO TARGET_RESULT VALUES(‘c111’,'17039', 'XM', '1/04/2011 10:00:00', '01/04/2011 12:59:59', ‘N’);
INSERT INTO TARGET_RESULT VALUES(‘c124’,'17039', 'MM', '1/04/2011 13:00:00', '05/04/2011 23:59:59', ‘N’);
INSERT INTO TARGET_RESULT VALUES(‘e111’,'17039', 'OS', '5/04/2011', ‘31/12/2999', ‘Y’ );
commit;Rules for Target_Result table;
i.     Check if the incoming (src) and target current record are different (at least for one chosen attribute)
ii.     If they are same, do nothing
iii.     If they are different, do the following
1)     For the record in the target table, change (update) the END_DATETIME to (EFFECTIVE_DATETIME - 1second (i.e effective_datetime-1/(24*60*60)) of the succeeding record and set the DW_Current_flag to ‘N’
2)     Take the incoming record (src), generate a surrogate key, enter source record’s date as the EFFECTIVE_DATETIME and the default date as the END_DATETIME (31/12/2999). Also set the DW_Current_flag to ‘Y’. Insert into the dimension
I want to take the source table and apply the SCD2 rules to verify/test rule (1) has been executed correctly in the target_result table (i.e SCD Type 2 dimension) .
How can it get the correct succeeding record and verify the rule.
Am using Oracle 11g.
Edited by: user628919 on 1/09/2011 09:52

Hello,
do you know where can I configure "Total Compensation Statement"? I'm working in ERP 2004.
I've created a new form in Smart Forms and now I want to change the default form used in the Portal.
Thanks a lot
Antonio

Similar Messages

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (p

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Connecting to the LOB system has failed. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is

    hi ,
    when generate the schema , i  got the below error, please any one put your inputs:
    Connecting to the LOB system has failed.  A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server
    is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).

    thaks shanky,
    but facing another , after generate schema from  WCF_SQL, im unable get elements in my schema.
    this is schema generate from storeprocduer , but thru WCF-sql im unable get the elements like
    id, name
    <xsd:schema targetNamespace="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:schema="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sqltypes="http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault="qualified">
      <xsd:import namespace="http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation="http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" />
      <xsd:element name="Test.dbo.sample">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="id" type="sqltypes:int" minOccurs="0" />
            <xsd:element name="name" minOccurs="0">
              <xsd:simpleType>
                <xsd:restriction base="sqltypes:nvarchar" sqltypes:localeId="1033" sqltypes:sqlCompareOptions="IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId="52">
                  <xsd:maxLength value="1000" />
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>19</id>
      <name>sw</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>14</id>
      <name>swe</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>13</id>
      <name>se</name>
    </Test.dbo.sample>

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
    server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
    How Can i solve this?

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Moving Average Price Verification - How to verify the MAP calculation

    Hello,
    The material that we purchase are managed with the price control S. Therefore every Good entry and Good Issue is valuated at the standard price regarding the Balance sheet valuation.
    At the End of the Month during the Month End closing, the MRN0 transcation is applied to identify the MAP unit price of a Material and this value is copied in the Tax Price 1 of the accounting view 2 (MBEW-BWPRS).
    Afterwards, the transaction MRN9 is carried out to calculate the MAP adjustment to amend the Balance Sheet valuation in order to get the MAP valuation of the Material.
    I know that way of the calulation of the MAP unit price based on the Good receipt and the Invoice receipt variance.
    I have 2 issues regarding this process:
    --> The MAP adjustment is recorded by valuation class whereas it would be helfull to have the recording of the MAP adjustment by Material
                     ==> Do you know an other way to solve this issue
    --> It's impossible to verify the MAP unit price calculation during the month
                     ==> Do you know a SAP table (not the MBEWH, which is not usefull) which track for each stock movement (Good issue or good entry) the Total MAP value and Total quanity before the movement plus the MAP value and the quantity of the movement
    Thank you in advance
    Regards
    Edited by: PMUNIER on May 25, 2011 2:16 PM

    Hi<
    Check in t.code: CKMPCSEARCH
    OR
    Check in  table S031 in SE11 t.code
    Regards,
    Biju K

  • The installed version of SQL Server could not be verified or is not supported. Verify that the computer and the installed version of SQL Server meet the minimum requirements for installation

    Hi Guys,
    Currently i am trying to install SCOM2012R2 with SQL 2012 SP1. When i proceed with SCOM installation, getting an error
    "The installed version of SQL Server could not be verified or is not supported. Verify that the computer and the installed version of SQL Server meet the minimum requirements for installation, and that the firewall settings are correct. See the Supported
    Configurations document for further information.
    SQL Collation i selected as per System Center2012 guide SQL_Latin1_General_CP1_CI_AS
    Can some one please help me on this?
    Regards
    Kris
    Kris

    Hi,
    Please check logs for further information. Let us know what the logs says:
    http://www.systemcentercentral.com/opsmgr-2012-my-installation-failed-what-log-files-do-i-read-and-where-can-i-find-them/
    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.

  • How to use the Calculated attibute in view object

    Hi,
    I have a view object query with the calculated attribute name as 'TRANCODE' in the below sql.This query works for the initial page loading.
    After the page gets loaded, there is a search section in the same page at the top.
    Here i will have to build the whereclause to the same query and retrieve the values.
    i am using jDeveloper 10.1.3.1, with adf and jHeadstart.
    Can some one tell as how to use the calculated attribute TRANCODE in whereclause?
    SELECT /*+ first_rows(10) */
    BatchCntl.FILE_CNTL_ID,
    CASE WHEN chk_bit(Entry.ENTRY_FLAGS, 2)='Y' OR Entry.ENTRY_SUBSTATUS = 'D' OR Entry.ENTRY_SUBSTATUS = 'J'
    THEN
    CASE eeh.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE eeh.TRAN_CODE
    END
    ELSE
    CASE Entry.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE Entry.TRAN_CODE
    END
    END AS TRANCODE,
    FROM Batch_Cntl BatchCntl, Entry, ENTRY_EDIT_HIST eeh
    WHERE (BatchCntl.BATCH_TYPE = 'E')
    AND (BatchCntl.BATCH_STATUS in ('A','D','R','P'))
    AND entry.in_batch_cntl_id = BatchCntl.BATCH_CNTL_ID
    and Entry.fi_rt = eeh.fi_rt (+)
    and Entry.entry_id = eeh.entry_id (+)
    AND (Entry.ENTRY_STATUS in ('A','D','R','P'))
    ORDER BY BatchCntl.BATCH_CNTL_ID, Entry.entry_id
    regards
    Raj.

    Let's say your application module is com.yourcompany.someapp.services.MyService, and let's say you authored a method like the following in the MyServiceImpl.java file:
      public void doSomething(int i, String s) {
      }and you exposed this AM custom method using the AM editor.
    BC4J design time will automatically create you the com.yourcompany.someapp.services.common.MyService interface that will look like this if you go look at the source code:
    package com.yourcompany.someapp.services.common;
    import oracle.jbo.ApplicationModule;
    public interface MyService extends ApplicationModule {
      public void doSomething(int i, String s);
    }To use your custom method from a client, just cast your ApplicationModule to your custom interface like this:
    import com.yourcompany.someapp.services.common.MyService;
      MyService mySvc = (MyService)yourAM;
      mySvc.doSomething(1,"foo");

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

    Server Error in '/' Application.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
    System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.GridView.DataBind() +4
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    On what website/link did you received this error message ??

  • I Need Help to Access The Source Code From A Form to Know the Calculation Formula

    Hi,
    I Need Help to Access The Source Code From A Form to Know the Calculation Formula. The application is a windows form application that is linked to SQL Server 2008. In one of the application forms it generates an invoice and does some calculations. I just
    need to know where behind that form is the code that's doing the calculations to generate the invoice, I just need to get into the formula that's doing these calculations.
    Thank you so much.

    Hi, 
    Thanks for the reply. This is a view and [AmountDue] is supposed to be [CurrentDueAmount] + [PastDueAmount] - [PaidAmount]. The view is not calculating [PaidAmount] right . Below is the complete code of the view. Do you see anything wrong in the code ?
    Thanks. 
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [iff].[FacilityFeeID], [LoanID] = NULL, [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_fee].[SectionType], [Name]
    = [iff].[Name], [ReceivedAmount], [dates].[CurrentDueAmount], 
                          [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply reset to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN 0 ELSE
    [pastdue].[PastDueFeeAmount] END, [PaidAmount] = CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN - [pastdue].[PastDueFeeAmount]
    ELSE 0 END, [AmountDue] = [unpaid].[UnpaidFeeAmount], [ID] = [iff].[FacilityFeeID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_FacilityFee] iff ON [if].[ID] = [iff].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_fee].[ID],
    [sis_fee].[SectionTypeCode], [SectionType] = [st_fee].[Name], [sis_fee].[INV_FacilityFeeID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_fee JOIN
                   [dbo].[INV_SectionType] st_fee ON [sis_fee].[SectionTypeCode] = [st_fee].[Code]
                                WHERE      [INV_FacilityFeeID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_fee ON [iff].[ID] = [isis_fee].[INV_FacilityFeeID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedFeeAmount]), 
                   [ReceivedAmount] = SUM([iffa].[ReceivedFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_fee].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     *
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [SectionID],
    [PastDueFeeAmount] = SUM([PastDueFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_loan].[SectionType], [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount], [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount], 
                          0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount],
    0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, 
                          [PaidAmount] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN 0 ELSE CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END END, 
                          [AmountDue] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN [CurrentDueAmount] ELSE [unpaid].[AmountDue] END, [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_loan ON [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[ExpectedPrincipalAmount]), 
                   [ReceivedAmount] = SUM([ReceivedPrincipalAmount])
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidPrincipalAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDuePrincipalAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = 'PIK Interest Applied', [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount] = - [dates].[CurrentDueAmount], 
                          [PastDueAmount] = - CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, [PaidAmount] = - CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END, [AmountDue] = - [AmountDue], [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL' AND [sis_loan].[SectionTypeCode] = 'LOAN_INT_PIK') isis_loan ON 
                          [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                   [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]

  • Upgrade OM 2012 to SP1 Beta - Version of SQL Server for the Operational Database and the Data Warehouse

    Hello,
    When I try to verify the prerequisites to upgrade my SCOM 2012 UR2 Platform to SP1 Beta, I have these errors :
    The installed version of SQL Server is not supported for the operational database.
    The installed version of SQL Server is not supported for the data warehouse.
    But when I execute this query Select @@version on my MSSQL Instance, the result is :
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) (Hypervisor) 
    But
    here, we can see that :
    Microsoft SQL Server: SQL Server SQL 2008 R2 SP1, SQL Server 2008 R2 SP2, SQL Server 2012, SQL Server 2012 SP1, are supported.
    Do I need to pach my MSSQL Server with a specific cumulative update package ?
    Thanks.

    These are the requirements for your SQL:
    SQL Server 2008 and SQL Server 2012 are available in both Standard and Enterprise editions. Operations Manager will function with both editions.
    Operations Manager does not support hosting its databases or SQL Server Reporting Services on a 32-bit edition of SQL Server.
    Using a different version of SQL Server for different Operations Manager features is not supported. The same version should be used for all features.
    SQL Server collation settings for all databases must be one of the following: SQL_Latin1_General_CP1_CI_AS, French_CI_AS, Cyrillic_General_CI_AS, Chinese_PRC_CI_AS, Japanese_CI_AS, Traditional_Spanish_CI_AS, or Latin1_General_CI_AS.  No other collation
    settings are supported.
    The SQL Server Agent service must be started, and the startup type must be set to automatic.
    Side-by-side installation of System Center Operations Manager 2007 R2 reporting and System Center 2012 Service Pack 1 (SP1), Operations Manager reporting on the same server is not supported.
    The db_owner role for the operational database must be a domain account. If you set the SQL Server Authentication to Mixed mode, and then try to add a local SQL Server login on the operational database, the Data Access service will not be able to start.
    For information about how to resolve the issue, see
    System Center Data Access Service Start Up Failure Due to SQL Configuration Change
    If you plan to use the Network Monitoring features of System Center 2012 – Operations Manager, you should move the tempdb database to a separate disk that has multiple spindles. For more information, see
    tempdb Database.
    http://technet.microsoft.com/en-us/library/jj656654.aspx#BKMK_RBF_OperationsDatabase
    Check the SQL server agent service and see whether it is set to automatic AND started. This got me confused at my first SP1 install as well. This is not done by default...
    It's doing common things uncommonly well that brings succes.

  • Insert data into sql database where the values are in an array

    Hello Experts,
    using vbscript i want to store data in MS SQL. i have prepared a script which works fine when i provide the static value but in actual i get the values in an array and now want to store values from there.
    Below is not complete code but the block in question.
    oRecordset_Working.Open "INSERT INTO tbl_work (release, version, state, Arch)" & _
    "VALUES ('5.2', '11.25' , 'Active', 'XYZ')", _
    oConnection, adOpenStatic, adLockOptimistic
    i verified the database and can see the information is feeded.
    What i really want to make work is:
    for i=0 to UBound (arrValues)
    oRecordset_Working.Open "INSERT INTO tbl_work (release, version, state, Arch)" & _
    "VALUES ('arrValues(i)')", _
    oConnection, adOpenStatic, adLockOptimistic
    Next
    logically it is incorrect as INSERT query comes inside the loop but then how can someone make it work?
    can someone help me with this?
    -KAKA-

    Here is the preferred method of inserting multiple values into multiple fields.  It is very fast and very easy to set up.
    Const adBSTR = 8
    Const adInput = 1
    Const CONNECTION_STRING = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\temp\test.mdb;Persist Security Info=False"
    Const SQL_INSERT = "INSERT INTO Table1(ID, Name, Notes) VALUES(?, ?, ?)"
    Set conn = CreateObject("ADODB.Connection")
    conn.Open(CONNECTION_STRING)
    Set cmd = CreateObject("ADODB.Command")
    With cmd
    .ActiveConnection = conn
    .CommandText = SQL_INSERT
    .Prepared = True
    ' create parameter object and assign to command object
    .Parameters.Append .CreateParameter("ID", adBSTR, adInput)
    .Parameters.Append .CreateParameter("Name", adBSTR, adInput)
    .Parameters.Append .CreateParameter("Notes", adBSTR, adInput)
    End With
    ' bind and insert values
    For i = 2 To 10
    cmd.Parameters("ID") = "ID" & i
    cmd.Parameters("Name") = "Joe" & i
    cmd.Parameters("Notes") = "My notes"
    cmd.Execute
    Next
    conn.Close
    ¯\_(ツ)_/¯

  • Can a pl sql cartridge get the client certificate through ssl in OAS

    I am In a web publishing system project, I use SSL and client certificate to verify the user, the environment is OAS4.0.6 and Oracle 8i, and I use PL SQL cartridge to proceed the http request , Now the problem is how can I get the client certificate infomation in my pl sql scripts, I do not know where should i post this problem, So I post it here, If you have any experience in using SSL of OAS, pls help me!
    tsailiang
    [email protected]
    thank you very much!

    Sorry wrong forum.....
    This forum is for the Internet File Server (ifs) not the oracle application server (oas), sometimes known as iAS or Oracle9i Applicaiton Server.
    null

  • Visual Studio 2005 The remote connection to the device has been lost. Please verify the device connection and restart debugging.

    Basically I've been using Visual Studio 2005 for a few weeks now moving a Pocket PC project from 2003 to 2005. When I hit the Start Debugging Button every time until today the project would rebuild and deploy to my pocket PC allowing me to debug etc but now I get
    The remote connection to the device has been lost.
    Please verify the device conection and restart debugging.
    I used to get this problem in VS2003 sometimes and just like the numerous posts on different sites that I've looked at the problem eventually goes away and I'm none the wiser. One guy said that he found that if he went to bed the problem was resolved when he came back!
    My PDA running Windows 2003 2nd Edition is directly connected to my PC via a USB port. I've rebooted my PC and done a soft reset on the PDA but it didn't help. I'm using ActiveSync 4.1.
    Does anyone know how to resolve this problem?

    I still can't debug. I have just tried a hard reset and I get the same problem
    The build output is as follows
    ------ Build started: Project: BO, Configuration: Debug Any CPU ------
    BO -> C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\BO\bin\Debug\BO.dll
    ------ Build started: Project: Printing, Configuration: Debug Any CPU ------
    No way to resolve conflict between "System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes" and "System.Data.SqlServerCe, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes". Choosing "System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes" arbitrarily.
    Printing -> C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\Printing\bin\Debug\Printing.dll
    ------ Build started: Project: MobileSeller, Configuration: Debug Any CPU ------
    Consider app.config remapping of assembly "System.Data, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll] to solve conflict and get rid of warning.
    Consider app.config remapping of assembly "System.Windows.Forms, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.dll] to solve conflict and get rid of warning.
    Consider app.config remapping of assembly "System, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll] to solve conflict and get rid of warning.
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
    MobileSeller -> C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\bin\Debug\MobileSeller.exe
    Done building project "MobileSeller.vbproj".
    ------ Skipped Deploy: Project: BO, Configuration: Debug Any CPU ------
    Project not selected to build for this solution configuration
    ------ Skipped Deploy: Project: Printing, Configuration: Debug Any CPU ------
    Project not selected to build for this solution configuration
    ------ Deploy started: Project: MobileSeller, Configuration: Debug Any CPU ------
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\windowsce\wce400\armv4\NETCFV2.ppc.armv4.cab'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\BO\bin\Debug\System.Data.Common.dll'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v2.0\wce400\ARMV4\sqlce20.ppc.wce4.armv4.CAB'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v2.0\wce400\ARMV4\sqlce20.dev.ppc.wce4.armv4.cab'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\BO\bin\Debug\InTheHand.Data.Adoce.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\BO\bin\Debug\InTheHand.Interop.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\Printing\bin\Debug\PocketHTMLprint_NetCF.dll'
    Deploying 'C:\Dev\MILLAR CODE CABINET\VS2003CF\References\USICF.dll'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce400\ARMV4\sqlce30.ppc.wce4.armv4.CAB'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce400\ARMV4\sqlce30.repl.ppc.wce4.armv4.CAB'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce400\ARMV4\sqlce30.dev.enu.ppc.wce4.armv4.CAB'
    Deploying 'C:\Dev\VS2005CF\References\release\Signature.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\RealUpDown.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\Printing\bin\Debug\Printing.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\PhoneAPI.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\MVnetApplication.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\MobileHList.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\MobileGrid.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\ImageButtons.dll'
    Deploying 'C:\Dev\VS2005CF\References\release\CreditCardValidator.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\BO\bin\Debug\BO.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\View.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Unscheduled.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Unschedule.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\tr.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\top.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Tools.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\tl.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\SmlButUnPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\SmlButSquUnPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\SmlButSquPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\SmlButPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Select1.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\sekonda3.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\sekonda2.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\sekonda1.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\ScrewDriver.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Scheduled.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Scheduled.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Schedule.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Scan.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Save.ICO'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Remove.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\ReceiptTemplate.htm'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Problem.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\PrintDC.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Print.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Prev.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\bin\Debug\PocketHTMLprint_NetCF.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\pocketHTMLprint.dll'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Phone.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Page.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\NotesExist.ICO'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Notes.ICO'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Next.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\NewCust.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\MVNetLogoSmall.png'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\mtiny.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\MoneyScrew.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Money.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Magnify.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Lock.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Line.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\InvoiceTemplate.htm'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\gradus4.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\gradus3.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\gradus2.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\gradus1.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\FindVisit.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\FindCustomer.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Find.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\DropDown.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\dentsplus3.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\dentsplus2.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\dentsplus1.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\DentDevilsCar.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\DentDevils2.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\DentDevils1.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Default2.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Default1.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Cust.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Completed.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Cancelled.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\Call.ico'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\br.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\bottom.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\bl.gif'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\BigButUnPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\Resources\BigButPressed.jpg'
    Deploying 'C:\Dev\millar\MobileSeller\code\2005\MobileSeller\MobileSeller\MobileSeller\bin\Debug\MobileSeller.exe'
    Deploying 'C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\windowsce\diagnostics\System_SR_enu.cab'
    ========== Build: 3 succeeded or up-to-date, 0 failed, 0 skipped ==========
    ========== Deploy: 1 succeeded, 0 failed, 2 skipped ==========
    Visual studio indicates that
    Deployment Started
    Depolyment Succeeded
    Loading Symbols
    Ready
    and then I get the same problem ie The Remote connection to the device has been lost

  • I am trying to have access tables of the Sql Server through the Oracle

    I am trying to have access tables of the Sql Server through the Oracle and this being occurred the error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    I created the ODBC with name HSMSQL.
    I made all the configurations in the archives
    tnsnames.ora:
    HSMSQL=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL = tcp)(HOST = wsus)(PORT = 1521))
    (CONNECT_DATA =
    (SID = HSMSQL)
    (HS = OK)
    listener.ora:
    (SID_DESC = (SID_NAME=HSMSQL)
    (ORACLE_HOME= C:\oracle\ora92)
    (PROGRAM =hsodbc)
    initHS_SID.ora:
    HS_FDS_CONNECT_INFO = HSMSQL
    HS_FDS_TRACE_LEVEL = OFF
    -- Create database link
    create database link HSMSQL.US.ORACLE.COM
    connect to TESTE identified by TESTE2
    using 'HSMSQL';
    But when I execute query the error occurs:
    Select * from TabTeste@HSMSQL
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    Please they help me, thanks, Paulo.

    Hi,
    It seems that your configuration is Ok. By the way, the workaround for this error is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for ODBC][H001] The environment variable <HS_FDS_CONNECT_INFO> is not set.
    * Set HS_FDS_CONNECT_INFO in the hs{sid}init.ora file to the data source name.
    Example: HS_FDS_CONNECT_INFO = <ODBC DataSource Name>
    * Make sure the hs{sid}init.ora file exists in the ORACLE_HOME/hs/admin directory and has the same name as the SID in the LISTENER.ORA.
    Example: If SID=hsodbc in the listener.ora file, then the hs{sid}init.ora file would be named ORACLE_HOME/hs/admin/inithsodbc.ora
    For more information see if this [url http://forums.oracle.com/forums/thread.jspa?forumID=61&threadID=576975]thread can help you.
    Cheers

  • How do I use SQL statements to perform calculations with form fields????

    Please help!!! I don't know how to use a SQL statement within my APEX form......
    My form is below. The user will enter the values in the form. Click on Submit. Then we need to run a SQL select statement with those values.
    Our form looks like this:
    Start_Date ____________
    Per_Period ____________
    Period ____________
    [Submit Button]
    The user will enter these 3 values in the form.
    This is an example of an user providing the values:
    Start_Date 03/14/08_______
    Per_Period $200.00________
    Period 4____________
    [Submit Button]
    Then they will click the Submit Button.
    The SQL statement (BELOW) returns output based on the users selections:
    START_DATE PER_PERIOD PERIOD
    14-MAR-2008 00:00 200 Week 1 of 4
    21-MAR-2008 00:00 200 Week 2 of 4
    28-MAR-2008 00:00 200 Week 3 of 4
    04-APR-2008 00:00 200 Week 4 of 4
    Total 800
    This is the full text of the SQL that makes the output above:
    with criteria as (select to_date('03/14/08', 'mm/dd/rr') as start_date,
    4 as periods,
    'Week' as period,
    200 per_period from dual),
    periods as (select 'Week' period, 7 days, 0 months from dual
    union all select 'BiWeek', 14, 0 from dual
    union all select 'Month', 0, 1 from dual
    union all select 'ByMonth', 0, 2 from dual
    union all select 'Quarter', 0, 3 from dual
    union all select 'Year', 0 , 12 from dual
    t1 as (
    select add_months(start_date,months*(level-1))+days*(level-1) start_date,
    per_period,
    c.period||' '||level||' of '||c.periods period
    from criteria c join periods p on c.period = p.period
    connect by level <= periods)
    select case grouping(start_date)
    when 1 then 'Total'
    else to_char(start_date)
    end start_date,
    sum(per_period) per_period,
    period
    from t1
    group by rollup ((start_date, period))
    THANKS VERY MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    You're just doing a parameterized report, where the input fields are your parameters.
    Check out the Advanced Tutorial titled Parameterized Report here:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/rprt_query.htm#BGBEEBJA
    Good luck,
    Stew

Maybe you are looking for

  • Mail won't open, how do I fix it?

    My mail won't open, the error message says I may need to reinstall the application and also check for updates.  Everything is up to date and how do you reinstall mail?

  • Promotional Price configuration

    Hi, Need some help on the promotions configuration and settings required for : All promotions should have: option of setting a date range to control when the promotion is applied. It would also be nice excluding certain materials excluding certain cu

  • Address change in customer master

    Hi Experts, I have cretaed sales order and processed it with one customer.Created Delivery and posted goods issue. After that I have changed the address of the customer and noticed that the adress is changed in the processed order also. I would to li

  • What happened to Thee Oh Sees albums?!?

    I have been thoroughly enjoying Thee Oh Sees Floating Coffin album due to the highly enjoyable Toe Cutter song. I was about to play it this morning and to my great disappointment I see that the album is no longer available along with their other albu

  • Adobe App Login problem

    Can't access adobe app in iPhone, a message appears saying the ID or the Password is incorrect, although I can still access my account in Adobe home page. Any help please