À PROBLEM IN THE INSTALLATION OF SQL SERVER

I HAVE À PROBLEM IN THE INSTALLATION OF SQL SERVER ,I HAVE WINDOWS 8 64 BITS LENOVO ,I TRIED MANY VERSIONS, BUT IT DOESN'T WORK YET :(
PLEASE HELP ME !

I HAVE À PROBLEM IN THE INSTALLATION OF SQL SERVER ,I HAVE WINDOWS 8 64 BITS LENOVO ,I TRIED MANY VERSIONS, BUT IT DOESN'T WORK YET :(
PLEASE HELP ME !
Without the exact error message wwe will just hit arrow in the bush.Please post summary.txt which was generated due to failed installation.Below link will help you locate it
http://technet.microsoft.com/en-us/library/ms143702.aspx
Below link will give useful info about how to proceed with installing SQL server on win 8
Considerations before installing SQL server on win 8
Hardware and software requirement for installing SQL server 2012
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • An error occured after the installation of SQL Server 2014 Enterprise Edition

    As you can see, only the Analysis Services was installed successfully, the rest are failed.
    Well, I'm using a 64-bit Windows 8 Single Language, and my ISO file was a 32-bit installer. But why on my other 64-bit PC, it was successfully installed, no such errors like that.
    Just in case you need the installation log file, here's the link.

    Hello,
    I found the following error on the log file you shared:
    Error 1406. Could not write value  to key \SOFTWARE. 
    System error .  Verify that you have sufficient access to that key, or contact your support personnel.
    Please perform the following steps:
    1. Open the registry editor. 
    2. Right-click the HKLM\SOFTWARE key.
    3. Select Permissions.
    4. Click Advanced.
    5. On the Owner tab, select the Administrators group, and then check the "Replace owner on subcontainers and objects"
    check box.
    6. Click Apply.
    7. On the Permissions tab, check the "Replace permission entries on all child objects with entries shown here that
    apply to child objects" check box.
    8. Click OK.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • The cluster resource 'SQL Server' could not be brought online error while in completion stage of sql server 2012 failover installation

    While installing sql server 2012 with failover clustering I got the following error:
    The cluster resource 'SQL Server' could not be brought online. Error: There was a failure to call cluster code from a provider. Exception message: Generic failure. Status code: 5942. Description: The resource failed to come online due to the failure of one
    or more provider resources.
    The two nodes of the sql server failover have been successfully prepared. The error came while running the advance cluster completion option.
    In the clustered events in failover cluster manager the following message is displayed:
    Cluster resource 'SQL Network Name (CPCTestSQLClus)' of type 'Network name' in clustered role 'SQL Server (MSSQLSERVER)' failed.
    I have done various checking and the issue remained. I tried to start the sql

    Please find below part of the content of the cluster log. I hope this is helpful in resolving the issue:
    00000998.000010e8::2013/05/08-20:45:00.233 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Online called for resource SQL Network Name (CPCTestSQLClus)
    000005a4.0000050c::2013/05/08-20:45:00.233 INFO  [RCM] HandleMonitorReply: ONLINERESOURCE for 'SQL Network Name (CPCTestSQLClus)', gen(6) result 997/0.
    000005a4.0000050c::2013/05/08-20:45:00.233 INFO  [RCM] Res SQL Network Name (CPCTestSQLClus): OnlineCallIssued -> OnlinePending( StateUnknown )
    000005a4.0000050c::2013/05/08-20:45:00.233 INFO  [RCM] TransitionToState(SQL Network Name (CPCTestSQLClus)) OnlineCallIssued-->OnlinePending.
    00000998.000012f0::2013/05/08-20:45:00.233 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Entering Online thread
    000005a4.0000050c::2013/05/08-20:45:00.233 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.000012f0::2013/05/08-20:45:00.233 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Initializing config info
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Skipping initialization of 'Identity' module because netname is not yet created
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Performing actual online of resource.
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Obtaining IP info for resource SQL IP Address 1 (CPCTestSQLClus)
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Using provider SQL IP Address 1 (CPCTestSQLClus), ip address 10.144.166.160, mask 255.255.255.0, prefix length 24
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Resource has 1 IPs
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: IP: Type Ipv4, Address 10.144.166.160:~0~, Prefix 10.144.166.160/24, Online true, Transport \Device\NetBt_If3
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Initializing (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration)
    00000998.000012f0::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending request Netname/InitializeIndirect to NN:Agent
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: OnInitialize (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration)
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: CanModuleBeInitializedImp - Module can be initialized, current state Offline
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending Initialize to module NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:Configuration
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending request Netname/Initialize to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:Configuration
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Waiting for ongoing slow strand to complete (if any)
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Signaling main strand to initialize module
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Calling initialize of the configuration implementation
    000005a4.00001350::2013/05/08-20:45:00.248 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Setting 'StatusKerberos' in clusdb returned status 0
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Creating a New AD NetName (type Singleton)...
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Initializing (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD)
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending request Netname/InitializeIndirect to NN:Agent
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: OnInitialize (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD)
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: CanModuleBeInitializedImp - Module can be initialized, current state Closing
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending Initialize to module NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:AccountAD
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: Agent: Sending request Netname/Initialize to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:AccountAD
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: Waiting for ongoing slow strand to complete (if any)
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: Signaling main strand to initialize module
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: Initializing Name: CPCTestSQLClus, NetbiosName: CPCTESTSQLCLUS, Type: Singleton, Created: false
    00000998.000010e8::2013/05/08-20:45:00.248 INFO  [RES] Network Name: [NNLIB] GetCreatingDC - name CPCTestSQLClus, lookup flags = 1
    00000998.000010e8::2013/05/08-20:45:00.452 INFO  [RES] Network Name: [NNLIB] GetDCWithFlags - using DC
    \\MY01DC03.Domain.net, domain name Domain.net, IsReadOnly 0, Object exists 0
    00000998.000010e8::2013/05/08-20:45:00.452 INFO  [RES] Network Name:  [NN] Setting crypto access members for encrypt. New container = false.
    000005a4.00001350::2013/05/08-20:45:00.452 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.000010e8::2013/05/08-20:45:00.452 INFO  [RES] Network Name: Agent: Sending request Netname/LastDcChange to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:Configuration
    00000998.0000075c::2013/05/08-20:45:00.452 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: LastDc Changed, configOnly: 1
    000005a4.00001350::2013/05/08-20:45:00.452 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.0000075c::2013/05/08-20:45:00.468 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Setting last DC in clusdb returned status 0
    00000998.0000075c::2013/05/08-20:45:00.468 INFO  [RES] Network Name:  [NN] got sync reply: 0
    00000998.000010e8::2013/05/08-20:45:00.468 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: LastDc Changed (configOnly true), result: 0
    00000998.000010e8::2013/05/08-20:45:00.468 INFO  [RES] Network Name: Agent: Sending request Netname/PasswordChange to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:Configuration
    00000998.0000075c::2013/05/08-20:45:00.468 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Password Changed, configOnly: 1
    000005a4.00001350::2013/05/08-20:45:00.468 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.0000075c::2013/05/08-20:45:00.468 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Setting password in clusdb returned status 0
    00000998.0000075c::2013/05/08-20:45:00.468 INFO  [RES] Network Name:  [NN] got sync reply: 0
    00000998.000010e8::2013/05/08-20:45:00.468 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: PasswordChanged (configOnly true), result: 0
    00000998.000010e8::2013/05/08-20:45:00.468 INFO  [RES] Network Name:  [NN] Setting crypto access members for decrypt. New container = false.
    00000998.00000ab8::2013/05/08-20:45:00.636 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    00000998.00000ab8::2013/05/08-20:45:00.647 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.0000075c::2013/05/08-20:45:00.784 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    00000998.00000ab8::2013/05/08-20:45:00.815 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.00000ab8::2013/05/08-20:45:00.815 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    00000998.00000ab8::2013/05/08-20:45:00.830 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.00000ab8::2013/05/08-20:45:00.830 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    00000998.00000ab8::2013/05/08-20:45:00.830 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.000010e8::2013/05/08-20:45:00.924 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: OU name for VCO is OU=NewComputers,OU=WORKSTATIONS,DC=Domain,DC=net
    00000998.000010e8::2013/05/08-20:45:00.924 INFO  [RES] Network Name: Agent: Sending request Netname/GetToken to NN:c03fb105-9a50-4d00-8bee-afaf693f7efc:Identity
    00000998.00000ab8::2013/05/08-20:45:00.924 INFO  [RES] Network Name <Cluster Name>: Identity: Module is not yet initialized. Trying to obtain a new token.
    00000998.0000075c::2013/05/08-20:45:00.924 INFO  [RES] Network Name <Cluster Name>: Identity: Obtaining new token
    00000998.0000075c::2013/05/08-20:45:00.924 INFO  [RES] Network Name:  [NN] Setting crypto access members for decrypt. New container = false.
    00000998.0000075c::2013/05/08-20:45:00.924 INFO  [RES] Network Name: [NNLIB] Priming local KDC cache to
    \\MY01DC02.Domain.net for domain Domain.net
    00000998.0000075c::2013/05/08-20:45:00.924 INFO  [RES] Network Name: [NNLIB] PopulateKerbKDCLookupCache - DC flags 0
    00000998.0000075c::2013/05/08-20:45:00.940 INFO  [RES] Network Name: [NNLIB] LsaCallAuthenticationPackage success with a request of size 94, result size 0 (status: 0, subStatus: 0)
    00000998.0000075c::2013/05/08-20:45:00.940 INFO  [RES] Network Name: [NNLIB] Priming local KDC cache to
    \\MY01DC02.Domain.net for domain label Domain
    00000998.0000075c::2013/05/08-20:45:00.940 INFO  [RES] Network Name: [NNLIB] LsaCallAuthenticationPackage success with a request of size 86, result size 0 (status: 0, subStatus: 0)
    00000998.0000075c::2013/05/08-20:45:01.018 WARN  [RES] Network Name: [NNLIB] LogonUserEx fails for user CPCTestWinClus$: 1326 (useSecondaryPassword: 0)
    00000998.0000075c::2013/05/08-20:45:01.096 WARN  [RES] Network Name: [NNLIB] LogonUserEx fails for user CPCTestWinClus$: 1326 (useSecondaryPassword: 1)
    00000998.0000075c::2013/05/08-20:45:01.096 INFO  [RES] Network Name: [NNLIB] Logon failed for user CPCTestWinClus$ (Error 1326), DC
    \\MY01DC02.Domain.net, domain Domain.net
    00000998.0000075c::2013/05/08-20:45:01.096 INFO  [RES] Network Name <Cluster Name>: Identity: Obtaining Windows Token for Name: CPCTestWinClus, SamName: CPCTestWinClus$, Type: Singleton, Result: 1326, LastDC:
    \\MY01DC02.Domain.net
    00000998.0000075c::2013/05/08-20:45:01.096 INFO  [RES] Network Name <Cluster Name>: Identity: Slow Operation, FinishWithReply: 1326
    00000998.0000075c::2013/05/08-20:45:01.096 INFO  [RES] Network Name <Cluster Name>: Identity: InternalReplyHandler with event: 1326
    00000998.0000075c::2013/05/08-20:45:01.096 INFO  [RES] Network Name <Cluster Name>: Identity: End of Slow Operation, state: Error/Idle, prevWorkState: Idle
    00000998.00000ab8::2013/05/08-20:45:01.096 WARN  [RES] Network Name <Cluster Name>: Identity: Get Token Request, currently doesnt have a token!
    00000998.00000ab8::2013/05/08-20:45:01.096 INFO  [RES] Network Name:  [NN] got sync reply: 0
    00000998.000010e8::2013/05/08-20:45:01.096 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: End of Slow Operation, state: Initializing/Writing, prevWorkState: Writing
    00000998.000010e8::2013/05/08-20:45:01.096 WARN  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: Slow operation has exception ERROR_INVALID_HANDLE(6)' because of '::ImpersonateLoggedOnUser( GetToken() )'
    00000998.000010e8::2013/05/08-20:45:01.096 INFO  [RES] Network Name: Agent: OnInitializeReply, Failure on (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD): 6
    00000998.000010e8::2013/05/08-20:45:01.096 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: InitializeReplyCreation of NetName (type Singleton), result: 6, IsCanceled: false
    000005a4.00000cd8::2013/05/08-20:45:01.096 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000ab8::2013/05/08-20:45:01.096 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    00000998.000010e8::2013/05/08-20:45:01.096 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Setting 'StatusKerberos' in clusdb returned status 0
    00000998.000010e8::2013/05/08-20:45:01.096 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Deleting ResourceData, CreatingDC, ObjectGUID for a newly created netname from cluster database
    000005a4.00000cd8::2013/05/08-20:45:01.096 INFO  [GEM] Sending 1 messages as a batched GEM message
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnInitializeReply, Failure on (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration): 6
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: SyncReplyHandler Configuration, result: 6
    00000998.000012f0::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: PerformOnline - Initialization of Configuration module finished with result: 6
    00000998.000012f0::2013/05/08-20:45:01.112 ERR   [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Online thread Failed: ERROR_SUCCESS(0)' because of 'Initializing netname configuration for SQL Network Name (CPCTestSQLClus) failed with
    error 6.'
    00000998.000012f0::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: All resources offline. Cleaning up.
    00000998.000012f0::2013/05/08-20:45:01.112 ERR   [RHS] Online for resource SQL Network Name (CPCTestSQLClus) failed.
    000005a4.0000050c::2013/05/08-20:45:01.112 WARN  [RCM] HandleMonitorReply: ONLINERESOURCE for 'SQL Network Name (CPCTestSQLClus)', gen(6) result 5018/0.
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Res SQL Network Name (CPCTestSQLClus): OnlinePending -> ProcessingFailure( StateUnknown )
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] TransitionToState(SQL Network Name (CPCTestSQLClus)) OnlinePending-->ProcessingFailure.
    000005a4.0000050c::2013/05/08-20:45:01.112 ERR   [RCM] rcm::RcmResource::HandleFailure: (SQL Network Name (CPCTestSQLClus))
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] resource SQL Network Name (CPCTestSQLClus): failure count: 6, restartAction: 2 persistentState: 1.
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [GEM] Sending 1 messages as a batched GEM message
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Greater than restartPeriod time has elapsed since first failure of SQL Network Name (CPCTestSQLClus), resetting failureTime and failureCount.
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Will queue immediate restart (500 milliseconds) of SQL Network Name (CPCTestSQLClus) after terminate is complete.
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Res SQL Network Name (CPCTestSQLClus): ProcessingFailure -> WaitingToTerminate( DelayRestartingResource )
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] TransitionToState(SQL Network Name (CPCTestSQLClus)) ProcessingFailure-->[WaitingToTerminate to DelayRestartingResource].
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Res SQL Network Name (CPCTestSQLClus): [WaitingToTerminate to DelayRestartingResource] -> Terminating( DelayRestartingResource )
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] TransitionToState(SQL Network Name (CPCTestSQLClus)) [WaitingToTerminate to DelayRestartingResource]-->[Terminating to DelayRestartingResource].
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Terminate called for resource SQL Network Name (CPCTestSQLClus)
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Entering Offline thread
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Performing actual offline of resource.
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Closing (082d8ef5-62a8-4fee-acbc-e89b769e9181,AdminShare)
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/CloseIndirect to NN:Agent
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnClose (082d8ef5-62a8-4fee-acbc-e89b769e9181,AdminShare)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/Close to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:AdminShare
    00000998.000010e8::2013/05/08-20:45:01.112 ERR   [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AdminShare: OnCloseBase, Error Already Closing, previous state: Closing/Ending
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnCloseReply (082d8ef5-62a8-4fee-acbc-e89b769e9181,AdminShare) result: 1904
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: SyncReplyHandler Configuration, result: 1904
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Closing (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration)
    00000998.00000ab8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/CloseIndirect to NN:Agent
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00000cd8::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnClose (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/Close to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:Configuration
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Canceling work, state: Closing/Idle
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: OnCloseBase, previous state: Initializing/Idle
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Closing... (PreviousState: Initializing, Created: false, Type: Singleton)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Closing (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/CloseIndirect to NN:Agent
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnClose (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: Sending request Netname/Close to NN:082d8ef5-62a8-4fee-acbc-e89b769e9181:AccountAD
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: Canceling work, state: Closing/Idle
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: AccountAD: OnCloseBase, previous state: Initializing/Idle
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnCloseReply (082d8ef5-62a8-4fee-acbc-e89b769e9181,AccountAD) result: 0
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Finish Closing NetName (type Singleton) Module AccountAD, result 0, remaining... 0 (0)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: -- listing 3 instances ---------------------------------------------
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: --- 7 modules for instance: 082d8ef5-62a8-4fee-acbc-e89b769e9181:
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Configuration with states: Offline/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AccountAD with states: Closing/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Client with states: Offline/Idle (BeingBorn)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Configuration: Closed
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Identity with states: Offline/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Dns with states: Offline/Idle (BeingBorn)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: OnCloseReply (082d8ef5-62a8-4fee-acbc-e89b769e9181,Configuration) result: 0
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Netbios with states: Offline/Idle (BeingBorn)
    00000998.0000075c::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: SyncReplyHandler Configuration, result: 0
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AdminShare with states: Closing/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: --- 7 modules for instance: 43dec41b-661c-42a8-ae23-b635d7ab11f5:
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Configuration with states: Offline/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AccountAD with states: Closing/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Client with states: Offline/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Identity with states: Offline/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Dns with states: Offline/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Netbios with states: Offline/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AdminShare with states: Closing/Ending (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: --- 7 modules for instance: c03fb105-9a50-4d00-8bee-afaf693f7efc:
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Configuration with states: Initialized/Idle (Alive)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AccountAD with states: Initializing/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Client with states: Initialized/Idle (Alive)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Identity with states: Error/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Dns with states: Initialized/Idle (Alive)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: Netbios with states: Initialized/Idle (Alive)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: ---- Module: AdminShare with states: Initialized/Idle (BeingBorn)
    00000998.000010e8::2013/05/08-20:45:01.112 INFO  [RES] Network Name: Agent: -- 0 Zombie modules
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] HandleMonitorReply: TERMINATERESOURCE for 'SQL Network Name (CPCTestSQLClus)', gen(7) result 0/0.
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] Res SQL Network Name (CPCTestSQLClus): [Terminating to DelayRestartingResource] -> DelayRestartingResource( StateUnknown )
    000005a4.0000050c::2013/05/08-20:45:01.112 INFO  [RCM] TransitionToState(SQL Network Name (CPCTestSQLClus)) [Terminating to DelayRestartingResource]-->DelayRestartingResource.
    000005a4.0000050c::2013/05/08-20:45:01.112 WARN  [RCM] Queueing immediate delay restart of resource SQL Network Name (CPCTestSQLClus) in 500 ms.
    000005a4.00001248::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00001248::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00001248::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00001248::2013/05/08-20:45:01.112 INFO  [RCM-rbtr] giving default token to group SQL Server (MSSQLSERVER)
    000005a4.00001350::2013/05/08-20:45:01.112 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000b78::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    000005a4.00001350::2013/05/08-20:45:01.112 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000b78::2013/05/08-20:45:01.112 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    00000998.00000b78::2013/05/08-20:45:01.127 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read/Write private properties
    000005a4.00001350::2013/05/08-20:45:01.127 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000b78::2013/05/08-20:45:01.127 INFO  [RES] Network Name <SQL Network Name (CPCTestSQLClus)>: Getting Read only private properties
    000005a4.00001350::2013/05/08-20:45:01.127 INFO  [GEM] Sending 1 messages as a batched GEM message
    000005a4.00001350::2013/05/08-20:45:01.127 INFO  [GEM] Sending 1 messages as a batched GEM message
    000005a4.00001350::2013/05/08-20:45:01.143 INFO  [GEM] Sending 1 messages as a batched GEM message
    00000998.00000b78::2013/05/08-20:45:01.252 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:c03fb105-9a50-4d00-8bee-afaf693f7efc:Netbios
    00000998.00000ab8::2013/05/08-20:45:01.252 INFO  [RES] Network Name <Cluster Name>: Netbios: Slow Operation, FinishWithReply: 0
    00000998.00000ab8::2013/05/08-20:45:01.252 INFO  [RES] Network Name:  [NN] got sync reply: 0
    00000998.00000ab8::2013/05/08-20:45:01.252 INFO  [RES] Network Name <Cluster Name>: Netbios: End of Slow Operation, state: Initialized/Idle, prevWorkState: Idle

  • How to Read the Image in SQL server

    I want to read the image from SQL server using labview.In our project languages used are JAVA and Labview
    Through java we acquiring the image and write in to SQL Server.
    Through Labview I want to read the image form SQL server and i will do some image processing for my application.
    My problem when I seen the database the images shown like hex decimal value.
    I want to convert the hexadecimal value to image or any other functions is there to directly read the image from SQL server.
    Can anybody help me....

    two options:
    1. save the image data itself (as a blob)
    2. save the image in a file system and save the file name in the DB

  • Entity Framework doesn't create the database in SQL Server Management 2012, instead it just creates in (localdb)\v11.0 How to fix it?

    Hi, I'm Begginer in Entity Framework. Then I'm having some problems.
    I created my entities and I give Save Changes. (Ok)
    Then, I Tried to Connect with the database through Server Explorer, if I use the instance of the SQL Server Management Studio 2012(PC-PAULO\INSTANCIAPJ) as Server Name, the database doesn't appears but, if I use the the instance (localdb)\v11.0 the dabase
    appears.
    How to change the save to the SQL Server Management Studio 2012, I don't know where this (localDB)\v11.0 saves.
    Help-me Thank you :D

    Hello PauloJos,
    The code should be ok and it is really strange that the database is only created into the local database in your machine. I am wondering if it is related with the machine environment, could you please have a try with below demo on your machine which works
    on my side and if it is possible, please have a try to run your application on other machines to see if it works:
    class Program
    static void Main(string[] args)
    #region https://social.msdn.microsoft.com/Forums/en-US/00eff3c4-2336-4807-9212-e6f2a6c8812e/entity-framework-doesnt-create-the-database-in-sql-server-management-2012-instead-it-just-creates?forum=adodotnetentityframework
    using (CFDbContext db = new CFDbContext())
    db.Database.CreateIfNotExists();
    #endregion
    public class CFDbContext : DbContext
    public CFDbContext() : base("UltraFoda3") { }
    public DbSet<TestOne> TestOnes { get; set; }
    public class TestOne
    public int ID { get; set; }
    public string Name { get; set; }
    Config file is similar:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </configSections>
    <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
    <parameters>
    <parameter value="v11.0" />
    </parameters>
    </defaultConnectionFactory>
    <providers>
    <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
    </entityFramework>
    <connectionStrings>
    <add name="UltraFoda3" connectionString="Data Source=YourServer;Initial Catalog=UltraFoda3;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
    </connectionStrings>
    </configuration>
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Installation of SQL Server 2008 failing - Client Tools

    Hello,
    I am trying to install SQL Server 2008 Client Tools on a machine that already has SQL Server 2005 (Full install). I select "Client Tools Connectivity" "Client Tools Backwards Compatibility" "Client Tools SDK" and "SQL Client Connectivity SDK". During installation, I receive this error message "A network error occurred while attempting to read from the file E:\x86\setup\x86\sqlncli.msi". The installation then fails. Is the older version of sql native client interfering with the new install? Any suggestions on what to do? Thanks!!
    -Theresa

    So I tried to reinstall missing features, but I was getting the same error message about the sqlncli.msi file. I tried executing it from the folder, but got the same error.
    When I went to remove the items that did get installed from Add or Remove Programs, I got the following error:
    "SQL Server Setup has encountered the following error:
    No feature were uninstalled during the setup execution. The requested features may not be installed. Please review the summary.txt log for further details.
    Error code 0x84B30002"
    Not sure what to do..

  • Installation of SQL Server 2012 express on Windows 7

    Hi,
    When I try to install SQL Server 2012 express, I get the following error message:
    This SQL Server Setup media does not Support the language of the OS, or does not have the SQL Server English-language Version Installation Files. Use the matching language-specific SQL-Server Format and System locales through the regional Settings in the
    Control Panel.
    I tried changing the language via the Control Panel but it didn't help.
    What should I do?

    Hello,
    Please, you need to match the following operating system settings to the language of SQL Server (US English): 
    (1) operating system user interface setting, (2) the operating system user locale setting and (3) the system locale setting.
    https://msdn.microsoft.com/en-us/library/ee210665(v=sql.110)
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com
    Hi Matt,
    Did you follow Alberto's suggestion? and it resolve your issues?

  • A field of the table in sql server db can't be updated with the db adapter

    Hi all,
    I am using db adapter to update data in bpel. The database is sql server.
    But on the running time, i find a field which named 'JDBCT1' can't be updated. all the other fields of this table can be updated properly.
    For the operation type, i have tried the update only and execute pure sql. None of them works.
    The version of SOA is 11.1.1.6.
    Can any one give some solutions?
    It's urgent, thank you!

    Hi,
    Pls check the data type in your mapping file and data type in table. It might be mismatched.
    thanks

  • How to delete the Folder from sql server 2008

    Hi all,
    I was trying to delete the folder from sql server 2008 with the below script
    DECLARE @path VARCHAR(256) -- path for backup files
    DECLARE @cmd VARCHAR(8000)
    DECLARE @folderName VARCHAR(256) -- filename for backup
    SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112))  -- 7 days back date folder name
    SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
    SET @cmd = 'del ' + @path -- Delete
    EXEC master..xp_cmdshell @cmd
    --Print @cmd
    This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
    Thanks,
    Prasad R.

    I would notice   you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
    Old method is
    declare @HR int, @CFOLDER varchar(255),@FSO int
        set @CFOLDER='D:\folder\'
        EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
        EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER 
    Now regarding to your second question please examine xp_fileexist  system stored procedure
    CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
      RETURNS INT
    AS
    BEGIN
      DECLARE @file_exists AS INT
      EXEC master..xp_fileexist @filename, @file_exists OUTPUT
      RETURN @file_exists
    END
    GO
    -- test
    SELECT dbo.fn_file_exists('c:\a.txt')
    Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/

  • How can I architect my data layer to yield query result pages to the application as SQL Server prepares them?

    I tried to make the question as explicit as possible.
    Refer to Sql Server Management Studio's Results view.  Depending upon the structure of the execution plan, the Results pane may begin displaying results while the query is still executing.  Can someone point me in a direction for architecting a
    data layer (I am tech and framework agnostic for this task. Any solution will suffice) that will begin receiving pages of the set before SQL Server has completed the entire query?
    The call from the data layer to SQL Server will obviously have to be asynchronous, but is there any additional ceremony that I need to be aware of when issuing OPTION (FAST x) to the query optimizer?

    Thanks for the reply. (I actually meant to put this in the SQL Data Access forum, not the T-SQL forum)
    "Generally the last step is ORDER BY in a
    query, so nothing can start before that executes."
    I would imagine you cannot ORDER BY and yield results as they are fetched because of the execution plan that would be generated.  For the purposes of this post, please assume that sorting will be done purely client side
    "Can you post your query?"
     For purposes of discussion, let's assume that the query is
    select *
    from information_schema.columns
    and also assume that you have "lots" of columns to display.
    This was an exploratory question to see what would be necessary to replicate the behavior of Management Studio's Query Result view in a custom application. 
    I would imagine that there's going to be a lot of analysis of the execution plans that get generated in order for the OPTION (FAST x) optimizer hint to do any good, but apart from general tuning concerns that would allow SQL SERVER to yield a page of data
    "fast", I was wondering if there was anything else required of the calling client to force it to yield return its first page.
    After thinking about this (and phrasing it the way I did in the last sentence) perhaps this is the incorrect forum for this question.  I imagine that my concerns are better addressed in forums dedicated to the technology of the calling client (which
    would be a .NET assembly)
    Be that as it may, if there is any ceremony that SQL Server imposes on clients in order to yield return, I would expect that my question would be in the scope of SQL Server discussions (even though I intended this to be in a different SQL Server forum)

  • Can some one please tell me what is the problem in the below pl/sql block

    Hi, I have problem with the following pl/sql block, I need this with bulk operation.
    -- Assume the following scenario, we are validating dept (master) and emp(child) which are my temporary tables and updating the status back to
    -- dept ( for all the validation errors, even if we have any validation at child  it has to update the header record with error message),
    -- upon successful validation insert the data into dept3, and emp3 interms of batches
    -- I have give the sample example with dept and emp, but i have around 10 million records which has around 30-40 validations,
    -- I would like to process them in terms of batches using bulk collection as this would do fast processing
    -- Can some one please tell me how to insert them in terms of bulk with every set of 1000 records in each batch in this example,for every set of 1000 records
    -- i need update batch id with unique number in dept table
    -- with current data i can have 50 batches , I need to pass, deptno as parameter to my emp cursor. 
    -- can some one please tell me how to make this validation and insertion more efficient. so that while inserting the data for every batch it should insert batch id
    -- Tried with LIMIT clause as well but not working
    -- I am correcting the code as per your comments Request you to please suggest me so that I can correct , I am new to PL/sql, started learning now.
    step - 1:
    CREATE TABLE DEPT
           (DEPTNO NUMBER(6) primary key,
            DNAME VARCHAR2(25),
            LOC VARCHAR2(23),
            batch_id number );
    INSERT INTO DEPT VALUES (10, 'ACCOUNTING', 'NEW YORK', null);
    INSERT INTO DEPT VALUES (20, 'RESEARCH',   'DALLAS', null);
    INSERT INTO DEPT VALUES (30, 'SALES',      'CHICAGO', null);
    INSERT INTO DEPT VALUES (40, 'OPERATIONS', 'BOSTON', null);
    step - 2:
    declare
    begin
    for i in 1..50000 loop
    insert into dept values(40+i, 'OPERATIONS'||i,'BOSTON'||i, null);
    end loop;
    commit;
    exception
    when others then
    dbms_output.put_line('Exception occured:'||SQLERRM);
    end;
    step - 3:
    create sequence emp_seq start with 1 increment by 1;
    step - 4:
    CREATE TABLE EMP
           (EMPNO NUMBER(15) NOT NULL primary key,
            ENAME VARCHAR2(20),
            JOB VARCHAR2(20),
            MGR NUMBER(4),
            HIREDATE DATE,
            SAL NUMBER(7, 2),
            COMM NUMBER(7, 2),
            DEPTNO NUMBER(6));
    INSERT INTO EMP VALUES
            (7369, 'SMITH',  'CLERK',     7902,
            TO_DATE('17-DEC-1980', 'DD-MON-YYYY'),  800, NULL, 20);
    INSERT INTO EMP VALUES
            (7499, 'ALLEN',  'SALESMAN',  7698,
            TO_DATE('20-FEB-1981', 'DD-MON-YYYY'), 1600,  300, 30);
    INSERT INTO EMP VALUES
            (7521, 'WARD',   'SALESMAN',  7698,
            TO_DATE('22-FEB-1981', 'DD-MON-YYYY'), 1250,  500, 30);
    INSERT INTO EMP VALUES
            (7566, 'JONES',  'MANAGER',   7839,
            TO_DATE('2-APR-1981', 'DD-MON-YYYY'),  2975, NULL, 20);
    INSERT INTO EMP VALUES
            (7654, 'MARTIN', 'SALESMAN',  7698,
            TO_DATE('28-SEP-1981', 'DD-MON-YYYY'), 1250, 1400, 30);
    INSERT INTO EMP VALUES
            (7698, 'BLAKE',  'MANAGER',   7839,
            TO_DATE('1-MAY-1981', 'DD-MON-YYYY'),  2850, NULL, 30);
    INSERT INTO EMP VALUES
            (7782, 'CLARK',  'MANAGER',   7839,
            TO_DATE('9-JUN-1981', 'DD-MON-YYYY'),  2450, NULL, 10);
    INSERT INTO EMP VALUES
            (7788, 'SCOTT',  'ANALYST',   7566,
            TO_DATE('09-DEC-1982', 'DD-MON-YYYY'), 3000, NULL, 20);
    INSERT INTO EMP VALUES
            (7839, 'KING',   'PRESIDENT', NULL,
            TO_DATE('17-NOV-1981', 'DD-MON-YYYY'), 5000, NULL, 10);
    INSERT INTO EMP VALUES
            (7844, 'TURNER', 'SALESMAN',  7698,
            TO_DATE('8-SEP-1981', 'DD-MON-YYYY'),  1500, NULL, 30);
    INSERT INTO EMP VALUES
            (7876, 'ADAMS',  'CLERK',     7788,
            TO_DATE('12-JAN-1983', 'DD-MON-YYYY'), 1100, NULL, 20);
    INSERT INTO EMP VALUES
            (7900, 'JAMES',  'CLERK',     7698,
            TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),   950, NULL, 30);
    INSERT INTO EMP VALUES
            (7902, 'FORD',   'ANALYST',   7566,
            TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),  3000, NULL, 20);
    INSERT INTO EMP VALUES
            (7934, 'MILLER', 'CLERK',     7782,
            TO_DATE('23-JAN-1982', 'DD-MON-YYYY'), 1300, NULL, 10);
    commit;
    step :- 5
    declare
    cursor c1 is select * from dept;
    k number:=0;
    m number:=0;
    begin
    for i in  c1 loop
    k:=k+1;
    --dbms_output.put_line('k:'||k);
    --dbms_output.put_line('i.deptno:'||i.deptno);
    m:=0;
    for j in 1..5 loop
    m:=m+1;
    --dbms_output.put_line('m:'||m);
    --dbms_output.put_line('i.deptno:'||i.deptno);
    insert into emp values
            (9000+emp_seq.nextval, 'SMITH'||'_'||emp_seq.currval,  'CLERK'||'_'||emp_seq.currval,     7902,
            TO_DATE('17-DEC-1980', 'DD-MON-YYYY'),  800, NULL, i.deptno);
    end loop;
    end loop;
    commit;
    exception
    when others then
    dbms_output.put_line('Exception occured:'||sqlerrm);
    end;
    step :-6
    create table dept3 as select * from dept where 1=2;
    create table emp3 as select * from emp where 1=2;
    alter table dept add object_id number;
    alter table dept add status varchar(20);
    alter table dept add err_msg varchar2(200);
    alter table emp add object_id number;
    -- I have not included the alter statements in the inital creation because i dont want them to insert into dept3 and emp3
    CREATE OR REPLACE
    PACKAGE test_b
    AS
      g_batch_id NUMBER;
      PROCEDURE emp_ins(
          p_EMPNO    NUMBER,
          p_ENAME    VARCHAR2,
          p_JOB      VARCHAR2,
          p_MGR      NUMBER,
          p_HIREDATE DATE,
          p_SAL      NUMBER,
          p_COMM     NUMBER,
          p_DEPTNO   NUMBER);
      PROCEDURE dept_ins(
          p_DEPTNO NUMBER,
          p_dname  VARCHAR2 ,
          p_LOC    VARCHAR2,
          p_batch  NUMBER);
      PROCEDURE validate_prc;
      PROCEDURE main;
    TYPE dept_t
    IS
      TABLE OF dept%ROWTYPE;
      hdr_tbl dept_t;
    TYPE emp_t
    IS
      TABLE OF emp%ROWTYPE;
      line_tbl emp_t;
    TYPE dept_i_t
    IS
      TABLE OF dept3%ROWTYPE;
      hdr_ins_tbl dept_i_t;
    TYPE emp_i_t
    IS
      TABLE OF emp3%ROWTYPE;
      line_ins_tbl emp_i_t;
    END;
    -- pacakge body
    CREATE OR REPLACE
    PACKAGE body test_b
    AS
    PROCEDURE emp_ins(
        p_EMPNO    NUMBER,
        p_ENAME    VARCHAR2,
        p_JOB      VARCHAR2,
        p_MGR      NUMBER,
        p_HIREDATE DATE,
        p_SAL      NUMBER,
        p_COMM     NUMBER,
        p_DEPTNO   NUMBER)
    IS
    BEGIN
      INSERT
      INTO EMP3
          EMPNO ,
          ENAME ,
          JOB ,
          MGR ,
          HIREDATE ,
          SAL ,
          COMM ,
          DEPTNO
        VALUES
          P_EMPNO ,
          P_ENAME ,
          P_JOB ,
          P_MGR ,
          P_HIREDATE ,
          P_SAL ,
          P_COMM ,
          P_DEPTNO
    EXCEPTION
    WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('EXCEPTION AT EMP INSERT'||SQLERRM);
    END;
    PROCEDURE dept_ins
        p_DEPTNO NUMBER,
        p_dname  VARCHAR2 ,
        p_LOC    VARCHAR2,
        p_batch  NUMBER
    IS
    BEGIN
      INSERT
      INTO DEPT3
          DEPTNO ,
          DNAME ,
          LOC ,
          batch_id
        VALUES
          p_DEPTNO ,
          p_DNAME ,
          p_LOC ,
          p_batch
    EXCEPTION
    WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('EXCEPTION AT DEPT INSERT'||SQLERRM);
    END ;
    PROCEDURE validate_prc
    IS
      CURSOR c1
      IS
        SELECT * FROM dept WHERE status IS NULL ;--AND rownum <25;
      CURSOR c2(p_dept NUMBER )
      IS
        SELECT * FROM emp WHERE deptno=p_dept;
      e_validation EXCEPTION;
    BEGIN
      OPEN c1;
      LOOP
        FETCH c1 BULK COLLECT INTO hdr_tbl limit 5000;
        SELECT emp_seq.nextval INTO g_batch_id FROM dual;
        EXIT
      WHEN hdr_tbl.count = 0;
        dbms_output.put_line('batch'||g_batch_id);
      END LOOP;
      CLOSE c1;
      dbms_output.put_line('C1 closed');
      --------- Loading data into the inv line table type -------------------------------
      FOR i IN 1 .. hdr_tbl.count
      LOOP
        dbms_output.put_line('started validation');
        -- do header level validations
        IF hdr_tbl(i).dname  IS NULL THEN
          hdr_tbl(i).status  := 'ERROR';
          hdr_tbl(i).err_msg :=',DNAME is null';
        END IF;
        OPEN c2(hdr_tbl(i).deptno);
        LOOP
          FETCH c2 BULK COLLECT INTO line_tbl;
          -- EXIT WHEN c2%NOTFOUND;
        END LOOP;
        CLOSE c2;
        FOR j IN 1 .. line_tbl.count
        LOOP
          -- do line validations
          IF line_tbl(j).ename IS NULL THEN
            hdr_tbl(i).status  := 'ERROR';
            hdr_tbl(i).err_msg :=',ENAME is null';
          END IF;
          BEGIN
            FORALL j IN line_tbl.FIRST .. line_tbl.LAST
            SAVE EXCEPTIONS
            UPDATE EMP
            SET object_id =3
              -- I have multiple columns to update based on validations
            WHERE deptno =hdr_tbl(i).deptno------------
            AND empno    =line_tbl (j).empno;
            COMMIT;
            line_tbl.DELETE;
            dbms_output.put_line( 'Successfully updated emp temp table.');
          EXCEPTION
          WHEN OTHERS THEN
            ROLLBACK;
            dbms_output.put_line( 'Error while updating line temp table. ' || sqlerrm );
            FOR j IN 1 .. sql%BULK_EXCEPTIONS.COUNT
            LOOP
              DBMS_OUTPUT.put_line(' occurred during line temp table updation ' || sql%BULK_EXCEPTIONS(i).ERROR_INDEX );
            END LOOP;
            raise e_validation;
          END;
        END LOOP; -- j
        --CLOSE c2;
        IF hdr_tbl(i).err_msg IS NULL THEN
          hdr_tbl (i).status  := 'VALID';
          hdr_tbl (i).err_msg := NULL;
        END IF;
        -- even if I have line validation failed I have to update header status and erorr msg
        BEGIN
          FORALL i IN hdr_tbl.FIRST .. hdr_tbl.LAST
          SAVE EXCEPTIONS
          UPDATE DEPT
          SET object_id =4,
            status      = hdr_tbl (i).status,
            err_msg     = hdr_tbl (i).err_msg
            --  batch_id =
            -- I have multiple columns to update based on validations
          WHERE deptno = hdr_tbl (i).deptno
          AND status  IS NULL; ------------
          COMMIT;
          hdr_tbl.DELETE;
          dbms_output.put_line( 'Successfully updated dept temp table.');
          --close c1;
        EXCEPTION
        WHEN OTHERS THEN
          ROLLBACK;
          dbms_output.put_line( 'Error while updating hdr temp table. ' || sqlerrm );
          FOR i IN 1 .. sql%BULK_EXCEPTIONS.COUNT
          LOOP
            DBMS_OUTPUT.put_line(' occurred during line temp table updation ' || sql%BULK_EXCEPTIONS(i).ERROR_INDEX );
          END LOOP;
          raise e_validation;
        END;
      END LOOP; --i
    EXCEPTION
    WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('EXCEPTION AT validate'||SQLERRM);
    END ;
    PROCEDURE main
    IS
      CURSOR dept_ins_cur
      IS
        SELECT * FROM dept WHERE status='VALID';
      CURSOR emp_ins_cur(p_deptno NUMBER)
      IS
        SELECT * FROM emp WHERE deptno= p_deptno;
    BEGIN
      validate_prc;
      OPEN dept_ins_cur;
      LOOP
      FETCH dept_ins_cur BULK COLLECT INTO hdr_ins_tbl limit 1000
      EXIT
      WHEN dept_ins_cur%NOTFOUND;
      END LOOP;
      CLOSE dept_ins_cur;
      --------- Loading data into the inv line table type -------------------------------
      FOR i IN 1 .. hdr_tbl.count
      loop
      dept_ins(hdr_ins_tbl(i).deptno ,
      hdr_ins_tbl(i).DNAME ,
      hdr_ins_tbl(i).LOC , emp_seq.nextval);
      commit;
      OPEN emp_ins_cur(hdr_ins_tbl(i).deptno);
      LOOP
      FETCH emp_ins_cur BULK COLLECT INTO line_ins_tbl;
      --EXIT WHEN emp_ins_cur%NOTFOUND;
      END LOOP;
      CLOSE emp_ins_cur;
      for j in 1..line_ins_tbl.count loop
      emp_ins(line_ins_tbl(j).EMPNO ,
      line_ins_tbl(j).ENAME ,
      line_ins_tbl(j).JOB ,
      line_ins_tbl(j).MGR ,
      line_ins_tbl(j).HIREDATE ,
      line_ins_tbl(j).SAL ,
      line_ins_tbl(j).comm ,
      line_ins_tbl(j).DEPTNO );
      end loop;
      end loop;
      commit;
      BEGIN
      forall i IN hdr_ins_tbl.first .. hdr_ins_tbl.last
      SAVE exceptions
      UPDATE dept
      SET status   = 'INSERTED',
      err_msg  = null
      WHERE deptno=hdr_ins_tbl (i).deptno
      AND status   = 'VALID';
      COMMIT;
      hdr_ins_tbl.delete;
      dbms_output.put_line( 'inserting into temp tables.');
      EXCEPTION
      WHEN OTHERS THEN
      rollback;
      end;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line('exception in main' ||SQLERRM);
    END ;
    END;
    Thanks in advance...
    Message was edited by: 888025

    Hi, I have problem with the following pl/sql block
    Well, as Hoek already said, that is the understatement of the century.
    I can't be absolutely certain but I think that set of DDL and code that you posted has just about every possible error and design issue that there is! It would make an excellent addition to BluShadow's FAQs an an example of what NOT to do.
    I don't think it is even possible to 'fix the basics first' as Hoek suggested. IMHO the first step needs to be to create a functional requirements document (FRD) that explains in detail WHAT needs to be done. That doc should also contain info about how any errors/recovery/restart is to be handled. It is premature to try to implement ANY solution without first knowing what is needed functionally.
    Once the FRD is done you should do a walk-through based on your current architecture and sample data to make sure that the document really covers ALL of the steps that need to be performed and that it adequately explains how to deal with any processing or data issues that might arise.
    The next document you need is the TRD - Technical Requirements Doc that covers the different technical implementions of the FRD that can be done and the advantages/disadvantages of each.
    Then you can start working on a prototype.
    1. The DDL you posted isn't coherent - there are CREATE table statements and then later ALTER statements that add additional columns. There doesn't appear to be any reason for not including ALL of the columns in the CREATE table statement.
    2. You are using PL/SQL types instead of SQL types. That makes it impossible to use those types in SQL statements and makes it much more difficult to test since it is much easier to test a query in SQL (e.g. using sql*plus) that to embed the query in PL/SQL.
    3. You are defining the same type twice but giving it different names.
    TYPE dept_t
       IS
          TABLE OF dept%ROWTYPE
             INDEX BY binary_integer;
    TYPE dept_i_t
       IS
          TABLE OF dept%ROWTYPE
             INDEX BY binary_integer;
    Those are both based on the same DEPT table! Why the duplication?
    Also you are using associative arrays instead of just using nested tables. Get rid of the INDEX BY clause.
    4. You have some serious architectural and data model issues
    -- Assume the following scenario, we are validating dept (master) and emp(child) which are my temporary tables and updating the status back to
    -- dept ( for all the validation errors, even if we have any validation at child  it has to update the header record with error message),
    Why would you do that? You say 'it has to update the header record ...'. Says who? That is just one indication that you are trying to implement a 'solution' before you have adequately defined the 'problem'.
    Typically you would NOT alter any of the data tables; any validation errors/issues would get inserted into a table specifically designed to hold/log those issues. That table would contain key field values to correlate with the source of the error.
    Those 'master' and 'child' entities are two SEPARATE things. Issues with a 'master' row have NOTHING to do with any possible child rows.
    And issues with a 'child' row have NOTHING to do with any possible master rows. The ONLY connection between 'child' and 'master' is the foreign key that correlates them.
    So you don't necessarily have to validate the 'child' rows in sync with their 'master' row. In many cases you would have a procedure that performs validation of the entire set of 'master' rows and log those issues/problems. You would use a different procedure to validate the entire set of 'child' rows and log their issues.
    Those validation procedures can often work with ALL of the data using SQL statements instead of bulk processing.
    5. You are using loop constructs that are not valid for the type of processing you are using
    LOOP
        FETCH c1 BULK COLLECT INTO hdr_tbl;
        EXIT
      WHEN c1%NOTFOUND;
      END LOOP;
    There can be NO exit since the bulk collect with either get EVERYTHING or NOTHING. Possibly that is just a holdover from your attempt to use the LIMIT clause but you removed that clause from the FETCH; I don't know.
    There is so much wrong with what you posted it is really rather pointless to try to 'fix' it.
    I suggest you start over and clarify and DOCUMENT the actual requirements without prejudice about the solution that someone seems to want to force on you.

  • Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!

    Hi all,
    Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!
    And Can I use other database store business data and sync with lite?
    Thanks ahead!!!

    Jonathan,
    No, it is not possible to use any other database than Oracle (8.1.7) or later .
    Oracle Lite will only work with Oracle.
    Regards

  • Problems by the Installation of Adobe Photoshop Elements 12

    Problems by the Installation of Adobe Photoshop Elements 12  can some one help me please?

    Thanks you so much,
    Somehow it is solved now. It is now perfectly installed. and when it is as
    easely as I was using 3.2 version, I shall buy it at once.
    God bless you and thanks.
    Alwin lyss
    2014-07-11 22:01 GMT+02:00 kglad <[email protected]>:
        Problems by the Installation of Adobe Photoshop Elements 12  created
    by kglad <https://forums.adobe.com/people/kglad> in *Downloading,
    Installing, Setting Up* - View the full discussion
    <https://forums.adobe.com/message/6543307#6543307>

  • Hi! I just bought Lion and I am having a problem with the installation. It keeps telling me that the computer's hard drive has a S.M.A.R.T. problem. How can I solve it?problem.

    Hi! I just bought Lion and I am having a problem with the installation. It keeps telling me that the computer's hard drive has a S.M.A.R.T. problem. How can I solve it?
    Thanks!
    Angela

    You may have a hard drive problem. When I installed Lion, the installer told me that it couldn't complete because the hard drive was failing (or broken, the exact words escape me). Since the HD had been functioning just fine, I took it to the Genius Bar, and found out that yes, the hard drive was slowly dying (bad sectors). I couldn't reboot into Snow Leopard, the installer wouldn't let me and then the drive just wouldn't work at all.
    I had to replace my drive and restore from Time Machine. Thankfully, I had Time Machine, and had just done a backup 5 minutes before the crash.
    Best of luck.

  • When i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    when i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    Hi
    I've got a similar problem.  iTunes v10.2 worked fine, but when I tried to update it to 10.5 I got a 'Bonjour' error.  I eventually solved that but I still couldn't upgrade to 10.5, so I deleted every single Apple, Quicktime, iTunes, etc file on my PC using Revo Unistaller (because the normal Windows Add/Delete programs wouldn't work) but now, when I install the latest iTunes version from scratch (on XP SP3), it says: "the installer encountered errors before it could be configured.... your system has not been modified" 
    Any ideas?
    Rick

Maybe you are looking for