restoring specific lost files
MSDTC on Windows 2012 Standards edition
Hello Friends,
We have migrated our Prod server to Windows server 2012 Standards editions.
and enabled MSDTC but still getting below error
Error :-
- 1. The MSDTC transaction manager was unable to pull the transaction from the source 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: 0x8004D02B)
- 2. The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025)
we have enabled MSDTC and restarted the server but it not working.
can you please help me.
Network Name resources
Dear All,
Please help to resolve below issue. my production is down and i m not able to do anything now.
i m stuck up badly here.
Thank You In Advance,
Cluster network name resource 'SQL Network Name (HASSANSSQL)' cannot be brought online. The computer object associated with the resource could not be updated in domain 'HASSANS.COM' for the following reason:
Unable to get Computer Object using GUID.
The text for the associated error code is: The specified directory service attribute or value does not exist.
The cluster identity 'HS-DB$' may lack permissions required to update the object. Please work with your domain administrator to ensure that the cluster identity can update computer objects in the domain
Always ON High Availabilty
Hi Everyone,
In AlwaysOn HighAvailabilty if any problem or disaster will happen in Primary Server.It got failover to sencondary replica.
But in the secondary replica we have give read option only.Not write option.Then how to if we want write anything in the DB.
Thanks Everyone,
RamKarthik
Secondary Sync Replica is down, What will be its effect on Primary
Hello All,
Lets assume this situation. The synchronous secondary replica is down, what will be its effect on the primary replica. Will the tran log keep growing for the primary replica? This used to be the case with Mirroring.
Thanks in advance.
Thank you,
Anup
SQL 2014 Clustered with CSV
My thought is, the SQL cluster is not communicating properly with the CSV. In my prod 2008 R2 cluster, the disks are a dependency of the SQL service while in Windows 2012 R2, it is not (since it is using CSV).
I followed http://blogs.msdn.com/b/clustering/archive/2014/05/08/10523860.aspx - which really doesn't differ too much than older versions of Failover Clustering.
Any thoughts?
Listener Configuration for AlwaysOn
Hello,
I am following this tutorial http://msdn.microsoft.com/en-us/library/dn425027.aspx
When I get to this PowerShell script thing start to go wrong
# Define variables$ClusterNetworkName="<ClusterNetworkName>"# the cluster network name$IPResourceName="<IPResourceName>"# the IP Address resource name $CloudServiceIP="X.X.X.X"# IP address of your cloud service Import-Module FailoverClusters Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$CloudServiceIP";"ProbePort"="59999";SubnetMask="255.255.255.255";"Network"="$ClusterNetworkName";"OverrideAddressMatch"=1;"EnableDhcp"=0}
I get this error: Set-ClusterParameter : Unable to save property changes
After some testing it appears the PowerShell script cannot update the probeport, subnet mask, OverrideAddressMatch or EnableDhcp. I could however update the other values.
I then used the following PowerShell command to try and update the values separately.
$res = Get-ClusterResource "Resource Name"
$p1 = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $res,ProbePort,59999
$params = $p1
$params | Set-ClusterParameterBut I get the same error. Does anyone have any idea why I cannot change these values? I have managed to do it on other SQL clusters so not sure why it is not working here. I have checked the event logs and I am not getting any errors.
Brian Jones
Failed to create Availability Group Listener-SQL 2012 SP1
HEy guys,
I'm attempting to setup a SQL AlwaysOn CLuster... Having some issues doing so. It's a 3 node cluster and the Clustername is ADM034SQLC050 and the nodes are ADM034SQL051, ADM034SQL052, and ADM034SQL053. I can't create the AG listener for some reason and I just about given up lol. When I attempt to create the Listener I get the error below:
TITLE: Microsoft SQL Server Management Studio------------------------------
Create failed for Availability Group Listener 'NTS-SQLD70'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+AvailabilityGroupListener&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The WSFC cluster could not bring the Network Name resource with DNS name 'NTS-SQLD70' online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the WSFC cluster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 19471)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=19471&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
I just recently created a ClusterAdmin-GS group and added full rights to the nodes and cluster computer object. Also made sure the ClusterAdmin-GS was a local admin all 3 nodes. All servers are on the same VLAN and the clustering does failure/working properly. OS is Windows 2012 r2.
A few screen shots attached. Any idea, what I'm doing wrong? Any input would be appreciated!
JC
Reporing Service and msdb replication through AlwaysOn Feature on SQL Server 2012
Performance Tuning
Hi,
What are the steps to fine tune given T-SQl query?
This is the interview question i faced in many time.
!!!Urgent !!!!!Cannot recovery database without log files (SQL 2008)
TITLE: Microsoft SQL Server Management Studio
------------------------------
Attach database failed for Server 'DEV8\sqlexpress2008'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Could not open new database 'Smartadmin'. CREATE DATABASE is aborted.
File activation failure. The physical file name "C:\MSSQL\Smartadmin_log.ldf" may be incorrect.
The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure. (Microsoft SQL Server, Error: 1813)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=1813&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
Javafun
How to recover from mdf file (SQL Server 2000)
Hi,
My database corrupted because when I was running an update query, there is a power failure. After the computer booted, I cannot open the database anymore, it just not responding. Then I stop the sql server service, and tried to rename the .mdf and .ldf. After that it worked normally, but I need the data from the corrupted mdf file, I tried to attach the database but it just hanged. I even tried to attach without the .ldf file but it didn't work either, so I concluded that the problem is with the mdf file.
Is there any way to recover my data ??
Thanks in advance
Regards,
Edwin
Change Master Collation in Multi-instance Cluster
Hy Guys,
SQL Server 2008 R2 Ent 64 bit.
Cluster with 2 Servers (SrvA, SrvB).
The Sql cluster is made up by 2 Instances: vSrvA\Instance1, and VSrvB\Instance2 (both working correctly and accessible anywhere across the network).
ISSUE:
Changing Master Collation on both instances.
Attempted several time but unsuccessfully (I have also checked teh log, but I cannot see nothing of relevant) following the procuedure provided by Microsoft and in other posts.
Please, anyone could provide a procedure to change Master Collation in Multi-istance Cluster?
Kind regards
SQL Server Licensing
My Project is in the initial stages of researching the requirements for SQL Server Failover Cluster. We have 3 Servers running SQL Server Currently, and we would like to consolidate the instances to a SQL Server Failover cluster having 3 Nodes.
My Question is: If only one node is active at a time, do you only need 1 license for SQL Server (the active node), or do you need license all nodes well, since anyone of the passive nodes may become active at any one time?
My thought is three (3), since any of the nodes can become active, but I haven't found any documentation to support that, and I have been waiting for our licensing provider to get back to us after they speak with Microsoft. Our license provider initially said that we would only need 1 licenses, the active node, but have the software on the other nodes; this doesn't sound correct.
Can someone clarify licensing in a SQL Server Failover cluster scenario?
DJ
ODBC CONNECTIVITY ON SQL 2012 FAILOVER CLUSTER
Sync SQL Server 2008 R2 database table to a different server
Dear All,
Please advise I want to sync data from Server 1 to Server 2 both are SQL Server 2008 R2.
This we want it to sync twice day, we have restored full backup. to Server 2.
Please advise how we can achieve this.
-- Regards Sandeep
Joining the secondary database to the availability group
Hi,
I am attempting to create a always on AG using PowerShell, however when I issue the command:
Add-SqlAvailabilityDatabase -Path "SQLSERVER:\SQL\TEST2\MSSQLDB\AvailabilityGroups\peter" -Database "peter"
It fails with the the error message below. The same error appears when I use management studio but is successfully when I select the full option instead of the join only radio button on the GUI.
My question is, how do I replaicate the full operation using powershell i.e. is it an "Add-SqlAvailabilityDatabase" command ? What is the synatx ?
Thanks in advance,
**********************************
Add-SqlAvailabilityDatabase : The connection to the primary replica is not active. The command cannot be processed.
At line:1 char:28
+ Add-SqlAvailabilityDatabase <<<< -Path "SQLSERVER:\SQL\TEST2\MSSQLDB\AvailabilityGroups\peter" -Database "peter"
+ CategoryInfo : InvalidOperation: (:) [Add-SqlAvailabilityDatabase], SqlException
+ FullyQualifiedErrorId : ExecutionFailed,Microsoft.SqlServer.Management.PowerShell.Hadr.AddSqlAvailabilityGroupDa
tabaseCommand
**********************************
Startup Setting of sql 2014 Clustered "SQL Server" Service
New cluster in testlab:
Windows Server 2012 R2: N1, N2 (node 1, node 2)
Sql Server 2014 installed on N1, N2
Storage server (uses SMB share for Sql Data and Quorum).
N1 is active; N2 is passive. What is the proper setup for the SqlServer and SqlServerAgentservices on both boxes? (Should they be "manual" for both?)
TIA,
edm2
PS. I wonder if the startup setting option is used to implement the Active\passive state.
Unattended install of SQL Server
Hi,
Is it possible to declare a variable for an instance or username for example and pass it to a setup.exe command to run a silent install?
for example below (which obviolsy fail)
Set INSTANCENAME='host1'
setup.exe /QUIETSIMPLE /ACTION=install /FEATURES=SQL TOOLS /IAcceptSQLServerLicenseTerms=true /INSTANCENAME=="NAME"/SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="domain\username" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"
Thanks,
Physically moving the FCI in an FCI+AG... Methods to keep quorum?
Currently I have a two node FCI using a Node and Disk Majority quorum, both nodes are physical servers. An AlwaysOn AG was configured within that FCI. I have two stand-alone nodes, both VMs, that can hold the AOAG but not any of the FCI resources because of course they don't share the physical disks being presented to the two physical FCI nodes. One of the two standalone VM nodes is located in a remote DR location. I need to physically move the original two FCI nodes and the shared storage those two share to the same remote DR location.
Now obviously the cluster has 4 nodes and a quorum disk for a total of 5 votes. When the two physical nodes get shut off to get trucked to the DR location, the quorum disk is going along with them so the cluster will shut down completely as 3 of 5 votes are now offline. I see three possible solutions to prevent the AOAG from staying down for the duration of the physical move:
After failing over the AOAG to the remote DR site node:
1.) Shut down the cluster. Force quorum on the DR site's node. Once the physical servers are in place at the DR site, shut down the cluster and start it back up normally since all 5 votes are back online. This of course causes two outages (in addition to the outage caused by the initial AOAG failover to the remote DR node), one to shut down the cluster and force quorum, and one more outage to shut the cluster down and return it to normal.
2.) Change the current cluster to Node and File Share Majority with the file share pointing to a share that will be available while the two physical nodes and their shared storage are in transit. This results in 3 of 5 votes (2 nodes + share) staying alive and thus the cluster stays up and never goes down. Once the two physical nodes are back online, can either return quorum config back to Node and Disk Majority or simply leave it Node and File Share Majority, old quorum disk can now be removed if the latter.
3.) Change the NodeWeight value on the remote DR node to be 3 which increases the total number of votes to 7. When the physical nodes and quorum disk are taken offline, 4 of 7 votes (node 1 = 1 vote, node 2 = 3 votes) stay alive and the cluster stays up and never goes down. When the two physical servers and quorum disk are back online, return all nodes back to 1 vote each.
Any recommendation as to which method would be the best? I am leaning towards #2 or #3 as it would seem they would require less outages. Or maybe a 4th option that would be a combination of 2 and 3, like replacing the quorum disk with a file share and changing NodeWeight to 2 on one of the two VMs. I would like to get rid of the quorum disk as it is really only shared between the two physical nodes whereas the file share would be shared between all 4 nodes.
Any insight would be appreciated. Thanks!