Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all 4689 articles
Browse latest View live

Changing System Databases Path for an Always On(Availability Group) Secondary Server.

$
0
0

Hi every one.

I have an Availability Group (Always On) and i have to change the system databases paths to another drive.

I've recently test it with stopping the SQL server and copying the system databases files to another drive. then i changed the drives letters and started the SQL Server. But it gave me some warnings in Availability Group Dashboard about not synchronizing databases. 

can you guys help me out please. 


Database is read only after manual failover

$
0
0

Hello Guys.I have a SharePoint 2013 Farm and databases are hosted on remote SQL servers with alwayson configure for HA. 

When i manually failover from primary to secondary, the website for SharePoint convert to Read Only mode. When i try to run the ClearMaintenanceMode powershell, it returns error and specify that a content database is in Read only mode. When i check the database state in SQL Management Studio (Database Properties> Options> State> Database Read-Only), i found it is False 

Any Ideas ?

Thanks

always on

$
0
0
Hi All,

Is there any good link/blog which discusses ALWAYSON fail over scenarios?

Thanks,

Sam

Backup_verifying

$
0
0

Hi,

I need to verify my backup which is generated to multiple files can i know the command to do it

i know 

RESTORE VERIFYONLY
FROM DISK=N'D:\xxx.bak'

but it is for single .bak file but by backup is generated in multiple .bak files so how can i do it can i know the command for it please


naveen

win 2016 server std cluster sql server 2017 Attaching 2012 database issue

$
0
0

win 2016 server std cluster sql server 2017 production
active-active sql cluster

all recent patches applied.
SSMS 2017 latest version.

Attaching 2012 database to SQL server instance 2017 took long time and error log showed inconsistency errors.
After the process was killed users were unable to connect to the SQL server instance.

What happened to SQl Server instance? why users were unable to connect to the instance?

Regards,
Sergei



Sergei


"No backupset selected to be restored" - Cannot restore SQL Server 2014 Database backup with TDE enabled on to a new instance

$
0
0

Hello,

I am using SQL Server 2014, SP2, Enterprise edition, on both old and new instances. I am trying to restore a backup (about 360 GB) of a TDE enabled database on to the new instance.   The certificate had expired on the source server, so, created a new certificate on source and then restored on to the new instance.  I also created the master key on the new instance.  I made a copy-only backup of the database and copied on to the server where new instance is located.  When I tried to restore the database I keep getting "No backupset selected to be restored" error.  Restore Filelistonly and Restore Verifyonly check on backup file come back with no issues on the new instance.   However, Restore Headeronly comes back with error below.

Msg 3013, Level 16, State 1, Line 118
RESTORE HEADERONLY is terminating abnormally.

After this attempt failed, I created a blank database manually and enabled encryption on after running the following in the database context.

CREATE DATABASE ENCRYPTION KEY
WITH ALGORITHM = AES_256
ENCRYPTION BY SERVER CERTIFICATE <cert name>

Now I am trying to restore on top of the new database using SSMS but it is stuck at "Reading backup device header" file for more than an hour.

Please shed some light on this.

Thanks in advance.

Prasad Koukuntla

  

Issue with In Memory hkckp file in standby recovery mode

$
0
0

Hello,

I have two instance configured in Always On High Availability with another one in another Datacenter :

NODE1 (master) + NODE2 (slave not readable) ==> Datacenter 1

NODE3 (standby read only) ==> Datacenter 2

On NODE1/2 i have 2 tables InMemory configured with DURABILITY = SCHEMA_ONLY on database DB1

On NODE1/2 i have 44 files with 2Gb total size in $HKv2 directory.

but the issue is on NODE3 where DB1 is in Standby mode with read only.

Archivelog are restored in DB1 on NODE3 with NORECOVERY and STANDBY mode

ON NODE3 i have more than 5K files with 253Gb total size in MSSQL_DATA\$HKv2 directory

chkcp files for InMemory table are delete where checkpoint is made, for NODE1/2 there is no problem.

