I am an Administrator for a company, we have multiple servers on premises,
1 is a Database Server (DATABASESERVER) running Windows Server 2008 R2 and SQL 2008 and IIS 7
1 is a Application Server (APPSERVER) running Windows Server 2008 R2
We have a company who owns and manages our CRM System installed across all 2 of these servers, DATABASESERVER contains the Database, the HTTPSERVER contains the Internal Web CRM for the staff to use, and the APPSERVER manages the print/sms/emails/timed executions etc through the 3rd party company's applications.
The 3rd Party Company's applications keep crashing on the APPSERVER and they are blaming this on the loss of connection to the DATABASESERVER which is what an error their system is producing is saying in the logs, however the staff do not have any issues with the Website which uses the same Database.
The error message they have provided for me to fix this is at the bottom, and they are fixating on this bit of the error.
[[DBNETLIB][ConnectionWrite (WrapperWrite()).]General network error. Check your network documentation.])
but it is my understanding that with the above section of the error there should be a SQLSTATE code?
Any help on this error would be greatly appreciated.
The VB Application identified by the event source logged this Application zXTmdExec: Thread ID: 12408 ,Logged: Timed execution: zX.clsDSHPrimary.iDSHandler_sqlRS: Unable to execute query (SELECT TOP 1 [zxPrcssMntr].[stts] AS [zxPrcssMntr_stts], [zxPrcssMntr].[autoPse] AS [zxPrcssMntr_autoPse], [zxPrcssMntr].[autoRsme] AS [zxPrcssMntr_autoRsme], [zxPrcssMntr].[lstStrtd] AS [zxPrcssMntr_lstStrtd], [zxPrcssMntr].[prcssCntrlId] AS [zxPrcssMntr_prcssCntrlId] FROM [zxPrcssMntr] WHERE (1 = 1) AND ([zxPrcssMntr].[id] = 'timedExecGeneral') [[DBNETLIB][ConnectionWrite (WrapperWrite()).]General network error. Check your network documentation.])
zX.clsDSHPrimary.iDSHandler_loadBO: Unable to execute load query (SELECT [zxPrcssMntr].[stts] AS [zxPrcssMntr_stts], [zxPrcssMntr].[autoPse] AS [zxPrcssMntr_autoPse], [zxPrcssMntr].[autoRsme] AS [zxPrcssMntr_autoRsme], [zxPrcssMntr].[lstStrtd] AS [zxPrcssMntr_lstStrtd], [zxPrcssMntr].[prcssCntrlId] AS [zxPrcssMntr_prcssCntrlId] FROM [zxPrcssMntr] WHERE (1 = 1) AND ([zxPrcssMntr].[id] = 'timedExecGeneral'))
zx.clsBOS.loadBO: Error during loadBO for data source (primary)
zxMisc.clsPrcssMntr.nextCycle: Unable to reload when cycling in prcssMntr
zX.clsDSHPrimary.iDSHandler_rollbackTx: Untrapped error (Connection failure)
zXTmdExec.modMain.goGoGo: Severe process monitor error
zX.clsDSHPrimary.iDSHandler_sqlExecute: Unable to execute query (DELETE FROM [zxSssn] WHERE (1 = 1) AND ([zxSssn].[id] = 79495)[[DBNETLIB][ConnectionWrite (WrapperWrite()).]General network error. Check your network documentation.])
zX.clsDSHPrimary.iDSHandler_deleteBO: Unable to delete BO
zx.clsBOS.deleteBO: Delete by data-source handler failed (primary)
zx.clsSession.disConnect: Unable to delete session
Related
this week, sql server (2012) service stopped unexpectedly every day, and i have to start it manually
when i open sql log file of the victim machine, i found this content :
note: this machine is a client of merge replication . when i stop the merge agent the "attack" stoped, so the problem is from replication process!!!
why the main server attack the client every second , for hours and try to connect with sa account whith wrong password and other unknown acounts???
the main server (source for replication) have 4 clients, all the clients have the same log content. but only two clients stop unexpectedly the two others run without problem.
i'm not sure that the replication is the cause of the crash, there is not explicit message for this crash.
can you help me please???
I have run into this issue and I am stuck with it for hours. I have 2 databases one which is publisher and distributor and second which is subscriber I am going to use them as snapshot replication. Installation went without issues but when I look in Replication monitor publication status is ok but a subscription is "uninitialized subscription".
I checked sqlagent errorlog and I get same error
Error: 15404, Could not obtain information about Windows NT group/user'MicrosoftAccount\MyEmail', error code 0x54b.
[SQLSTATE 42000] (ConnIsLoginSysAdmin).
This really boggles me since I am being logged to the database through windows authentication but I am being seen as ADMINRG-XXXXXX\YYYYY.
In my security properties on "Specify the domain or machine account under which Distribution/Snapshot Agent will run" I have set it on Run under SQL Server Agent service account, but when I tried using windows account either ADMINRG-XXXXX\YYYYY or MicrosoftAccount\MyEmail It puked out error 3930 which I also couldn't manage to fix.
I also looked in generated scripts when I was installing publication and subscriptions, they both have parameters #job_login and #job_password set to null could this be source of issue?
If anyone is curious how I fixed it.I looked up in generated scripts at #job_login and #job_password I used my Microsoft account that is connected to my Windows account.Snapshot agent is starting up now, everything works fine. Homever I still get same error in logs tho it doesn't affect anything.
I have a BizTalk server and a SQL server which BizTalk sends messages via WCF-SQL to. The BizTalk server has been calling to this server for over a year with no problems. I came in this morning any suddenly it can't (it was working on Friday).
The full error I'm getting when calling the WCF-SQL endpoint is:
A message sent to adapter "WCF-SQL" on send port "MyPort" with URI "mssql://mySQLServer" is suspended.
Error details: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException:
The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems.
Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02A)
at System.Transactions.Oletx.ITransactionShim.Export(UInt32 whereaboutsSize, Byte[] whereabouts, Int32& cookieIndex, UInt32& cookieSize, CoTaskMemHandle& cookieBuffer)
at System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts)
I've followed instructions from the following thread:
MSDTC on server 'server is unavailable
I've run msdtc -uninstall then msdtc -install and restarted the service several times.
I've rebooted the server several times.
I can connect to the database using Sql Server Management Studio
DTCPing when trying to connect from the SQL server to the Biztalk server results in (when DTCPing is running on the BizTalk):
Problem:fail to invoke remote RPC method
Error(0x6BA) at dtcping.cpp #303
-->RPC pinging exception
-->1722(The RPC server is unavailable.)
RPC test failed
when going from Biztalk to SQL I get this (even thought DTCPing is running on the other end)
Please refer to following log file for details:
C:\Temp\DTCPing\myserv.log
Invoking RPC method on dbaditest
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
Please start PING from dbaditest to complete the test
neither server is running a firewall at all
I'm all out of things to try.
Edit: I can confirm that other servers/computers can connect to the SQL server. So I have to assume that it's the BizTalk server that is the problem.
Edit 2: I tried connecting from BizTalk Server to another SQL server on the network and got the same error. I'm moments away from throwing my hands up and rebuilding my dev environment -- ugg :(
Edit 3: I can telnet to port 135 from BizTalk to SQL Server, so there's nothing blocking it.
Edit 4: DTCTester results in:
tablename= #dtc24449
Creating Temp Table for Testing: #dtc24449
Warning: No Columns in Result Set From Executing: 'create table #dtc24449 (ival int)'
Initializing DTC
Beginning DTC Transaction
Enlisting Connection in Transaction
Error:
SQLSTATE=25S12,Native error=-2147168242,msg='[Microsoft][ODBC SQL Server Driver]Distributed transaction error'
Error:
SQLSTATE=24000,Native error=0,msg=[Microsoft][ODBC SQL Server Driver]Invalid cursor state
Typical Errors in DTC Output When
a. Firewall Has Ports Closed
-OR-
b. Bad WINS/DNS entries
-OR-
c. Misconfigured network
-OR-
d. Misconfigured SQL Server machine that has multiple netcards.
Aborting DTC Transaction
Releasing DTC Interface Pointers
Successfully Released pTransaction Pointer.
You've already taken some steps here, but carefully go through the MSDN Article on Troubleshooting MSDTC.
I'd be concerned that someone imaged another server off of yours, but uninstalling and reinstalling MSDTC should have fixed that. It might be worth checking on these registry values as well (from the above link):
Windows enhances security by requiring authenticated calls to the RPC interface. This functionality is configurable through the EnableAuthEpResolution and RestrictRemoteClients registry keys. To ensure that remote computers are able to access the RPC interface, follow these steps:
Click Start, click Run, type regedit.exe, and then click OK to start Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT
Under the RPC key, create the following DWORD entries with the indicated values. If the RPC key does not exist then it must be created.
DWORD entry Default value Recommended value
EnableAuthEpResolution 0 (disabled) 1
RestrictRemoteClients 1 (enabled) 0
Close Registry Editor.
Restart the MSDTC Service.
Is your BizTalk/SQL computer name unique? (no conflicts with other machine)
Can you DTC connect to another SQL server from your BizTalk server? I would suggest you to use DTCTester
testing the DTC connection instead of DTCPing.
Not sure if this will help but thought I'd mention it.
From BOTH servers:
Start -> Admin Tools -> Component Services
Expand Component Services -> Computers -> My Computer -> Distributed Transaction Coordinator and right-click Local DTC. Go to Security tab and check over the settings there.
Enable Network DTC Access
Allow Remote Clients
Allow Inbound/Outbound as required
Select correct authentication
Enable XA Transactions as required
MSDTC Service should auto restart. These settings could perhaps have changed since Friday? I have had this happen before for reasons unknown
Wow, I finally figured it out. As most people said, it MUST be some kind of network issue (and I didn't disagree). The kicker was that my PC was allowed DTC from it to SQL, but the VM running on my PC didn't. What it ended up being was that we were pushed to install Symantec Endpoint Protection just last week (right before I left for the weekend).
I uninstalled it and all it working now.
I have 2 nodes in a SQL Server 2008 R2 Cluster that I inherited. Looking at the 'Failover Cluster Manager', under 'Services and applications', I see 13 SQL Server instances. It, and all of its resources, are owned by one node. My thought is that they should be evenly distributed between the 2 servers.
When I try to move one of these instances to the other node, everything comes back online with the exception of 'SQL Server (Name)' under Other Resources. It says 'Failed'. When I try to manually bring it online, I get an error message
The operation has failed. An error occurred while attempting to bring the resource 'SQL Server (NAME)' online.
Under see details, it says
Error Code: 0X8007139a The cluster resource could not be brought online by the resource monitor
In system event viewer on the target server, I see the events 1069 and 1205, which both basically say "cluster service or application failed". Under the folder 'FailoverClustering-Manager' > Admin, I see event 4683 - The error was 'The IP Address 10.10.9.150' is already used'. Not sure why that would make SQL Server fail, but none of the other resources. For all the 'Failover' folders in Event Viewer, none of the 'Diagnostic' logs have any events.
Generated and checked the cluster.log file on both servers. For some reason, the time is off in that log, so it's hard for me to pinpoint when the errors below occurred:
[RES] Physical Disk: Resource SQL Network Name (CSDBNAME) is not in online or pending state.
[RES] SQL Server : ResUtilSetResourceServiceEnvironment: Failed to open service key for MSSQL$NAME, error = 2.
[RES] SQL Server : [sqsrvres] OnlineThread: ResUtilSetResourceServiceEnvironment failed (status cb)
[RES] SQL Server : [sqsrvres] OnlineThread: Error cb bringing resource online.
[RHS] Online for resource SQL Server (NAME) failed.
[RCM] rcm::RcmResource::HandleFailure: (SQL Server (NAME))
That's all the log info I can find. Any other ideas to successfully move resources from one node to the other?
First
For the cluster disk you can see in "Disk manager" if it is "reserved".
Try to add a disk cluster like you have done before and see if it move.
Second
For de IP Address, you can try to stop this resource and test a ping from node 1 and form node 2 to check if this IP exist or not
Third
Check in Active Directory, to see if it didn't have a problem with security autorisation in the failover ressources
Check if cluster Name had some autorisation in the network name service
I need to modify an existing Windows CE app which gets it data from SQL Compact database (sdf) to update the database table (only 1 table) with latest records from a SQL Server Express when ever it is docked to the machine.
I came across Microsoft Sync Framework and it seems to be more than capable of enabling me to achieve my requirement. I tried one of their Walkthrough: Creating an Occasionally Connected Smart Device Application, but was not able to get the app working (the app I created based on the guide as well the sample code). The WCF service is hosted successfully and I can browse to the service from the browser as well.
I am encountering an error at the below line on the click event of SynchronizeMenuItem.
Dim syncStats As Global.Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()
Below is the trace from the output window:
'MobileSyncServices.exe' (Managed): Loaded 'System.SR.dll'
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
The thread 0x771e2c1e has exited with code 0 (0x0).
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
I've been trying to find a solution for this problem as I didn't come across any after 2 days hence posting it here. I've installed all the framework/ service pack which are prerequisite for this as well. Have any of you tried this walk through and encountered a similar issue? What baffles me further is, that the sample code is also failing in two of my development machines (1 is Win XP and the Win 7).
Is there any other alternative way to update table in a Windows CE device with SQL Express Server when docked?
The requirment was to find a method to overwrite an table on a docked device (connected through ActiveSync/ Sync Center), achieved this by connecting to the SQL Server directly (by specifying either ip address) from the Pocket PC.
User would specify the SQL Server credentials Under system config/ options, which would be made use of to connect to the SQL Server. Once the desired data from the Server is broght down, the compact database is updated with the relevant data.
Below web resources paved the way to solve this issue and achieve the goal.
Connecting to SQL Server Express from a Pocket PC application
Accessing SQL Server Express from the emulator (or PDA)