You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/2014/analysis-services/instances/install-windows/migrate-power-pivot-to-sharepoint-2013.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ manager: craigg
86
86
87
87
Use PowerShell cmdlets in the SharePoint 2013 Management shell to mount the migrated content database. The service application database does not need to be mounted, only the content databases: 
1. In the SharePoint 2013 Management Run the `Set-PowerPivotServiceApplication` cmdlet with the `-StartMigratingRefreshSchedules` switch to enable automatic on demand schedule migration . The following Windows PowerShell script assumes that there is only one PowerPivot service application.
After the Windows PowerShell script is run, the schedules are active and the schedules will run at the next appropriate time. However, the status one the schedule refresh page is not enabled. When the schedule runs the first time it will be migrated and on the schedule refresh page, **Enabled** will be true.
134
134
135
135
2. If you want to check the current value of the StartMigratingRefreshSchedules property, run the following PowerShell script. The Script loops through all PowerPivot service application objects and display the name and property values:
**Migrate Schedules option2: User updates each workbook**
@@ -169,6 +168,4 @@ manager: craigg
169
168
170
169
- [Clean up preparations before an upgrade to SharePoint 2013](https://go.microsoft.com/fwlink/p/?LinkId=256689) (https://go.microsoft.com/fwlink/p/?LinkId=256689).
171
170
172
-
- [Upgrade databases from SharePoint 2010 to SharePoint 2013](https://go.microsoft.com/fwlink/p/?LinkId=256690) (https://go.microsoft.com/fwlink/p/?LinkId=256690).
173
-
174
-
171
+
- [Upgrade databases from SharePoint 2010 to SharePoint 2013](https://go.microsoft.com/fwlink/p/?LinkId=256690) (https://go.microsoft.com/fwlink/p/?LinkId=256690).
Copy file name to clipboardExpand all lines: docs/2014/database-engine/availability-groups/windows/join-a-secondary-database-to-an-availability-group-sql-server.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ manager: craigg
80
80
81
81
The following example joins the secondary database, `Db1`, to the local secondary replica of the `MyAG` availability group.
82
82
83
-
```
83
+
```sql
84
84
ALTERDATABASE Db1 SET HADR AVAILABILITY GROUP = MyAG;
85
85
```
86
86
@@ -96,10 +96,8 @@ manager: craigg
96
96
97
97
For example, the following command joins a secondary database, `Db1`, to the availability group `MyAG`on one of the server instances that hosts a secondary replica.
Copy file name to clipboardExpand all lines: docs/2014/database-engine/availability-groups/windows/join-a-secondary-replica-to-an-availability-group-sql-server.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ manager: craigg
82
82
83
83
The following example, joins the secondary replica to the `MyAG` availability group.
84
84
85
-
```
85
+
```sql
86
86
ALTER AVAILABILITY GROUP MyAG JOIN;
87
87
```
88
88
@@ -100,7 +100,7 @@ manager: craigg
100
100
101
101
For example, the following command joins a secondary replica hosted by the server instance located at the specified path to the availability group named `MyAg`. This server instance must host a secondary replica in this availability group.
Copy file name to clipboardExpand all lines: docs/2014/database-engine/availability-groups/windows/manually-prepare-a-secondary-database-for-an-availability-group-sql-server.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ manager: craigg
145
145
146
146
1. To use the [!INCLUDE[ssSampleDBobject](../../../includes/sssampledbobject-md.md)] database, modify it to use the full recovery model:
147
147
148
-
```
148
+
```sql
149
149
USE master;
150
150
GO
151
151
ALTERDATABASE MyDB1
@@ -160,7 +160,7 @@ manager: craigg
160
160
161
161
On the server instance that hosts the primary replica (`INSTANCE01`), create a full backup of the primary database as follows:
162
162
163
-
```
163
+
```sql
164
164
BACKUP DATABASE MyDB1
165
165
TO DISK = 'C:\MyDB1.bak'
166
166
WITH FORMAT
@@ -175,7 +175,7 @@ manager: craigg
175
175
176
176
On the computer that hosts the secondary replica, restore the full backup as follows:
177
177
178
-
```
178
+
```sql
179
179
RESTORE DATABASE MyDB1
180
180
FROM DISK = 'C:\MyDB1.bak'
181
181
WITH NORECOVERY
@@ -191,7 +191,7 @@ manager: craigg
191
191
192
192
For example, the following command restores a backup of a primary database that resides in the data directory of the default instance of [!INCLUDE[ssCurrent](../../../includes/sscurrent-md.md)], C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA. The restore database operation must move the database to the data directory of a remote instance of [!INCLUDE[ssCurrent](../../../includes/sscurrent-md.md)] named (*AlwaysOn1*), which hosts the secondary replica on another cluster node. There, the data and log files are restored to the *C:\Program Files\Microsoft SQL Server\MSSQL12.ALWAYSON1\MSSQL\DATA* directory . The restore operation uses WITH NORECOVERY, to leave the secondary database in the restoring database.
193
193
194
-
```
194
+
```sql
195
195
RESTORE DATABASE MyDB1
196
196
FROM DISK='C:\MyDB1.bak'
197
197
WITH NORECOVERY,
@@ -204,7 +204,7 @@ manager: craigg
204
204
205
205
5. After you restore the full backup, you must create a log backup on the primary database. For example, the following [!INCLUDE[tsql](../../../includes/tsql-md.md)] statement backs up the log to the a backup file named *E:\MyDB1_log.bak*:
206
206
207
-
```
207
+
```sql
208
208
BACKUP LOG MyDB1
209
209
TO DISK = 'E:\MyDB1_log.bak'
210
210
GO
@@ -214,7 +214,7 @@ manager: craigg
214
214
215
215
For example, the following [!INCLUDE[tsql](../../../includes/tsql-md.md)] statement restores the first log from*C:\MyDB1.bak*:
216
216
217
-
```
217
+
```sql
218
218
RESTORE LOG MyDB1
219
219
FROM DISK = 'E:\MyDB1_log.bak'
220
220
WITH FILE=1, NORECOVERY
@@ -225,7 +225,7 @@ manager: craigg
225
225
226
226
For example, the following [!INCLUDE[tsql](../../../includes/tsql-md.md)] statement restores two additional logs from*E:\MyDB1_log.bak*:
227
227
228
-
```
228
+
```sql
229
229
RESTORE LOG MyDB1
230
230
FROM DISK = 'E:\MyDB1_log.bak'
231
231
WITH FILE=2, NORECOVERY
@@ -259,16 +259,15 @@ manager: craigg
259
259
### <a name="ExamplePSscript"></a> Sample Backup and Restore Script and Command
260
260
The following PowerShell commands back up a full database backup and transaction log to a network share and restore those backups from that share. This example assumes that the file path to which the database is restored is the same as the file pathon which the database was backed up.
Copy file name to clipboardExpand all lines: docs/2014/database-engine/listeners-client-connectivity-application-failover.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ SAN = ServerFQDN,AG1_listener.Adventure-Works.com, AG2_listener.Adventure-Works.
178
178
179
179
Use the `setspn` Windows command line tool to configure the SPN. For example to configure an SPN for an availability group named `AG1listener.Adventure-Works.com` hosted on a set of instances of SQL Server all configured to run under the domain account `corp/svclogin2`:
180
180
181
-
```
181
+
```cmd
182
182
setspn -A MSSQLSvc/AG1listener.Adventure-Works.com:1433 corp/svclogin2
183
183
```
184
184
@@ -212,5 +212,3 @@ setspn -A MSSQLSvc/AG1listener.Adventure-Works.com:1433 corp/svclogin2
212
212
[About Client Connection Access to Availability Replicas (SQL Server)](availability-groups/windows/about-client-connection-access-to-availability-replicas-sql-server.md)
[Connect Clients to a Database Mirroring Session (SQL Server)](database-mirroring/connect-clients-to-a-database-mirroring-session-sql-server.md)
Copy file name to clipboardExpand all lines: docs/2014/database-engine/monitor-sql-server-managed-backup-to-windows-azure.md
+23-33Lines changed: 23 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ manager: craigg
28
28
29
29
3. Copy and paste the following example into the query window and then click **Execute**. This will return the current configuration for Extended Events, and e-mail notifications.
30
30
31
-
```
31
+
```sql
32
32
Use msdb
33
33
Go
34
34
SELECT*FROMsmart_admin.fn_get_parameter (NULL)
@@ -47,40 +47,38 @@ GO
47
47
48
48
1. To view available Extended Event channels and their current status by running the following query:
The output from this query will display the event_name, whether it is configurable or not, and whether it is currently enabled. For more information, see [smart_admin.fn_get_current_xevent_settings (Transact-SQL)](/sql/relational-databases/system-functions/managed-backup-fn-get-current-xevent-settings-transact-sql).
55
55
56
56
2. To enable debug events, run the following query:
For more information about the stored procedure, see [smart_admin.sp_set_parameter (Transact-SQL)](/sql/relational-databases/system-stored-procedures/managed-backup-sp-set-parameter-transact-sql).
67
66
68
67
3. To view the logged events run the following query:
69
68
70
-
```
69
+
```sql
71
70
-- View all events in the current week
72
71
Use msdb;
73
72
Go
74
73
DECLARE @startofweek datetime
75
74
DECLARE @endofweek datetime
76
-
SET @startofweek = DATEADD(Day, 1-DATEPART(WEEKDAY, CURRENT_TIMESTAMP), CURRENT_TIMESTAMP)
75
+
SET @startofweek = DATEADD(Day, 1-DATEPART(WEEKDAY, CURRENT_TIMESTAMP), CURRENT_TIMESTAMP)
77
76
SET @endofweek = DATEADD(Day, 7-DATEPART(WEEKDAY, CURRENT_TIMESTAMP), CURRENT_TIMESTAMP)
There are objects that are installed to implement the functionality. These objects are reserved for internal use. However, there is one system table that can be useful in monitoring the backup status: smart_backup_files. Most of the Information stored in this table relevant to monitoring like the type of backup, database name, first and last lsn, backup expiry dates are exposed through the system function [smart_admin.fn_available_backups (Transact-SQL)](/sql/relational-databases/system-functions/managed-backup-fn-available-backups-transact-sql). However the status column in the smart_backup_files table which indicates the status of the backup file is not available using the function. Following is a sample query you can use to retrieve the some information including the status from the system table:
214
208
215
-
```
209
+
```sql
216
210
USE msdb
217
211
GO
218
212
SELECT
219
-
database_name AS [Database Name]
220
-
,backup_path AS [Backup Destination and File]
213
+
database_name AS [Database Name] ,backup_path AS [Backup Destination and File]
221
214
,[Backup Type] =
222
215
CASE backup_type
223
216
WHEN 1 THEN 'FULL'
@@ -238,8 +231,7 @@ END
238
231
,backup_finish_date AS [Backup Completion Time]
239
232
,expiration_date AS [Backup Expiry Date/Time]
240
233
FROM
241
-
smart_backup_files;
242
-
234
+
smart_backup_files;
243
235
```
244
236
245
237
Following is a detailed explanation of the different status returned:
@@ -255,5 +247,3 @@ smart_backup_files;
255
247
-**Deleted - D:** The corresponding file cannot be found in the Azure storage. [!INCLUDE[ss_smartbackup](../includes/ss-smartbackup-md.md)] will schedule a backup if the deleted file results in a break in the backup chain.
256
248
257
249
-**Unknown - U:** This status indicated that [!INCLUDE[ss_smartbackup](../includes/ss-smartbackup-md.md)] has not yet been able to verify file existence and its properties in the Azure storage. The next time the process runs, which is approximately every 15 minutes, this status will be updated.
0 commit comments