But on read only database in NODE3 the chkcp files are not purged maybe because the database is read only and deleting chkcp file need to write in database for change ?

Anyone else have to deal with this issue ?

Any help is welcome.

Thanks

Christophe

Verify all backups in a media set

$
0
0

Good morning,

I have multiple .bak files that I need to verify for one database. However, an issue has occurred when it would be beneficial for me to be able to get an error (if there is one) for all of the files. Example, if the third and fifth bak file is invalid, I would like to receive an error message for both files. The following is the code I have so far. Should the continue_after_error clause result in multiple error messages if there are multiple errors? Any advice would be greatly appreciated.

RESTORE VERIFYONLY 
from disk = 'C:\bak\DB1.bak', 
disk = 'C:\bak\DB2.bak', 
disk = 'C:\bak\DB3.bak', 
disk = 'C:\bak\DB4.bak', 
disk = 'C:\bak\DB5.bak'
WITH CONTINUE_AFTER_ERROR; 


AG Resource Going Into Failed Status

$
0
0

Hello,

Win2k12 r2 OS, SQL2k12 Ent edition. Two node fail-over cluster hosting a 1.5 tb synchronized database (Synchronous commit). Both the servers are from the same subnet. Seeing following error in the cluster events. After a few minutes, the AG resource comes back online again:

Cluster resource 'AOGrp1' of type 'SQL Server Availability Group' in clustered role 'AOGrp1' failed.

Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster Manager or the Get-ClusterResource Windows PowerShell cmdlet.

At that time, I see following in the sql server logs:

Message
SQL Server hosting availability group 'AOGrp1' did not receive a process event signal from the Windows Server Failover Cluster within the lease timeout period.

Message
Error: 19421, Severity: 16, State: 1.

Here is the partial capture from the cluster logs. Is this related to network connectivity or something else?

