SQL Timeouts

I am on SQL server 2008 R2.
I have a monthly process that inserts and updates 50,000 records.
The process make take 4 minutes or it may time out. If I delete the data and rerun the process it runs in 30 seconds.
Why would it take more time the first time? How can I research the process? Does SQL server have a problem in allocating space for new records? Is this a storage problem?
Certified Geek

For the dynamic management views (DMV) such as sys.dm_exec_requests, to run them you would need the view server state permission. So when you run the query against sys.dm_exec_requests, are you seeing the list of requests (each request should be represented
as a row in the result)? I was not sure on what you meant on getting info on every request? Wondering if you are referring to the SQL statement for each of the request? The SQL statement for each request, can be obtained with the sys.dm_exec_sql_text
(the cross join). Rather odd that you are unable to run the cross join.
While in the subject of DMV, I would suggest to take a look at the sp_whoisactive stored procedure (http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx),
it is an awesome tool that can be use to check activity that is running on your SQL Server instance.
I am tempted to say to try to optimize the query that you have. But it is rather odd that you mentioned that the script is running 30 seconds in Management Studio but 4+ minutes using C# code. I realized that normally C# code can be slow during the first
run, but that is quite a big difference.

Similar Messages

  • SQL Timeouts and Blocking Locks

    SQL Timeouts and Blocking Locks
    Just wanted to check in and see if anyone here has feedback on application settings, ColdFusion settings, JBOSS settings or other settings that could help to limit or remove SQL Timeouts and blocking locks on SID's.
    We're using MS SQL 2000 with JBOSS and IIS5.
    We've been seeing the following error in our logs that starts blocking locks in SQL:
    java.sql.SQLException: [newScale] [SQLServer JDBC Drive] [SQLServer] Lock request time out period exceeded.
    Once this happens, we're hosed until we remove the blocking SID in SQL.  These are the connections to the application.
    Any feedback would be great.  Thanks!

    Hi
    This is your exact solution:
    Select a.username, a.sid, a.serial#, b.id1, c.sql_text
    From v$session a, v$lock b, v$sqltext c
    Where b.id1 in( Select distinct e.id1
    from v$session d , v$lock e
    where d.lockwait = e.kaddr ) and
    a.sid = b.sid and
    c.hash_value = a.sql_hash_value and
    b.request =0;
    Thanks
    Sarju
    Oracle DBA
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by I'm clueless:
    Can someone give me the SQL statement to
    show if there are any blocking database locks and if so - which user is locking the Database?
    Thanks in Advance<HR></BLOCKQUOTE>
    null

  • Getting app-store-import-exception with FIM-MA Full Imports SQL Timeouts

    Hi,
    Any idea whats going on here? Full Import on FIM-MA leads to app-store-import-exception.
    Here is a quick profile of the situation:
    FIM Sync, FIM Service & FIM Portal all are instaled on the same machine with 24GB RAM hosted as a Virtual Machine.
    FIM-MA Full Import leads to app-store-import-exception
    Event log reports "Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding"
    Here is a screen shot: http://www.freeimagehosting.net/image.php?e5570db7f6.jpg
    As you can see, FIM-MA imported close to 118500 objects before timing out.
    Here are the things I have tried:
    Extended FIM timeout on the services as per
    Darryl's Blog
    Provided FIM MA's password as per
    Ahmed's suggestion
    Restricted SQL Service Max RAM to 15 GB (Machine has 24GB) as per
    David Lundell's suggestion
    Thanks for your help in advance.
    Thanks,
    Here is the Application Event Log
    Log Name: Application
    Source: FIMSynchronizationService
    Date: 1/6/2011 11:29:00 AM
    Event ID: 6500
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: fimsrv.fimdev.pvt
    Description:
    The description for Event ID 6500 from source FIMSynchronizationService cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    There is an error executing ILM MA full import.
    Type: System.Data.SqlClient.SqlException
    Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    Stack Trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader()
    at Microsoft.ResourceManagement.Data.Sync.FullImportGetNext(Int64 beginObjectKey, Int64 maxObjectKey, Int32 batchSize)
    at MIIS.ManagementAgent.RavenMA.FullImportGetNextBatch(Int64 maxObjectKey, Int32 batchSize)
    the message resource is present but the message is not found in the string/message table
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="FIMSynchronizationService" />
    <EventID Qualifiers="0">6500</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-01-06T17:29:00.000000000Z" />
    <EventRecordID>1582399</EventRecordID>
    <Channel>Application</Channel>
    <Computer>fimsrv.fimdev.pvt</Computer>
    <Security />
    </System>
    <EventData>
    <Data>There is an error executing ILM MA full import.
    Type: System.Data.SqlClient.SqlException
    Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    Stack Trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader()
    at Microsoft.ResourceManagement.Data.Sync.FullImportGetNext(Int64 beginObjectKey, Int64 maxObjectKey, Int32 batchSize)
    at MIIS.ManagementAgent.RavenMA.FullImportGetNextBatch(Int64 maxObjectKey, Int32 batchSize)</Data>
    </EventData>
    </Event>
    Thanks,
    Jameel Syed |
    Identity & Security Strategist | [email protected] |
    Simplified Identity and Access Management

    That is unusual. I suggest checking for database integrity and peforming index maintenance, on both the FIMService and FIMSync databases.
    You could also increase the following timeout (see link below for more settings)
    The values in Table 17 are located in the registry key: SOFTWARE\Microsoft\Forefront Identity Manager\2010\Synchronization Service.
    Table 17
    Registry value name
    Value type
    Class
    Created by
    Notes
    ReadTimeOut
    <dword>
    HKLM
    Admin
    The default value is 58, specified in seconds.
    Note
    Only used by the management agent for FIM (FIM MA) for reading from the FIM Service data base.
    http://technet.microsoft.com/en-us/library/ff800821(WS.10).aspx
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • DPM Express Full Backups Causing SQL timeouts

    Hi,
    We run a SQL 2008 R2 failover cluster on Server 2008 R2 SP1 connected to an Equallogic SAN. The SQL failover cluster is fully servicepacked and installed the latest cumulative updates. 
    We have all our databases in full recovery mode and protected by DPM 2012 SP1 with latest cumulative updates.
    The protection groups for SQL are configured to synchronise every 60mins and 1 express full backup every night. Every time the SQL express backups run the SQL server experiences timouts and end users report applications timing out. In the SQL server Application
    logs I see Event ID 833 numerous times, these only occur as the express full backups take place. Every time the express full backups run we see the same timeouts and event logged that I/O has taken longer than 15 seconds to complete:
    Log Name:      Application
    Source:        MSSQLSERVER
    Date:          01/04/2014 04:10:10
    Event ID:      833
    Task Category: Server
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      WDCSQL02.local
    Description:
    SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf] in database [msdb] (4).  The OS file handle is 0x00000000000008F8.  The offset
    of the latest long I/O is: 0x000000042eae00
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSSQLSERVER" />
        <EventID Qualifiers="16384">833</EventID>
        <Level>4</Level>
        <Task>2</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-01T03:10:10.000000000Z" />
        <EventRecordID>14165629</EventRecordID>
        <Channel>Application</Channel>
        <Computer>WDCSQL02.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>1</Data>
        <Data>15</Data>
        <Data>D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf</Data>
        <Data>msdb</Data>
        <Data>4</Data>
        <Data>00000000000008F8</Data>
        <Data>0x000000042eae00</Data>
        <Binary>410300000A0000000600000055004B00530051004C00000000000000</Binary>
      </EventData>
    </Event>
    I was under the impression that DPM SQL backups would remain online during the backup.
    Is this normal? 
    Any way to fix this issue?
    Thanks,
    Microsoft Partner

    Hi
    A copy backup will not truncate the logs but a full backup will and it will also stamp the database once it does a full backup.

  • SharePoint 2010 Application server has SQL timeout problem

    Hi All,
    Our SharePoint has App & WFE servers, and the SQL server is always on. BTW, App server sometimes has timeout problem as follow, has any idea on it? This problem does not occur timing, our SP 10 is RTM version.
    Error Log:
    01/29/2015 17:25:29.96 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Monitoring                    
    nasq Medium  
    Entering monitored scope (Timer Job job-workflow)
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880i High    
    System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean
    breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)     at
    System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()     at System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean
    encrypt, Boolean trustServerCert, Boolean& marsCapable)     at System.Data.SqlCl...
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98* OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880i High    
    ...ient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)     at
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)     at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
    host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)     at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString
    connectionOptions, String newPassword, Bo...
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98* OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880i High    
    ...olean redirectedUserInstance)     at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean
    redirectedUserInstance)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)     at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection
    owningConnection, DbConnectionPool pool, DbConnectionOptions options)     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)     at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection
    owningObject)     at System.... 5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98* OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880i High    
    ...Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)     at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)     at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
    outerConnection, DbConnectionFactory connectionFactory)     at System.Data.SqlClient.SqlConnection.Open()     at Microsoft.SharePoint.Utilities.SqlSession.OpenConnection()
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880k High    
      at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior)     at Microsoft.SharePoint.Administration.SPDatabase.get_IsReadOnly()     at Microsoft.SharePoint.Administration.SPContentDatabaseLockManager.CanProcessContentDatabase(SPContentDatabase contentDatabase)
        at Microsoft.SharePoint.Administration.SPWorkItemJobDefinition.Execute(SPJobState jobState)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService,
    Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(Time...
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98* OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880k High    
    ...rJobExecuteData& data, Int32& result)  
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    880j High    
    SqlError: 'Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.'    Source: '.Net SqlClient Data Provider' Number: -2 State: 0 Class: 11 Procedure: '' LineNumber: 0 Server:
    'spsql' 5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    3355 Critical
    Cannot connect to SQL Server. spsql not found. Additional error information from SQL Server is included below.  Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    tzku High    
    ConnectionString: 'Data Source=spsql;Initial Catalog=WSS_Content;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'    ConnectionState: Closed ConnectionTimeout: 15
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:50.98 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Database                      
    85t4 High    
    An error occured while attempting to verify that the database is read only for database WSS_Content. The error contained the following message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not
    responding. 5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    01/29/2015 17:25:51.00 OWSTIMER.EXE (0x0A78)                  
    0x0B08
    SharePoint Foundation         Monitoring                    
    b4ly High    
    Leaving Monitored Scope (Timer Job job-workflow). Execution Time=21043.2150707921
    5a91b888-0f2e-46fe-9ee0-96c81c6581bf
    Thnaks.
    Ben

    What is the latency (measured via ping) between the App and SQL Server? SharePoint 2010 RTM hasn't been supported for quite some time. Upgrade to SP2 and see if it resolves the issue.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • WSUS Downstream server not synchronizing - SQL Timeout

    I'm running into problems synching a downstream WSUS server with the parent server. The first few times that the server synch'd it ran fine, then it just stopped working. The Windows Firewall is disabled and there is no proxy. I've checked all the permissions
    for IIS and all required services are running. I've also tried an IISRESET, uninstall WSUS, re-installed, ran wsusutil.exe reset and checkhealth, rebooted many times. Ran the DB Cleanup Wizard on both servers. Any help woul be appreciated.
    WSUS Parent Server: Windows Server 2003 R2 SP2
    WSUS Downstream Server: Windows Server 2003 R2 SP2
    WSUS Failed Error Message:
    SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout)
       at System.Data.SqlClient.SqlDataReader.Read()
       at Microsoft.UpdateServices.DatabaseAccess.DBConnection.ReadOneRow()
       at Microsoft.UpdateServices.Internal.DataAccess.HideUpdatesForReplicaSync(String xmlUpdateIds)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ProcessHiddenUpdates(Guid[] hiddenUpdates)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ReplicaSync()
       at Microsoft.UpdateServic
    Thank You

    Sure, here are the log files. Thank you!
    UPSTREAM SERVER:
    Running... GetConfiguration
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup
     Version:3
     InstallLanguage:ENU
     ProxyPassword:
     SmtpUserPassword:
     VersionString:3.2.7600.226
     ConfigurationSource:0
     ServicePackLevel:2
     TargetDir:C:\Program Files\Update Services\
     InstallType:1
     EnableRemoting:1
     WsusAdministratorsSid:S-1-5-21-163115894-1154025269-1635805901-1010
     WSUSReportersSid:S-1-5-21-163115894-1154025269-1635805901-1009
     SqlServerName:WSUSDAL\MICROSOFT##SSEE
     SqlAuthenticationMode:WindowsAuthentication
     SqlDatabaseName:SUSDB
     SqlUserName:
     SqlEncryptedPassword:
     SqlInstanceIsRemote:0
     wYukonInstalled:1
     ContentDir:E:\WSUS
     PortNumber:8530
     IISTargetWebSiteIndex:625045861
     IISTargetWebSiteCreated:True
     IISUninstallConfigFilePath:C:\Program Files\Update Services\setup\UninstallSettings.xml
     IISPreviousInstallRevision:
     IISInstallRevision:3.2.7600.226
     IIsDynamicCompression:0
     EncryptionParam:System.Byte[]
     EncryptionKey:System.Byte[]
    <NewDataSet>
      <Table>
        <ConfigurationID>1</ConfigurationID>
        <LastConfigChange>2010-05-30T21:19:36.8700000-05:00</LastConfigChange>
        <DssAnonymousTargeting>false</DssAnonymousTargeting>
        <IsRegistrationRequired>true</IsRegistrationRequired>
        <MaxDeltaSyncPeriod>30</MaxDeltaSyncPeriod>
        <ReportingServiceUrl>https://stats.update.microsoft.com</ReportingServiceUrl>
        <ServerID>c48b3181-a77e-4a88-8986-3dd6bf07c291</ServerID>
        <AnonymousCookieExpirationTime>10080</AnonymousCookieExpirationTime>
        <SimpleTargetingCookieExpirationTime>60</SimpleTargetingCookieExpirationTime>
        <MaximumServerCookieExpirationTime>10080</MaximumServerCookieExpirationTime>
        <DssTargetingCookieExpirationTime>240</DssTargetingCookieExpirationTime>
        <EncryptionKey>dE3WZ7GGMBOpG/ftJuzo7lDLHBFVT7VR</EncryptionKey>
        <ServerTargeting>false</ServerTargeting>
        <SyncToMU>true</SyncToMU>
        <UpstreamServerName>SUSDal</UpstreamServerName>
        <ServerPortNumber>8530</ServerPortNumber>
        <UpstreamServerUseSSL>false</UpstreamServerUseSSL>
        <UseProxy>false</UseProxy>
        <ProxyName />
        <ProxyServerPort>80</ProxyServerPort>
        <AnonymousProxyAccess>true</AnonymousProxyAccess>
        <ProxyUserName />
        <HostOnMu>false</HostOnMu>
        <LocalContentCacheLocation>e:\WSUS\WsusContent\</LocalContentCacheLocation>
        <ServerSupportsAllLanguages>false</ServerSupportsAllLanguages>
        <LogLevel>0</LogLevel>
        <LogPath />
        <SubscriptionFailureNumberOfRetries>3</SubscriptionFailureNumberOfRetries>
        <SubscriptionFailureWaitBetweenRetriesTime>15</SubscriptionFailureWaitBetweenRetriesTime>
        <DispatchManagerPollingInterval>5</DispatchManagerPollingInterval>
        <StateMachineTransitionLoggingEnabled>false</StateMachineTransitionLoggingEnabled>
        <StateMachineTransitionErrorCaptureLength>600</StateMachineTransitionErrorCaptureLength>
        <MaxSimultaneousFileDownloads>10</MaxSimultaneousFileDownloads>
        <MUUrl>https://www.update.microsoft.com/v6</MUUrl>
        <EventLogFloodProtectTime>10</EventLogFloodProtectTime>
        <HandshakeAnchor>13270510,2010-06-02 21:12:31.056</HandshakeAnchor>
        <StatsDotNetWebServiceUri>http://localhost</StatsDotNetWebServiceUri>
        <QueueFlushTimeInMS>3000</QueueFlushTimeInMS>
        <QueueFlushCount>100</QueueFlushCount>
        <QueueRejectCount>500</QueueRejectCount>
        <SleepTimeAfterErrorInMS>30000</SleepTimeAfterErrorInMS>
        <LogDestinations>0</LogDestinations>
        <AutoRefreshDeployments>true</AutoRefreshDeployments>
        <RedirectorChangeNumber>0</RedirectorChangeNumber>
        <ImportLocalPath />
        <UseCookieValidation>true</UseCookieValidation>
        <AutoPurgeClientEventAgeThreshold>15</AutoPurgeClientEventAgeThreshold>
        <AutoPurgeServerEventAgeThreshold>90</AutoPurgeServerEventAgeThreshold>
        <AutoPurgeDetectionPeriod>12</AutoPurgeDetectionPeriod>
        <DoReportingDataValidation>true</DoReportingDataValidation>
        <DoReportingSummarization>true</DoReportingSummarization>
        <MaxNumberOfIdsToRequestDataFromUss>100</MaxNumberOfIdsToRequestDataFromUss>
        <MaxCoreUpdatesPerRequest>30</MaxCoreUpdatesPerRequest>
        <MaxExtendedUpdatesPerRequest>50</MaxExtendedUpdatesPerRequest>
        <DownloadRegulationUrl />
        <AllowProxyCredentialsOverNonSsl>false</AllowProxyCredentialsOverNonSsl>
        <LazySync>true</LazySync>
        <DownloadExpressPackages>false</DownloadExpressPackages>
        <DoServerSyncCompression>true</DoServerSyncCompression>
        <ProxyUserDomain />
        <BitsHealthScanningInterval>3600000</BitsHealthScanningInterval>
        <BitsDownloadPriorityForeground>false</BitsDownloadPriorityForeground>
        <MaxXmlPerRequest>5242880</MaxXmlPerRequest>
        <MaxXmlPerRequestInServerSync>2000000</MaxXmlPerRequestInServerSync>
        <MaxTargetComputers>30000</MaxTargetComputers>
        <MaxEventInstances>2000000</MaxEventInstances>
        <LogRolloverFileSizeInBytes>0</LogRolloverFileSizeInBytes>
        <WUSInstallType>0</WUSInstallType>
        <ReplicaMode>false</ReplicaMode>
        <AutoDeployMandatory>true</AutoDeployMandatory>
        <DeploymentChangeDeferral>30</DeploymentChangeDeferral>
        <RevisionDeletionTimeThreshold>30</RevisionDeletionTimeThreshold>
        <RevisionDeletionSizeThreshold>1024</RevisionDeletionSizeThreshold>
        <CollectClientInventory>false</CollectClientInventory>
        <DoDetailedRollup>true</DoDetailedRollup>
        <RollupResetGuid>83340a0d-4624-4cb9-bc30-db197c999bc8</RollupResetGuid>
        <UssSupportsAllLanguages>false</UssSupportsAllLanguages>
        <GetContentFromMU>false</GetContentFromMU>
        <HmDetectIntervalInSeconds>600</HmDetectIntervalInSeconds>
        <HmRefreshIntervalInSeconds>21600</HmRefreshIntervalInSeconds>
        <HmCoreDiskSpaceGreenMegabytes>500</HmCoreDiskSpaceGreenMegabytes>
        <HmCoreDiskSpaceRedMegabytes>200</HmCoreDiskSpaceRedMegabytes>
        <HmCoreCatalogSyncIntervalInDays>1</HmCoreCatalogSyncIntervalInDays>
        <HmClientsInstallUpdatesGreenPercent>10</HmClientsInstallUpdatesGreenPercent>
        <HmClientsInstallUpdatesRedPercent>25</HmClientsInstallUpdatesRedPercent>
        <HmClientsInventoryGreenPercent>2</HmClientsInventoryGreenPercent>
        <HmClientsInventoryRedPercent>5</HmClientsInventoryRedPercent>
        <HmClientsInventoryScanDiffInHours>30</HmClientsInventoryScanDiffInHours>
        <HmClientsSilentGreenPercent>10</HmClientsSilentGreenPercent>
        <HmClientsSilentRedPercent>25</HmClientsSilentRedPercent>
        <HmClientsSilentDays>30</HmClientsSilentDays>
        <DssRollupChunkSize>5000</DssRollupChunkSize>
        <MURollupOptin>False</MURollupOptin>
        <AutoRefreshDeploymentsDeclineExpired>true</AutoRefreshDeploymentsDeclineExpired>
        <ServerString>Default</ServerString>
        <HmCoreFlags>-1</HmCoreFlags>
        <HmClientsFlags>-1</HmClientsFlags>
        <HmDatabaseFlags>-1</HmDatabaseFlags>
        <HmWebServicesFlags>-1</HmWebServicesFlags>
        <ClientReportingLevel>2</ClientReportingLevel>
        <LocalPublishingMaxCabSize>384</LocalPublishingMaxCabSize>
        <DownloadRegulationWebServiceUrl />
        <LoadOdfLocally>false</LoadOdfLocally>
        <OdfFilePath />
        <HmClientsTooManyGreenPercent>80</HmClientsTooManyGreenPercent>
        <HmClientsTooManyRedPercent>90</HmClientsTooManyRedPercent>
        <ComputerDeletionTimeThreshold>30</ComputerDeletionTimeThreshold>
        <ConfigurationChangeNumber>137118</ConfigurationChangeNumber>
        <UseSeparateProxyForSsl>false</UseSeparateProxyForSsl>
        <SslProxyName />
        <SslProxyServerPort>443</SslProxyServerPort>
        <ServerSupportsAllAvailableLanguages>false</ServerSupportsAllAvailableLanguages>
      </Table>
    </NewDataSet>
    DOWNSTREAM SERVER:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup
     Version:3
     InstallLanguage:ENU
     ProxyPassword:
     SmtpUserPassword:
     VersionString:3.2.7600.226
     ConfigurationSource:0
     ServicePackLevel:2
     TargetDir:C:\Program Files\Update Services\
     InstallType:1
     EnableRemoting:1
     WsusAdministratorsSid:S-1-5-21-2105027866-1443240842-1445603992-20366
     WSUSReportersSid:S-1-5-21-2105027866-1443240842-1445603992-19384
     SqlServerName:SUSFTW\MICROSOFT##SSEE
     SqlAuthenticationMode:WindowsAuthentication
     SqlDatabaseName:SUSDB
     SqlUserName:
     SqlEncryptedPassword:
     SqlInstanceIsRemote:0
     wYukonInstalled:1
     ContentDir:D:\WSUS
     PortNumber:8530
     IISTargetWebSiteIndex:602037408
     IISTargetWebSiteCreated:True
     IISUninstallConfigFilePath:C:\Program Files\Update Services\setup\UninstallSettings.xml
     IISPreviousInstallRevision:
     IISInstallRevision:3.2.7600.226
     IIsDynamicCompression:-1
     EncryptionParam:System.Byte[]
     EncryptionKey:System.Byte[]
    <NewDataSet>
      <Table>
        <ConfigurationID>1</ConfigurationID>
        <LastConfigChange>2010-06-02T00:00:35.0200000-05:00</LastConfigChange>
        <DssAnonymousTargeting>false</DssAnonymousTargeting>
        <IsRegistrationRequired>true</IsRegistrationRequired>
        <MaxDeltaSyncPeriod>30</MaxDeltaSyncPeriod>
        <ReportingServiceUrl>https://stats.update.microsoft.com</ReportingServiceUrl>
        <ServerID>dac8845b-855c-4899-ab19-8bf7a750514f</ServerID>
        <AnonymousCookieExpirationTime>10080</AnonymousCookieExpirationTime>
        <SimpleTargetingCookieExpirationTime>60</SimpleTargetingCookieExpirationTime>
        <MaximumServerCookieExpirationTime>10080</MaximumServerCookieExpirationTime>
        <DssTargetingCookieExpirationTime>240</DssTargetingCookieExpirationTime>
        <EncryptionKey>VoxRFFCoICrJYoTjr5WL1aOzfX1CSL9m</EncryptionKey>
        <ServerTargeting>true</ServerTargeting>
        <SyncToMU>false</SyncToMU>
        <UpstreamServerName>WSUSDAL</UpstreamServerName>
        <ServerPortNumber>8530</ServerPortNumber>
        <UpstreamServerUseSSL>false</UpstreamServerUseSSL>
        <UseProxy>false</UseProxy>
        <ProxyName />
        <ProxyServerPort>80</ProxyServerPort>
        <AnonymousProxyAccess>true</AnonymousProxyAccess>
        <ProxyUserName />
        <HostOnMu>false</HostOnMu>
        <LocalContentCacheLocation>d:\WSUS\WsusContent\</LocalContentCacheLocation>
        <ServerSupportsAllLanguages>false</ServerSupportsAllLanguages>
        <LogLevel>0</LogLevel>
        <LogPath />
        <SubscriptionFailureNumberOfRetries>3</SubscriptionFailureNumberOfRetries>
        <SubscriptionFailureWaitBetweenRetriesTime>15</SubscriptionFailureWaitBetweenRetriesTime>
        <DispatchManagerPollingInterval>5</DispatchManagerPollingInterval>
        <StateMachineTransitionLoggingEnabled>false</StateMachineTransitionLoggingEnabled>
        <StateMachineTransitionErrorCaptureLength>600</StateMachineTransitionErrorCaptureLength>
        <MaxSimultaneousFileDownloads>10</MaxSimultaneousFileDownloads>
        <MUUrl>https://www.update.microsoft.com/v6</MUUrl>
        <EventLogFloodProtectTime>10</EventLogFloodProtectTime>
        <HandshakeAnchor>136861,2010-06-02 00:00:34.112</HandshakeAnchor>
        <StatsDotNetWebServiceUri>http://localhost</StatsDotNetWebServiceUri>
        <QueueFlushTimeInMS>3000</QueueFlushTimeInMS>
        <QueueFlushCount>100</QueueFlushCount>
        <QueueRejectCount>500</QueueRejectCount>
        <SleepTimeAfterErrorInMS>30000</SleepTimeAfterErrorInMS>
        <LogDestinations>0</LogDestinations>
        <AutoRefreshDeployments>true</AutoRefreshDeployments>
        <RedirectorChangeNumber>0</RedirectorChangeNumber>
        <ImportLocalPath />
        <UseCookieValidation>true</UseCookieValidation>
        <AutoPurgeClientEventAgeThreshold>15</AutoPurgeClientEventAgeThreshold>
        <AutoPurgeServerEventAgeThreshold>90</AutoPurgeServerEventAgeThreshold>
        <AutoPurgeDetectionPeriod>12</AutoPurgeDetectionPeriod>
        <DoReportingDataValidation>true</DoReportingDataValidation>
        <DoReportingSummarization>true</DoReportingSummarization>
        <MaxNumberOfIdsToRequestDataFromUss>100</MaxNumberOfIdsToRequestDataFromUss>
        <MaxCoreUpdatesPerRequest>30</MaxCoreUpdatesPerRequest>
        <MaxExtendedUpdatesPerRequest>50</MaxExtendedUpdatesPerRequest>
        <DownloadRegulationUrl />
        <AllowProxyCredentialsOverNonSsl>false</AllowProxyCredentialsOverNonSsl>
        <LazySync>true</LazySync>
        <DownloadExpressPackages>false</DownloadExpressPackages>
        <DoServerSyncCompression>true</DoServerSyncCompression>
        <ProxyUserDomain />
        <BitsHealthScanningInterval>3600000</BitsHealthScanningInterval>
        <BitsDownloadPriorityForeground>false</BitsDownloadPriorityForeground>
        <MaxXmlPerRequest>5242880</MaxXmlPerRequest>
        <MaxXmlPerRequestInServerSync>2000000</MaxXmlPerRequestInServerSync>
        <MaxTargetComputers>30000</MaxTargetComputers>
        <MaxEventInstances>2000000</MaxEventInstances>
        <LogRolloverFileSizeInBytes>0</LogRolloverFileSizeInBytes>
        <WUSInstallType>0</WUSInstallType>
        <ReplicaMode>true</ReplicaMode>
        <AutoDeployMandatory>true</AutoDeployMandatory>
        <DeploymentChangeDeferral>30</DeploymentChangeDeferral>
        <RevisionDeletionTimeThreshold>30</RevisionDeletionTimeThreshold>
        <RevisionDeletionSizeThreshold>1024</RevisionDeletionSizeThreshold>
        <CollectClientInventory>false</CollectClientInventory>
        <DoDetailedRollup>true</DoDetailedRollup>
        <RollupResetGuid>83340a0d-4624-4cb9-bc30-db197c999bc8</RollupResetGuid>
        <UssSupportsAllLanguages>false</UssSupportsAllLanguages>
        <GetContentFromMU>false</GetContentFromMU>
        <HmDetectIntervalInSeconds>600</HmDetectIntervalInSeconds>
        <HmRefreshIntervalInSeconds>21600</HmRefreshIntervalInSeconds>
        <HmCoreDiskSpaceGreenMegabytes>500</HmCoreDiskSpaceGreenMegabytes>
        <HmCoreDiskSpaceRedMegabytes>200</HmCoreDiskSpaceRedMegabytes>
        <HmCoreCatalogSyncIntervalInDays>1</HmCoreCatalogSyncIntervalInDays>
        <HmClientsInstallUpdatesGreenPercent>10</HmClientsInstallUpdatesGreenPercent>
        <HmClientsInstallUpdatesRedPercent>25</HmClientsInstallUpdatesRedPercent>
        <HmClientsInventoryGreenPercent>2</HmClientsInventoryGreenPercent>
        <HmClientsInventoryRedPercent>5</HmClientsInventoryRedPercent>
        <HmClientsInventoryScanDiffInHours>30</HmClientsInventoryScanDiffInHours>
        <HmClientsSilentGreenPercent>10</HmClientsSilentGreenPercent>
        <HmClientsSilentRedPercent>25</HmClientsSilentRedPercent>
        <HmClientsSilentDays>30</HmClientsSilentDays>
        <DssRollupChunkSize>5000</DssRollupChunkSize>
        <MURollupOptin>False</MURollupOptin>
        <AutoRefreshDeploymentsDeclineExpired>true</AutoRefreshDeploymentsDeclineExpired>
        <ServerString>Default</ServerString>
        <HmCoreFlags>-1</HmCoreFlags>
        <HmClientsFlags>-1</HmClientsFlags>
        <HmDatabaseFlags>-1</HmDatabaseFlags>
        <HmWebServicesFlags>-1</HmWebServicesFlags>
        <ClientReportingLevel>2</ClientReportingLevel>
        <LocalPublishingMaxCabSize>384</LocalPublishingMaxCabSize>
        <DownloadRegulationWebServiceUrl />
        <LoadOdfLocally>false</LoadOdfLocally>
        <OdfFilePath />
        <HmClientsTooManyGreenPercent>80</HmClientsTooManyGreenPercent>
        <HmClientsTooManyRedPercent>90</HmClientsTooManyRedPercent>
        <ComputerDeletionTimeThreshold>30</ComputerDeletionTimeThreshold>
        <ConfigurationChangeNumber>76409</ConfigurationChangeNumber>
        <UseSeparateProxyForSsl>false</UseSeparateProxyForSsl>
        <SslProxyName />
        <SslProxyServerPort>443</SslProxyServerPort>
        <ServerSupportsAllAvailableLanguages>false</ServerSupportsAllAvailableLanguages>
      </Table>
    </NewDataSet>

  • SQL Azure: More Intermittent Timeouts

    Hi guys,
    We have a set of 5 online auction systems running on Windows Azure & SQL Azure. Each system consists of a single web worker and one or more web roles. Each system is using ASP.NET MVC 3 and Entity Framework, Repository Pattern and StructureMap.
    The worker role is responsible for housekeeping and runs two groups of processes. One group is run every ten seconds, the other every second. Each process will likely run a database query or stored procedure. These are scheduled with Quartz.net
    The web role serves the public interface and back office. Among other basic crud functionality, both of these provide screens which, when open, will repeatedly call controller methods which will result in execution of stored procedure read-only queries.
    The frequency of repetition is about 2-3 seconds per client. A typical use case would be 5 back office windows open, and 25 end user windows open – all hitting the system repeatedly.
    For a long time we have been experiencing intermittent SQL timeout errors. Three of the most common ones are:
    System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
    System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
    System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    The only predictable scenario is during an auction where a specific controller -> sproc starts to timeout during the event (presumably due to load). All other times the errors appear to be completely random and come in singles, two’s, and three’s etc.
    even during periods of user inactivity. For example the system will go 18 hours without an error and then could be 5 – 10 errors from different housekeeping methods, or perhaps a user logged on and viewed their account.
    Other info:
    I have tried to run the affected queries/sprocs on SQL Azure using both local SSMS and Azure web-based query tool – all seem to execute quickly, 1 second max. Query plans not showing anything too suspicious although I am by no means a SQL query performance
    expert, or any other kind of expert for that matter
    J
    We have wrapped all affected areas in Azure SQL Transient Fault Handling Blocks – but as is discussed here
    http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted/thread/7a50985d-92c2-472f-9464-a6591efec4b3, they do not catch timeouts, and according to “Valery M” this is for good reason.
    We are not storing any session information in the database, although asp.net membership information is stored in the database.
    We use 1 “SQL Azure server instance” which hosts all 5 databases, two for staging and three for production. All 5 systems are generally active at the same time although it is unlikely that more than one will be in a state of live load use at any given time.
    All web roles, worker roles and the SQL Azure server reside in the same Azure Geographical Region.
    Any thoughts on where we should be looking? Would it help giving each system it's own SQL Azure server? ... Failing a solution by ourselves - is it possible to get Microsoft to open a support ticket and take a look under the hood at what’s going on in with
    our application – how does one go about this?
    Thanks in advance.
    Ilan

    Ditto.
    New website/database (has only been in production for a week or so). The model we have is pretty simple Azure website MVC EF 6.1.1 using a single database in same region as website. I have monitored for and have never found any throttled connections or deadlocks.
    What I have tried so far
    I bumped the timeout in the connection string to 60 seconds
    I changed the web site to Basic and configured the auto scale to max instance size and count
    That seemed to help - but then just recently during points of high volume usage (client requests, data in and out, CPU time) I started seeing this error. As I narrow the focus to look at metrics during the exact time of the error it doesn't reflect
    the exact peak. For example peak usage may be at 3:45, but the errors occur at 4:30 when the usage is less than 3:45 by a fair amount.
    To try to force recreate and see if it was caused by transaction data table locks I ran a query in a transaction block with a WAITFOR delay and then went to the web site and tried to access data that would be locked by that query. That test did generate
    an error - but not this specific "semaphore timeout period has expired" - so I don't think it is caused by table locks.
    I did notice that when the error happens - it generally happens to one user and then happens multiple times to that one user over the course of what can be a minute or so and in different queries (views). The last analysis showed that pattern for
    one user with 2 other users getting the error but just once (and in different views/queries).
    USER A - got about 9 of these errors in about 8 different views over the course of a little more than a minute (20:26 to 21:35)
    USER B - got 1 (in the same timespan)
    USER C - got 1 (in the same time span)
    Analysis of the error logs showed it isn't unique to any single view/query or scenario wrt queries. The only clue that makes it less of an intermittent situation is does correspond with usage. However, it doesn't have to be specifically peak usage at the
    exact moment - but in a window (within an hour), It makes me wonder if it is the load or just the fact that more usage just increases the odds (I will monitor this relation some more and note the exact metrics). 
    I am now bumping the timeout in the connection string to 90 seconds and I have changed the database DTU setting to 50

  • UPSA Errors, SQL Errors, Timeouts, Event ID 3, Event ID 3355

    Greetings,
    My User Profile Service has been running without issue for the last week or so; once I was able to provision it.
    Yesterday morning, we noticed it was in a "User Profile Sync is not currently provisioned" state.
    I went through the normal steps to start the service and after 15 minutes it stopped again.  The certifications are there, I saw the 2 Forefront services start, then I saw a number of errors being logged.  Then, of course, the sync service stopped.
    I am investigating the errors logged I see many Event ID 3; SQL timeout.  I am familiar with how to increase the Forefront timeout configuration but am wondering if the issue is something deeper.
    This is a small 3 server farm; 01 - Application Server (Central Administration), 02 - Dedicated Search Server, 03 - WFE.
    The UPSA and sync is configured to run on 03.  However, when I look at failed timer jobs, I see the "User Profile Service - User Profile Incremental Synchronization" job failing on both servers 01 and 03.  These jobs are running every
    minute and have thousands of failures.
    Why would this job be running on 01?  I have never scheduled it to run on the 01 server?
    I'm not sure if this is related, but I also see intermittent Event ID 3355 in the logs.  This event indicates the following:
    "Cannot connect to SQL Server. {Our SQL Server} not found. Additional error information from SQL Server is included below.
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    Table 'TimerJobHistory'. Scan count 1, logical reads 4, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0."

    Hi Bob,
    I recommend to check if the User Profile Synchronization Service has been started in both 01 server and 03 server.
    If yes, then User Profile Service - User Profile Incremental Synchronization timer job will run on both 01 server and 03 server.
    For this issue, I recommend to reset the user profile synchronization and reboot the 01 and 03 sever after the reset, add the Farm account on Sync DB as dbo owner on SQL server and then start the profile synchronization server to check the results.
    https://technet.microsoft.com/en-us/library/ff681014.aspx?f=255&MSPPError=-2147217396#resetSync
    http://blogs.technet.com/b/balasm/archive/2012/05/18/user-profile-application-unable-to-process-create-message.aspx
    As you said that the User Profile Service - User Profile Incremental Synchronization is failing in 01 and 03 server, what was the error message displayed when viewing the failing timer job in Job History?
    I also recommend to check ULS log to see if anything unexpected occurred.
    For event 3355, please refer to the link below for resolution:
    https://technet.microsoft.com/en-us/library/ee513066%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].
    Hi Victoria,
    I did resolve the issue with the UPSA Synchronization Service failing to run; it was a SQL Server error.  SQL Server was actually running out of memory.  My client added an additional 12GB memory and these specific errors went away.
    What I'm still questioning is; why is a synchronization timer job even trying to run on the 01 server.  The UPSA synchronization job was provisioned on the 03 server only and it is running now.  However, I still see the UPSA synchronization timer
    job failing on the 01 server.
    This is a production environment.  Tearing the UPSA down and rebuilding it is not an option.  I just need to get the UPSA synchronization timer job to stop running on the 01 server.
    Thank you!
    Bob

  • Max Degree of Parallelism, Timeouts and Deadlocks

    We have been trying to track down some timeout issues with our SQL Server. Our SQL Server runs a AccPac Account System, an Internal Intranet site and some SharePoint Content DBs.  
    We know that some of the queries are complex and take some time, though the timeouts seem to happen randomly and not always on the same pages/queries.   IIS and the SQL timeouts are set to 60 and 120 seconds. 
    Looking at some of the SQL Server settings, I noticed that MAXDOP was set to 1. Before doing extensive research on it and looking through the BOL, another DBA and I changed it to 0. 
    Server is a Hyper-V VM with:
    Processors:4
    NUMA nodes:2
    Sockets: 2
    Interesting thing happened. Our Timeouts seem to have disappeared. Going from several a day, we are now at 1 every few days. Though now the issue we are having is that our Deadlocks have gone through the roof. Going from one or two every few days, we are
    up to 8+ a day!
    We have been changing our Select statements to include WITH (NOLOCK) so they do not compete with the UPDATE statements they usually fall victim to. The Deadlocks and timeouts do not seem to be related to any of the SharePoint Content DBs. All of the deadlocks
    are with our Intranet Site and When it communicates with the AccPac DB, or the Internet Site on its own.
    Any Suggestions on where I should be focusing my energy on benchmarking and tuning the server?
    Thank you,
      Scott<-

    Thank you all for your replies.
    The server had 30GB of RAM and then we bumped it up to 40GB at the same time we changed the MAXDOP to 0.
    It was set to 1 because if it isn't MS won't support your SharePoint installation. This is from the Setup Guide for SharePoint on SQL Server, MAXDOP = 1 is a must in their book for official support. It always forces serial plans, because to be honest
    the sharepoint queries are extremely terrible.
    I understand this, though I would guess that the install of SharePoint didn’t actually do the MAXDOP =1 setting during the install? We basically have two Sharepoint sites on the server. One has about 10 users and the other has maybe 20 users. The Sites are
    not used very much either. So I didn't think there would be too much impact. 
    Though now the issue we are having is that our Deadlocks have gone through the roof.
    You probably didn't get this before (though they probably still happened) because the executions were forced serially and you dodged many-a-bullet because of this artificial speed bump. Deadlocks are application based, pure and simple.
    The accounting system we are running is something we typically do not alter the DB Contents directly, we are only peering into the database to present information to the user. We looked at READ_COMMITTED_SNAPSHOT, though since that is a DB setting on not
    on individual queries, we do not want to alter the Accounting DB as we could not know the potential ramifications of what that would cause.
    A Typical Deadlock will occur when the Accounting system is creating or modifying an order’s master record so no one else can modify it, though instead of row lock, it locks the table. This is something that is out of our control. When we do a select against
    the same table from the Intranet site, we get a deadlock unless we use the WITH (NOLOCK). The data that we get is not Super Critical. The only potential issue that might happen is that in an uncommitted Transaction form the Accounting system, it could be adding
    multiple rows to an order and when we SELECT the data, we might miss a line Item or two.
    We have been changing our Select statements to include WITH (NOLOCK) so they do not compete with the UPDATE statements they usually fall victim to.
    This really isn't going to get very far to be honest. Are you deadlocking on the same rows? It seems to be the order of operations taken by either the queries or the logic used in them. Without deadlock information there really is nothing to diagnose, but
    that definitely sounds like the same resource being used in multiple places when it probably doesn't need to be.
    This is one of the typical deadlocks that we get. Intranet Site is getting Totals for Orders while the accounting system is in the process of setting its internal record Lock on an Order. 
    <EVENT_INSTANCE>
    <EventType>DEADLOCK_GRAPH</EventType>
    <PostTime>2014-05-12T15:26:09.447</PostTime>
    <SPID>23</SPID>
    <TextData>
    <deadlock-list>
    <deadlock victim="process2f848b048">
    <process-list>
    <process id="process2f848b048" taskpriority="0" logused="0" waitresource="OBJECT: 12:644249400:0 " waittime="1295" ownerId="247639995" transactionname="SELECT" lasttranstarted="2014-05-12T15:26:08.150" XDES="0x69d1d3620" lockMode="IS" schedulerid="2" kpid="2856" status="suspended" spid="184" sbid="0" ecid="0" priority="0" trancount="0" lastbatchstarted="2014-05-12T15:26:08.150" lastbatchcompleted="2014-05-12T15:26:08.150" lastattention="2014-05-12T14:50:52.280" clientapp=".Net SqlClient Data Provider" hostname="VSVR-WWW-INT12" hostpid="15060" loginname="SFA" isolationlevel="read committed (2)" xactid="247639995" currentdb="7" lockTimeout="4294967295" clientoption1="673185824" clientoption2="128056">
    <executionStack>
    <frame procname="SFA.dbo.SAGE_SO_order_total_no_history_credit" line="20" stmtstart="1190" stmtend="5542" sqlhandle="0x030007004c642a7a7c17d000e9a100000100000000000000">
    SELECT SUM(t.price * t.qtyord) AS On_Order_Total
    FROM PRODATA01..somast m
    INNER JOIN PRODATA01..sotran t ON m.sono = t.sono
    INNER JOIN SFA..item i ON i.our_part_number COLLATE DATABASE_DEFAULT = t.item COLLATE DATABASE_DEFAULT
    INNER JOIN SFA..supplier s ON s.supplier_key = i.supplier_key
    INNER JOIN SFA..customer c ON c.abbreviation COLLATE DATABASE_DEFAULT = m.custno COLLATE DATABASE_DEFAULT
    INNER JOIN SFA..sales_order_ownership soo ON soo.so_id_col = m.id_col
    LEFT JOIN PRODATA01..potran p ON p.id_col = t.po_id_col
    LEFT JOIN SFA..alloc_inv a ON a.sono COLLATE DATABASE_DEFAULT = t.sono COLLATE DATABASE_DEFAULT AND a.tranlineno = t.tranlineno
    WHERE c.is_visible = 1 AND m.sostat NOT IN ('V','X') AND m.sotype IN ('C','','O')
    AND t.sostat NOT IN ('V','X') AND t.sotype IN ('C','','O')
    --AND t.rqdate BETWEEN @start_ordate AND @end_ordate
    AND UPPER(LEFT(t.item,4)) &lt;&gt; 'SHIP' AND t.item NOT LIKE '[_]%'
    AND ((SUBSTRING(m.ornum,2,1) = 'A' AND p.expdate &lt;= @end_ordate) OR (t.rqdate &lt;= @en </frame>
    </executionStack>
    <inputbuf>
    Proc [Database Id = 7 Object Id = 2049598540] </inputbuf>
    </process>
    <process id="process51df0c2c8" taskpriority="0" logused="28364" waitresource="OBJECT: 12:1369823992:0 " waittime="1032" ownerId="247639856" transactionname="user_transaction" lasttranstarted="2014-05-12T15:26:07.940" XDES="0xf8b5b620" lockMode="X" schedulerid="1" kpid="7640" status="suspended" spid="292" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-05-12T15:26:08.410" lastbatchcompleted="2014-05-12T15:26:08.410" clientapp="Sage Pro ERP version 7.5" hostname="VSVR-DESKTOP" hostpid="15892" loginname="AISSCH" isolationlevel="read uncommitted (1)" xactid="247639856" currentdb="12" lockTimeout="4294967295" clientoption1="536870944" clientoption2="128056">
    <executionStack>
    <frame procname="adhoc" line="1" stmtstart="22" sqlhandle="0x02000000304ac5350b86da8b9422b389413bf23015ac25d0">
    UPDATE PRODATA01..SOTRAN WITH (TABLOCK HOLDLOCK) SET lckuser = lckuser WHERE id_col = @P1 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    (@P1 float)UPDATE PRODATA01..SOTRAN WITH (TABLOCK HOLDLOCK) SET lckuser = lckuser WHERE id_col = @P1 </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <objectlock lockPartition="0" objid="644249400" subresource="FULL" dbid="12" objectname="PRODATA01.dbo.somast" id="lock18b5e3900" mode="X" associatedObjectId="644249400">
    <owner-list>
    <owner id="process51df0c2c8" mode="X" />
    </owner-list>
    <waiter-list>
    <waiter id="process2f848b048" mode="IS" requestType="wait" />
    </waiter-list>
    </objectlock>
    <objectlock lockPartition="0" objid="1369823992" subresource="FULL" dbid="12" objectname="PRODATA01.dbo.sotran" id="lock2ce1c4680" mode="SIX" associatedObjectId="1369823992">
    <owner-list>
    <owner id="process2f848b048" mode="IS" />
    </owner-list>
    <waiter-list>
    <waiter id="process51df0c2c8" mode="X" requestType="convert" />
    </waiter-list>
    </objectlock>
    </resource-list>
    </deadlock>
    </deadlock-list>
    </TextData>
    <TransactionID />
    <LoginName>sa</LoginName>
    <StartTime>2014-05-12T15:26:09.447</StartTime>
    <ServerName>VSVR-SQL</ServerName>
    <LoginSid>AQ==</LoginSid>
    <EventSequence>2335848</EventSequence>
    <IsSystem>1</IsSystem>
    <SessionLoginName />
    </EVENT_INSTANCE>
    I'd (in parallel) look at why parallel plans are being chosen. Not that parallel plans are a bad thing, but is the cost of the execution so high that parallelism is chosen all of the time?
    How can I determine the cost of different statements? The Current Cost threshold value is 5.
    The last place I would set my effort is on the Dev team. Internal Intranet queries should not take 60 to 120 seconds. That's just asking for issues that you already have. If some larger functionality with that is needed, do it on the back end as
    aggregation over a certain time period and use that new static data. Recompute as needed. This is especially true if your deadlocks are happening on these resources (chances are, it is).
    We are working with the long queries.  Trying to Break them up.  We thought about backend processing of the data so its available for the user when they need it, but some of the pages that take time are not accessed that often, so if we gathered
    the data every 10 minutes in the background it would be called way many more times in a day than would be called on demand. 
    Thank you all again!

  • BizTalk 2009 SQL WCF Adapter Losing Messages? AKA TypedPolling Not Working

    Can anybody help me with this amazingly frustrating issue? Firstly, the basiscs. I'm using BizTalk 2009 Standard Edition hosted on Windows Server 2008 
    Standard (64 bit). The BizTalk databases are stored on a seperate server, running SQL Server 2008 on Windows Server 2008 Enterprise (64 bit).
    I have configured a WCF SQL adapter to poll (using TypedPolling) a SQL 2008 database which in turn activates a relatively simple orchestration. The problem
    is that the orchestration does not get executed at the specified polling intervals. I have several other similar polling adapters in my application that work
    as expected. Generally it will run correctly once or twice after enabling/disabling the receive location or restarting the host instance. But after that it
    is completely erratic. If I have it set to run every hour (3600 secs), it might complete succssfully once or twice a day at seemingly random times. On other
    days it might run seven or eight times during a day.
    I've spent heaps of time reading blogs and changing various settings on my receive location and have really run out of ideas. I've profiled SQL Server and it
    seems that the WCF SQL adapter does hit the database at each polling period as specified, using both the polledDataAvailableStatement and the
    pollingStatement. Data is always returned by these queries (a small amount - around 30 records), but they just don't seem to get to the message box. No
    errors are ever reported in the Event Log.
    I use a stored procedure for determining if data is available and for returning data. They are both effectively the same statement, one returns a count
    whilst the other returns the data. The queries are using cross server joins as you can see below. Although I do no updates, it seems that I have to run the
    receive location with AmbientTransactions turned on. Turning them off just results in a SQL Timeout exception. I don't understand why this is and would be
    grateful if someone could explain.
    Data Available (contained in a stored proc):
    SELECT  COUNT(*)
        FROM    [LMNZLSQL002\AX].[LMNZ_AX_LIVE].[dbo].[CRM_CUSTTRANS_ITG] WITH (NOLOCK)
        WHERE    (TRANSTYPE = 8 OR TRANSTYPE = 13)  
        AND SETTLEAMOUNTCUR > 0
        AND CUSTFEEINVOICETRANSACTION30005 IS NOT NULL
        AND CUSTFEEINVOICETRANSACTION30005 <> ''      
        AND CUSTFEEINVOICETRANSACTION30005 IN
            SELECT F.FeeId
            FROM [dbo].[Fees] F WITH (NOLOCK)      
            WHERE F.FeeStatus = 3        --Unpaid
            AND F.Payer IS NOT NULL
    Select Data (contained in a stored proc):
    SELECT  ACCOUNTNUM, CUSTFEEINVOICETRANSACTION30005, AMOUNTCUR, SETTLEAMOUNTCUR
        FROM    [LMNZLSQL002\AX].[LMNZ_AX_LIVE].[dbo].[CRM_CUSTTRANS_ITG] WITH (NOLOCK)
        WHERE    (TRANSTYPE = 8 OR TRANSTYPE = 13)  
        AND SETTLEAMOUNTCUR > 0
        AND CUSTFEEINVOICETRANSACTION30005 IS NOT NULL
        AND CUSTFEEINVOICETRANSACTION30005 <> ''      
        AND CUSTFEEINVOICETRANSACTION30005 IN
            SELECT F.FeeId
            FROM [dbo].[Fees] F WITH (NOLOCK)
            WHERE F.FeeStatus = 3        --Unpaid
            AND F.Payer IS NOT NULL
        ORDER BY ACCOUNTNUM,CUSTFEEINVOICETRANSACTION30005
    At one time I suspected that the issue may be related to database locking. So, as you can see, I've added NOLOCK locking hints to rule this out. I'm also
    using a Service Behaviour (SqlAdapterInboundTransactionBehaviour) declaring a transaction level of ReadUncommitted. Obviousy I'd like to move away from the
    possibility of dirty reads. Also, I've checked the SQL activity monitors when I expect the process to run and can see no locks holding it up. Also, I can
    freely execute the stored procedures from SQL Management Studio at these times.
    I'm not too experienced at monitoring BizTalk, but I wondered if some kind of throttling was occuring. So I've moved the receive location (and the
    orchestration that doesn't always get initiated) to its own host instance and have done some monitoring via the performance counters in perfmon. I haven't
    spotted any thottling going on, but maybe I wasn't looking at the correct counters (mainly used the Message Agent items).
    Here's a summary of the receive location properties:
    Transport: WCF-Custom
    Receive Handler: AXPaymentsToFeesEngine (this host instance only hosts this receive location and the orchestration it should be activating).
    Receive pipeline: XmlReceive
    General tab:
    EndpointAddress: mssql://lmnzlsql003/CRM/FeesEngine?InboundId=PaidInAXUnpaidInFeesEngine
    Endpoint Identity - all default values
    Binding Tab:
    Binding Type: sqlBinding
    allowIdentityInsert: False
    batchSize: 20
    chunkSize: 4194304  
    enableBizTalkCompatibilityMode: True
    enablePerformanceCounters: False
    encrypt: False
    inboundOperationType: TypedPolling
    maxConnectionPoolSize: 100
    notificationStatement: Not specified
    notifyListenersOnStart: True
    polledDataAvailableStatement: EXEC [dbo].[bts_PollForAXFeePaymentsNotPresentInFeesEngine_IsDataAvailable]
    polledIntervalInSeconds: 3600
    pollingStatement: EXEC [dbo].[bts_GetFeesMarkedUnpaidThatHaveBeenPaidInAX]
    pollWhileDataFound: False
    UseAmbientTransaction: True
    useDatabaseNameInXsdNamespace: False
    workstationId: Not specified
    xmlStoredProcedureRootNodeName: Not specified
    xmlStoredProcedureRootNodeNamespace: Not specified
    All timeouts: 5 mins.
    Behaviour Tab
    ServiceBehaviour - sqlAdapterInboundTransactionBehaviour, ReadUncommitted, timeout mins
    Other Tab:
    Credentials: None
    Preserve message order: False
    Mesages Tab:
    Inbound BizTalk message body: Body
    Error handling: All disabled
    Thanks in advance,
    Mark

    Thanks everyone for your input on this. None of the suggestions actually seemed to solve our specific issue, and we ended up raising a support call with Microsoft. They got us to use some tracing tools that are not publically available and it turns out that
    there was a problem with the underlying WCF commnications channel, which was not visible via the usual windows event logs. They suggested a solution that, although very counter-intuitive, seems to have resolved our problem; set the ReceiveTimeout property
    of the receive adapter to <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145
    0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:"Calisto MT"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face
    {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-alt:"Arial Rounded MT Bold"; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"\@SimSun";
    panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes;
    mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:SimSun; mso-fareast-language:ZH-CN;} .MsoChpDefault {mso-style-type:export-only;
    mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.WordSection1
    {page:WordSection1;} -->
    24.20:31:23.6470000 and restart the service host.
    Here's the underlying exception:
    <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"Cambria
    Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:"Calisto MT"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15
    5 2 2 2 4 3 2 4; mso-font-alt:"Arial Rounded MT Bold"; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6
    0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:"";
    margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:SimSun; mso-fareast-language:ZH-CN;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes;
    font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.WordSection1 {page:WordSection1;}
    -->
    [0]1E2C.21C4::07/07/2010-4:52:25.804 [CSharp]:[Wcf] BtsErrorHandler.HandleError called with Exception: System.ServiceModel.CommunicationObjectAbortedException:
    The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.
       at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrImmutable()
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open()
       at System.ServiceModel.Dispatcher.ChannelHandler.InitializeServiceChannel(ServiceChannel channel)
       at System.ServiceModel.Dispatcher.ChannelHandler.GetSessionChannel(Message message, EndpointDispatcher& endpoint, Boolean& addressMatched)
       at System.ServiceModel.Dispatcher.ChannelHandler.EnsureChannelAndEndpoint(RequestContext request)
       at System.ServiceModel.Dispatcher.ChannelHandler.TryRetrievingInstanceContext(RequestContext request).

  • Error deploying data tier application to SQL Azure at "Registering metadata for database" step ... should I care?

    I'd like to move an on-premesis SQL Server Database to SQL Azure. I've used SQL Mgmt Studio to Extract Data Tier Application and save my db as a dacpac file. Now I'm connected to my Azure server and I've chosen to Deploy Data Tier Application. I select my
    dacpac and the deploy starts but then on the last step "Registering metadata for database" it times out. I've tried it a couple of times and each time the deployed database is there and appears to be fully populated, but I'm not sure if I can ignore
    that error and continue. What is supposed to happen in that step, and should I expect it to fail when deploying to SQL Azure? 
    I'm following the steps here http://msdn.microsoft.com/en-us/library/hh694043.aspx in the Using Migration Tools > Data-tier Application DAC Package section, except that to deploy there's no SQL Mgmt Studio > Object Explorer [server]
    > Management >"Data Tier Applications" node, so I'm deploying by right-clicking on the server name and choosing "Deploy Data-tier Application". 
    My (total) guess here is that it's deployed the database fine and it's doing whatever magic happens when you register a data tier application, except that it's not working for SQL Azure. 
    I'm running against a server created for the new Azure service tiers, not against a Web/Business edition server. 
    The full details of error I get are below. 
    thanks, 
    Rory
    TITLE: Microsoft SQL Server Management Studio
    Could not deploy package.
    Warning SQL0: A project which specifies SQL Server 2008 as the target platform may experience compatibility issues with SQL Azure.
     (Microsoft.SqlServer.Dac)
    ADDITIONAL INFORMATION:
    Unable to register data-tier application: Unable to reconnect to database: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft.Data.Tools.Schema.Sql)
    Unable to reconnect to database: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft.Data.Tools.Schema.Sql)
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.9213&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476
    The wait operation timed out
    BUTTONS:
    OK

    Hello,
    The registration process creates a DAC definition that defines the objects in the database, and register the DAC definition in the master system database in Windows Azure SQL Database.
    Based on the error message, there is timeout error when connect to SQL Database. Did you deploy a large database? When move large data to Azure SQL Database, it is recommended to use SQL Server Integration Services (SSIS) and BCP utility.
    Or you can try to create a client application with the Data-Tier Application Framework (DACFx) client tool to import database and handle connection loss it by re-establish the connection.
    Reference: http://sqldacexamples.codeplex.com/
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Initermittent Connection Timeout at Post-Login when connect to AlwaysOn Availability Group listener

    Hi,
    I'm using SQL 2014 AlwaysOn Availability Group and my ASP .Net application is connected to the database thru the availability group listener (tcp:[myHAGroup],14330).
    Things work most of the time, but recently I started to see the following Connection Timeout exception in Event Log. It looks like under heavy traffic the application can't connect to the availability group listener.
    Timestamp: 8/17/2014 10:07:28 AM
    Message: System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=2; handshake=0; [Login] initialization=0; authentication=0; [Post-Login] complete=15008; ---> System.ComponentModel.Win32Exception: The wait operation timed out
    --- End of inner exception stack trace ---
    I've checked SQL Profiler and don't see any memory or CPU peak at that time. Looks like somethings happened during the Post-Login stage, but I couldn't figure out what or why....
    I'm using 2 SQL servers (1 primary, 1 secondary): SQL 2014 ENT, 8GB RAM, 8 core 2.67 Xeon X5650.
    Application: ASP .Net, framework 4.0.
    All servers are VMWare virtualization servers, running on 1 virtual switch, so internal traffic should not be a problem.
    Comments/ideas are appreciated.
    Eric.

    Hi Eric Nguyen,
    According to your description and error message, we need to verify if there are some queries/transaction lock your database via SQL trace. If yes,
     you have to find out which queries are blocking and rewrite them/run them at other time to avoid blocking other processes.
    In addition, you can use performance monitor to track connection pool connections. If you set default connection limit and timeout limit with a small number, the error of “wait operation timed out” will occur. Meanwhile, you also need to monitor disk usage
    on SQL Server , and set the auto increment size of your transaction log and database with a fixed size instead of a percentage of the current files due to avoid transaction timeout. For more information, see:
    http://stackoverflow.com/questions/7743725/how-to-troubleshoot-intermittent-sql-timeout-errors
    There is an similar issue about connection failed from webservers to SQL Server AlwaysOn Listener, you can review it.
    http://stackoverflow.com/questions/23416492/connection-timeouts-when-using-multisubnetfailover-true
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Unable to delete User object in FIM Portal - Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition"

    Hi,
    ***Problem
    I encounter a problem with FIM (version 4.1.3441.0 and 4.1.3496.0) when I try to delete a User object (and only a User object) whatever if it is
    manually/Expiration Workflow/Powershell.
    Deleting a User object used to be perfectly functional and, without any product version modification, stopped working. I haven't neither deleted/modified or add a
    "Grant" MPR or any of the corresponding Sets since last time I saw it working.
    Displayed error is "Request could not be dispatched" in FIM Portal and is referencing a stored procedure in Event Viewer.
    ***Error details
    When I try to delete a User object, here is the output :
    Portal
    "Processing error" on submit
    with the following details 
    Request status is stuck at "Validating" until next restart of FIM Service (after what it becomes “Canceled”)
    Request’s “Applied Policy” tab does not contain any MPR where, at least, a “Grant” MPR is expected
    As SQL Timeout is relatively high and error happens quickly, I don’t think there is a Timeout problem under that.
    Logs
    « Application »
    The Portal cannot connect to the middle tier using the web service interface.  This failure prevents all portal scenarios from functioning correctly.
    The cause may be due to a missing or invalid server url, a downed server, or an invalid server firewall configuration.
    Ensure the portal configuration is present and points to the resource management service.
     « Forefront Identity Manager »
    Reraised Error 50000, Level 16, State 1, Procedure ReRaiseException, Line 37, Message: Reraised Error 1088, Level 16, State 12, Procedure CalculateRequestSetTransitionsAssembleStatements,
    Line 332, Message: Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition" because it does not exist or you do not have permissions.
    Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
    Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: Other ---> System.Data.SqlClient.SqlException: Reraised Error 50000, Level 16, State
    1, Procedure ReRaiseException, Line 37, Message: Reraised Error 1088, Level 16, State 12, Procedure CalculateRequestSetTransitionsAssembleStatements, Line 332, Message: Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition"
    because it does not exist or you do not have permissions.
    Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult
    result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.ResourceManagement.Data.DataAccess.UpdateRequest(RequestType request, IEnumerable`1 updates)
       --- End of inner exception stack trace ---
    Requestor: urn:uuid:7fb2b853-24f0-4498-9534-4e10589723c4
    Correlation Identifier: e7209633-46d0-4f4b-a59e-807649ef71ea
    Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: Other ---> System.InvalidCastException: Specified cast is not valid.
       at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType
    operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean isChildRequest, Guid cause, Boolean doEvaluation, Nullable`1 serviceId, Nullable`1 servicePartitionId, UniqueId messageIdentifier, UniqueIdentifier requestContextIdentifier,
    Boolean maintenanceMode)
       at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType
    operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean isChildRequest, Guid cause, Boolean doEvaluation, Nullable`1 serviceId, Nullable`1 servicePartitionId, UniqueId messageIdentifier)
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.Delete(Message request)
       --- End of inner exception stack trace ---
    For information, a maintenance plan rebuild/reorganize indexes daily and this problem has occurred on servers with different performances.
    Is any of you has already encounter this problem ?
    Any help would be greatly appreciated,
    Thanks in advance for your help,
    Matthew

    While there are several SQL Agent jobs (FIM Temporal Events, Maintain Sets, and Maintain Groups among others)created by the FIM install only one of those is enabled and scheduled and it calls all of the same stored procedures that the other
    jobs do. Step 2 is Maintain sets and Step 3 is maintain groups. So the Maintain sets and groups jobs never need to get enabled and scheduled, but if you want them to be maintained more frequently then you can.
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Timesten running slower than Oracle RDBMS

    Hi,
    I've installed timesten, & just wanted to compare the performance of following pl/sql block on timesten with same block on Oracle.
    declare
    temp_date date;
    temp_date1 date;
    my_id number;
    my_data varchar2(200);
    cursor c1 is select MASTER_ID, MDATA
    from AKS_TAB_MASTER;
    cursor c2(p_id number) is select detail_ID, dDATA from
    AKS_TAB_DETAIL
    where master_id=p_id;
    begin
    for t in c1 loop
    open c2(t.master_id);
    fetch c2 into my_id,my_data;
    insert into aks_temp values(t.master_id,my_id,t.MDATA,my_data);
    close c2;
    end loop;
    end;
    I've created a cache group in Timesten to cache the tables AKS_TAB_MASTER & AKS_TAB_DETAIL
    I've created table AKS_TAB_DETAIL in Oracle and timesten separately to avoid pass-through
    Some how, TimesTen is taking 4 times more time than Oracle.
    I've gone through link TimesTen Database Performance Tuning and my database parameters as as follows:
    Permanent Data Size 640
    Temporary DAta Size 300
    Replicate Parallelism Buffer MB 480
    Log File Size(MB) NULL
    Log Buffer Size (MB) 320
    Cach AWT Method 1-PLSQL
    CAche AWT Parallelism NULL
    PL/SQL Connection Memory Limit (MB) 320
    PL/SQL Optimisation Level 2
    Pl/SQL Memory Size(MB) 240
    PL/SQL Timeout(seconds) 600
    Still I'm getting poor performance from TimesTen.
    Any Idea, what might be wrong on my instance.
    Please suggest.
    Thanks
    Amit

    Hello Chris, Please find the details here:
    1.   Output of the ttVersion command (so we know the TimesTen version and platform).
    C:\TimesTen\tt1122_64\bin>ttVersion
    TimesTen Release 11.2.2.5.0 (64 bit NT) (tt1122_64:53396) 2013-05-23T16:26:12Z
      Instance admin: shuklaam
      Instance home directory: C:\TimesTen\TT1122~1\
      Group owner: ES\Domain Users
      Daemon home directory: C:\TimesTen\TT1122~1\srv\info
      PL/SQL enabled.
    2.    The full set of DSN attributes for this DSN from sys.odbc.ini
    Please see the screen shots from page 1 to 5 in the doc available at
    https://docs.google.com/file/d/0BxQyEfoOqCkDX05JNVdqOWItSEE/edit?usp=sharing
    Please let me know if you are looking for something else.
    3.    The full definitions of the cache group(s) including indexes.:
    I've created Two CACHE GROUPS as follows:
    a. AKS_DT_CG:
    -- Database is in Oracle type mode
    create readonly cache group MTAX.AKS_DT_CG
        autorefresh
            mode incremental
            interval 300000 milliseconds
            /* state on */
    from
        MTAX.AKS_TAB_DETAIL (
                DETAIL_ID NUMBER(38) NOT NULL,
                MASTER_ID NUMBER(38),
                DDATA     VARCHAR2(135 BYTE) NOT INLINE,
            primary key (DETAIL_ID));
    b. AKS_MT_CG:
    -- Database is in Oracle type mode
    create readonly cache group MTAX.AKS_MT_CG
        autorefresh
            mode incremental
            interval 300000 milliseconds
            /* state on */
    from
        MTAX.AKS_TAB_MASTER (
                MASTER_ID NUMBER(38) NOT NULL,
                MDATA     VARCHAR2(128 BYTE) INLINE,
                STATUS    VARCHAR2(7 BYTE) INLINE,
            primary key (MASTER_ID));
    To View trhe indexes, please see the screen shot on page 6 in the doc available at
    https://docs.google.com/file/d/0BxQyEfoOqCkDX05JNVdqOWItSEE/edit?usp=sharing
    4.    The definition (in TimesTen) of the table aks_temp including indexes.
    -- Database is in Oracle type mode
    create table MTAX.AKS_TEMP (
            MID   NUMBER,
            DID   NUMBER,
            MDATA VARCHAR2(200 BYTE) NOT INLINE,
            DDATA VARCHAR2(200 BYTE) NOT INLINE);
    There is not index on this table.
    5.    The row counts (in TimesTen) for the tables AKS_TAB_MASTER & AKS_TAB_DETAIL.
    Command> select count(*) from AKS_TAB_MASTER;
    < 81183 >
    1 row found.
    Command> select count(*) from AKS_TAB_DETAIL;
    < 175176 >
    1 row found.
    Command>
    Please let me know if you need any othe info to debug it.
    Many Thanks
    Amit

  • Anticipating content lookup requests

    We're in the process of trying to roll out OSD to production. Too many content location requests can peg the MP.
    We're aware of CPU spikes related to large numbers of content lookup requests associated primarily with software update deployments. Of primary concern is when we make updates available to 20,000 computers.
    What we see is that even when we deploy the content to the collection off hours (say 1am) , the desktops will download content off-hours. Then, beginning around 8am we see a steady progression in the number of clients checking in. What we are trying to work
    towards is being able to predict how many content lookups we anticipate at any given points.
    We know that at any minute where we attempt to process more than 3,000 content lookups in the same minute, the SQL processor gets pegged, and the MP log states a timeout - which could potentially impact OSD.
    Has anyone else attempted to track when clients enter the environment, how many content location requests are placed per minute/hour etc?  <cough cough> GARTH JONES? </cough cough> We can attempt to archive the SQL table with the policy
    timestamp, and check for differences, but this is not necessarily a reflection of whether you needed content or not. I am not aware of any way to track content location requests short of trying to logscrape mp_Location.log..
    If this was possible, the next step would be to try and say 'collections X has 12,000 machines, Y has 3000 machines, and Z has 200 machines, so we expect 15,200 machines to request content on Monday morning. Based on historical averages, we expect x . minute,
    with the threshold of 3,000/minute being exceeded between 8:54am and 9:09am. '
    Thoughts?
    Will

    None if there are no active deployments for all clients ;-)
    You cannot really predict that as there are too many variable parameters. Plus it's not only content location requests that put load on the MP / SQL.
    Torsten Meringer | http://www.mssccmfaq.de
    Funny guy.
    We are being asked to be able to predict when anticipated load will exceed the SQL ability to process all requests without any SQL timeouts, so we will patch something together - was just hoping someone else had already started trying to do something similar.
    Will

Maybe you are looking for

  • How to switch off the induction furnace with LabView efter an LCF test is finished?

    Hi, I am working with low cycle fatigue testing at Instron 8801 and are using Instron Fast Track2 LabView LCF software for controlling tests, read the files, calculate modulus, etc. and produce figures. For heating of the specimens during LCF-tests I

  • Why does labview generate Dr. Watson error "C0000005 access violation"

    I am running Labview 5.1.1 in Windows 2000 Professional on a machine with the following configuration *----> System Information <----* Computer Name: ANDANTE User Name: Administrator Number of Processors: 2 Processor Type: x86 Family 6 Model 8 Steppi

  • Cancel and Exit button not working

    Dear Experts, <u>Cancel and Exit button not working</u> I am calling a screen from inside a report program using SET SCREEN 9000. 2 of the date fields(start date end date) on this screen are Mandatory. I am not able to Come out of this screen 9000 us

  • Please help me in this tough problem in Java...im just new in Java program

    my teacher give this as a problem. so tough. we are just starting and we are now in control structures. please help me to finish this problem. And my problem is... Write an astrology program. The user types in his or her birthday(month,day,year), and

  • Drag and Drop not working on desktop

    I can hilite icons on the desktop but they will not drag. I am also having power supply problems with the mac shutting down intermittently which i think is covered under an extension repair program.