5c::2019/03/14-10:02:07.561 INFO  [RES] SQL Server Availability Group: [hadrag] SQL Server component 'query_processing' health state has been changed from 'clean' to 'warning' at 2019-03-14 10:02:07.340
00004590.00004838::2019/03/14-10:02:09.248 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:02:14.373 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:02:20.283 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:02:25.358 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00003a6c::2019/03/14-10:02:32.624 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:02:32.780 INFO  [RES] Network Name <AOGrp1_SQL20LS>: Dns: HealthCheck: SQL20LS
00004590.00004838::2019/03/14-10:02:32.780 INFO  [RES] Network Name <AOGrp1_SQL20LS>: Dns: End of Slow Operation, state: Initialized/Reading, prevWorkState: Reading
00004590.00004adc::2019/03/14-10:02:37.889 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
000036ec.00003458::2019/03/14-10:02:38.874 INFO  [RES] SQL Server Availability Group: [hadrag] Availability Group with resource ID '7a245c40-fd05-4b59-99ac-31c395284899' did not receive healthinformation before HealthCheckTimeout
000036ec.00003458::2019/03/14-10:02:38.874 ERR   [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Availability Group is not healthy with given HealthCheckTimeout and FailureConditionLevel
000036ec.00003458::2019/03/14-10:02:38.874 ERR   [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Resource Alive result 0.
000036ec.00003458::2019/03/14-10:02:38.874 INFO  [RES] SQL Server Availability Group: [hadrag] Availability Group with resource ID '7a245c40-fd05-4b59-99ac-31c395284899' did not receive healthinformation before HealthCheckTimeout
000036ec.00003458::2019/03/14-10:02:38.874 ERR   [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Availability Group is not healthy with given HealthCheckTimeout and FailureConditionLevel
000036ec.00003458::2019/03/14-10:02:38.874 ERR   [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Resource Alive result 0.
000036ec.00003458::2019/03/14-10:02:38.874 WARN  [RHS] Resource AOGrp1 IsAlive has indicated failure.
000028b0.00000840::2019/03/14-10:02:40.774 INFO  [RCM] HandleMonitorReply: FAILURENOTIFICATION for 'AOGrp1', gen(11) result 1/0.
000028b0.00000840::2019/03/14-10:02:40.774 INFO  [RCM] Res AOGrp1: Online -> ProcessingFailure( StateUnknown )
000028b0.00000840::2019/03/14-10:02:40.774 INFO  [RCM] TransitionToState(AOGrp1) Online-->ProcessingFailure.
000028b0.00000840::2019/03/14-10:02:40.774 INFO  [RCM] rcm::RcmGroup::UpdateStateIfChanged: (AOGrp1, Online --> Pending)
000028b0.00000840::2019/03/14-10:02:40.774 ERR   [RCM] rcm::RcmResource::HandleFailure: (AOGrp1)
000028b0.00000840::2019/03/14-10:02:40.999 INFO  [RCM] resource AOGrp1: failure count: 1, restartAction: 2 persistentState: 1.
000028b0.00000840::2019/03/14-10:02:40.999 INFO  [RCM] Greater than restartPeriod time has elapsed since first failure of AOGrp1, resetting failureTime and failureCount.
000028b0.00000840::2019/03/14-10:02:40.999 INFO  [RCM] Will queue immediate restart (500 milliseconds) of AOGrp1 after terminate is complete.
000028b0.00000840::2019/03/14-10:02:40.999 INFO  [RCM] Res AOGrp1: ProcessingFailure -> WaitingToTerminate( DelayRestartingResource )
000028b0.00000840::2019/03/14-10:02:40.999 INFO  [RCM] TransitionToState(AOGrp1) ProcessingFailure-->[WaitingToTerminate to DelayRestartingResource].
000028b0.00000840::2019/03/14-10:02:41.030 INFO  [RCM] Res AOGrp1_FSShare: Online -> WaitingToTerminate( WaitingToComeOnline )
000028b0.00000840::2019/03/14-10:02:41.030 INFO  [RCM] TransitionToState(AOGrp1_FSShare) Online-->[WaitingToTerminate to WaitingToComeOnline].
000028b0.00000840::2019/03/14-10:02:41.030 INFO  [RCM] Res AOGrp1_FSShare: [WaitingToTerminate to WaitingToComeOnline] -> Terminating( WaitingToComeOnline )
000028b0.00000840::2019/03/14-10:02:41.030 INFO  [RCM] TransitionToState(AOGrp1_FSShare) [WaitingToTerminate to WaitingToComeOnline]-->[Terminating to WaitingToComeOnline].
000028b0.00000840::2019/03/14-10:02:41.030 INFO  [RCM] AOGrp1 not yet ready to terminate; dependent AOGrp1_FSShare still terminating.
000028b0.00002540::2019/03/14-10:02:41.483 INFO  [RCM] ignored non-local state Pending for group AOGrp1
000028b0.000046b0::2019/03/14-10:02:41.546 INFO  [GUM] Node 1: executing request locally, gumId:3496, my action: /dm/update, # of updates: 1
000028b0.00002974::2019/03/14-10:02:41.594 ERR   [RCM] [GIM] ResType Virtual Machine has no resources, not collecting local utilization info
000028b0.00002974::2019/03/14-10:02:41.594 INFO  [RCM] [GIM] Scheduling Local Node Crawler to run in 300000 millisec.
000028b0.00003b60::2019/03/14-10:02:41.624 INFO  [GUM] Node 1: executing request locally, gumId:3497, my action: /dm/update, # of updates: 1
000028b0.00003414::2019/03/14-10:02:41.844 INFO  [API] s_ApiUnblockGetNotifyCall: for the HDL( 1a )
000028b0.00003414::2019/03/14-10:02:41.859 INFO  [API] s_ApiGetQuorumResource final status 0.
000028b0.00002974::2019/03/14-10:02:41.859 INFO  [API] s_ApiGetQuorumResource final status 0.
000028b0.000046b0::2019/03/14-10:02:41.874 WARN  [API] s_ApiOpenResourceEx: Resource  not found, status = 5007
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM] HandleMonitorReply: TERMINATERESOURCE for 'AOGrp1_FSShare', gen(0) result 0/0.
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM] Res AOGrp1_FSShare: [Terminating to WaitingToComeOnline] -> WaitingToComeOnline( StateUnknown )
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM] TransitionToState(AOGrp1_FSShare) [Terminating to WaitingToComeOnline]-->WaitingToComeOnline.
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM] Res AOGrp1: [WaitingToTerminate to DelayRestartingResource] -> Terminating( DelayRestartingResource )
000028b0.00003b60::2019/03/14-10:02:41.874 INFO  [RCM] TransitionToState(AOGrp1) [WaitingToTerminate to DelayRestartingResource]-->[Terminating to DelayRestartingResource].
000036ec.00004518::2019/03/14-10:02:41.874 ERR   [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Lease Thread terminated
000028b0.000046b0::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000028b0.000046b0::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000028b0.000046b0::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000028b0.000046b0::2019/03/14-10:02:41.874 INFO  [RCM-rbtr] giving default token to group AOGrp1
000036ec.00003654::2019/03/14-10:02:41.874 INFO  [RES] SQL Server Availability Group: [hadrag] Stopping Health Worker Thread
000036ec.00002c74::2019/03/14-10:02:41.874 INFO  [RES] SQL Server Availability Group: [hadrag] Health worker was asked to terminate
000036ec.00001f5c::2019/03/14-10:02:42.847 INFO  [RES] SQL Server Availability Group: [hadrag] SQLMoreResults() returns -1 with following information
000036ec.00002c74::2019/03/14-10:02:42.847 INFO  [RES] SQL Server Availability Group: [hadrag] Change diagnostics interval worker is stopped
000036ec.00001f5c::2019/03/14-10:02:42.847 ERR   [RES] SQL Server Availability Group: [hadrag] ODBC Error: [HY008] [Microsoft][SQL Server Native Client 11.0]Operation canceled (0)
000036ec.00001f5c::2019/03/14-10:02:42.847 ERR   [RES] SQL Server Availability Group: [hadrag] ODBC Error: [01000] [Microsoft][SQL Server Native Client 11.0][SQL Server]  (0)
000036ec.00001f5c::2019/03/14-10:02:42.847 INFO  [RES] SQL Server Availability Group: [hadrag] No more diagnostics results
000036ec.00001f5c::2019/03/14-10:02:42.847 INFO  [RES] SQL Server Availability Group: [hadrag] Diagnostics is stopped
000036ec.00001f5c::2019/03/14-10:02:42.847 INFO  [RES] SQL Server Availability Group: [hadrag] Disconnect from SQL Server
000036ec.00001f5c::2019/03/14-10:02:42.925 INFO  [RES] SQL Server Availability Group: [hadrag] Extended Event logging is stopped
000036ec.00001f5c::2019/03/14-10:02:43.421 INFO  [RES] SQL Server Availability Group: [hadrag] Extended Event target state:
000036ec.00001f5c::2019/03/14-10:02:43.421 INFO  [RES] SQL Server Availability Group: [hadrag] Extended Event session summary: dropped buffers = 0, dropped events = 0
00004590.00004adc::2019/03/14-10:02:43.624 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
000036ec.00003654::2019/03/14-10:02:43.764 INFO  [RES] SQL Server Availability Group: [hadrag] Stopping Change Diagnostics interval Worker Thread
000036ec.00003654::2019/03/14-10:02:48.171 INFO  [RES] SQL Server Availability Group <AOGrp1>: [hadrag] Connect to SQL Server ...
00004590.00003a6c::2019/03/14-10:02:48.781 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:02:49.405 INFO  [RES] Network Name <AOGrp1_SQL20LS>: [cxl::Pinger-"SQL20LS"] Host not registered.
00004590.00004838::2019/03/14-10:02:49.405 WARN  [RES] Network Name <AOGrp1_SQL20LS>: [cxl::Pinger-"SQL20LS"] Could not find any endpoints for remote target
00004590.00004838::2019/03/14-10:02:49.421 INFO  [RES] Network Name <AOGrp1_SQL20LS>: Setting resource specific message to Name Resolution Not Yet Available
00004590.00004838::2019/03/14-10:02:54.452 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
00004590.00004838::2019/03/14-10:03:00.015 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:6c77a32d-387c-4a20-bfd6-8006b879b8c0:Netbios
000036ec.00003654::2019/03/14-10:03:00.077 INFO  [RES] SQL Server Availability Group <AOGrp1>: [hadrag] The connection was established successfully

Will greatly appreciate your input. Thanks.

Victor


Victor

SQL cluster with VM of different size at DR site

$
0
0

I have a primary site at Azure East-US-2 region and my DR site is at Azure paired zone in Central-US.
Now in East-US-2, G-series machines are available but no such machines available in Central-US zone. I really want to use G-series VM's for SQL server as the workload is more memory intensive and less cpu intensive. 
So can I create a cluster with 2 G-Series SQL nodes at primary site and 1 D-series SQL node at DR site? If it's possible then will I face any problem because of this configuration in future?

LICENSING QUESTION ABOUT HIGHLY AVAILABLE SETUPS

$
0
0

Hello, i´m considering a setup that i don´t know the correct licensing requirements.

Assuming i have software assurance so i can have these licensing benefits (free failover instance) you can see in the official licensing documentation.

If i have the next setup:

3 node cluster formed of:

2 node failover cluster of sql enterprise (high core count each) in one site, one node active and other passive for the main site.

A third node in other site with always on AG asynchronous databases in warm state (no queries, only for disaster recovery purposes)

Then, i only have 1 server accepting "queries" or production use, then:

Can i only license the enterprise core licenses for 1 host?

Or we need to cover some of the other nodes? Seems that official documentation is not clear about this concrete setup...

DB properties grayed out after renaming files

$
0
0
I am playing around with an AdventureWorks 2014 Database and I went to rename the logical and physical file using SSMS and succeeded at renaming both. I tried to bring the database back online afterwards but now the Database is in a Recovery Pending state with the following error 

File activation failure. The physical file name "C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS14\MSSQL\DATA\AdventureWorks2014_Log.ldf" may be incorrect.

It's physically there..... I had just renamed it and the data shouldn't be altered but how do I set it as a primary database file? If I right click on the DB "properties" is greyed out.

How many database can be added in one Always On Availability Group??

$
0
0

Hi, 

We SQL Server 2016 Enterprise Edition Active - Passive Clustering (SQL_INS_DC) at DC and same (SQL_INS_DR) at DR.

110 database are created at DC instance SQL_INS_DC. We want to configure Always On AG between DC & DR. We have good hardware configuration.

Please let me know how many databases can be added in one SQL Server Availability Group suppose AG1. 

Regards,

Nikhil. P . Desai

azsphere device recover failed

$
0
0

Hey,

I'm having problems with recovering my board. It hangs up once it hits the reboot sequence. I didnt have this problem before I updated my SDK and Visual Studio IDE Enterprise Edition.

C:\Users\Moopy\Documents>azsphere device recover
Starting device recovery. Please note that this may take up to 10 minutes.
Downloading recovery images...
Download complete.
Board found. Sending recovery bootloader.
Erasing flash.
Sending images.
Sending image 1 of 16.
Sending image 2 of 16.
Sending image 3 of 16.
Sending image 4 of 16.
Sending image 5 of 16.
Sending image 6 of 16.
Sending image 7 of 16.
Sending image 8 of 16.
Sending image 9 of 16.
Sending image 10 of 16.
Sending image 11 of 16.
Sending image 12 of 16.
Sending image 13 of 16.
Sending image 14 of 16.
Sending image 15 of 16.
Sending image 16 of 16.
Finished writing images; rebooting board.
error: Failed to establish communication with device after recovery. Try unplugging the device and plugging it back in, and verifying communication using 'azsphere device show-attached'. If that fails, try recovering the device again.
error: Failed to establish communication with device after recovery.
error: Command failed in 00:07:28.5796595.


Any script to know when the database added to Alwayson Group

$
0
0

Hi All,

Is there any script, to know when the database added to SQL Server Alwayson Group.

please let me know.

Thanks,


Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)


HA ReadOnly

$
0
0
If I have a Primary replica and a secondary replica in an on on ReadOnly state do I need enterprise edition on both servers or just the primary?

SPN registration for Alwayson

$
0
0

What name should be register for SPN in Always-on deployment ?

1. The AG listener name and port or  

2. The replica node name ( cluster node name )

Transaction rollback hanging from past two months(MSSQL 2016)

$
0
0

I executed a query using SQLCMD on 2019-01-30, and the query caused ldf file to bloat exponentially and it became 2TB in size(2,216,539,357 rows), then my MSSQL started rollback of transaction at 2019-02-01. I used KILL SPID WITH STATUSONLY to monitor the rollback process: progress of rollback was about 2% a day for first two weeks, afterwards the rollback process got stuck at 22% from 2019-02-14, and it's still there today.

I'd appreciate if I can get expert opinion on if there is any way to fix this issue - how to stop or speed up rollback?

Please find below code details about this issue:

------------------------------------------------------------------------------------------------

SQL

BEGIN TRAN
  DECLARE @m int
  SELECT @m = @@ERROR
  DECLARE @tbname_old varchar(50) = 'OTS_ARCHIVE'
  DECLARE @tbname_new varchar(50) = 'OTS_ARCHIVE2'
  DECLARE @column_old varchar(30) = 'GuID_ID'
  DECLARE @column_new varchar(30) = 'GuID_ID_old'
  DECLARE @sql varchar(50) = '[' + @tbname_new + '].[' + @column_old + ']'
  DECLARE @sqlid varchar(100) = 'CAST(CAST(NEWID() AS BINARY(10)) + CAST(GETDATE() AS BINARY(6)) AS UNIQUEIDENTIFIER)'
  DECLARE @date as datetime
  DECLARE @i int
  DECLARE @f int
  set @date = '2017-01-01'
  set @i = 0
  set @f = 27
  WHILE @i < @f
  BEGIN
  EXEC ('INSERT INTO ' + @tbname_new +
    ' select
    GuID_ID
    ,Box_ID
    ,Start_Time
    ,End_Time
    ,Duration_Time
    ,ots_count
    ,Group_ID
    ,' + @sqlid + ' from ' + @tbname_old
    )
  END
IF @m = 0
  COMMIT TRAN
ELSE
  ROLLBACK TRAN
  SELECT 
    ERROR_NUMBER() AS ErrorNumber,
    ERROR_SEVERITY() AS ErrorSeverity,
    ERROR_STATE() AS ErrorState,
    ERROR_PROCEDURE() AS ErrorProcedure,
    ERROR_LINE() AS ErrorLine,
    ERROR_MESSAGE() AS ErrorMessage





How to change Listner name in Alwayson

$
0
0

Hello All,

I have Alwayson Listnener name is configured as TEST_LIST, now i need to modify the Listener name to TEST_NEW.

How do i do it, i tried below and it did not work

USE [master] 
GO ALTER AVAILABILITY GROUP [Test_AG] 
MODIFY LISTENER 'TEST_NEW'()
GO 

ERROR IN RESTORE

$
0
0

Oi,

 when performing the backup restore the enterprise manager presented this error: An internal consistency error occurred. Contact technical support for assistance. Restore database is terminating abnormally.

the database was gray with status Loading.
I tried to use the query analyzer with the command: restore database xxxx with recovery

File 'xxxx' was only partially restored by a database or file restore. the entire file must be successfully restored before applying the log

unsuccessfully.
would anyone have an idea how to solve it?

Viewing all 4689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>