Skip to content

Commit 14e2d72

Browse files
committed
updating things
1 parent 50efee4 commit 14e2d72

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/connect/ado-net/step-3-connect-sql-ado-net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.topic: conceptual
1919

2020
This C# code example should be considered a proof of concept only. The sample code is simplified for clarity, and does not necessarily represent best practices recommended by Microsoft.
2121

22-
## Step 1: Connect
22+
## 1: Connect
2323

2424
The method **SqlConnection.Open** is used to connect to your SQL database.
2525

@@ -57,7 +57,7 @@ Press any key to finish...
5757
```
5858

5959

60-
## Step 2: Execute a query
60+
## 2: Execute a query
6161

6262
The method SqlCommand.ExecuteReader:
6363

@@ -143,7 +143,7 @@ Press any key to finish...
143143

144144

145145

146-
## Step 3: Insert a row
146+
## 3: Insert a row
147147

148148

149149
This example demonstrates how to:

docs/relational-databases/logs/troubleshoot-a-full-transaction-log-sql-server-error-9002.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To discover what is preventing log truncation in a given case, use the `log_reus
7272
The following set of T-SQL commands will help you identify if a database transaction log isn't truncated and the reason for it. The following script will also recommend steps to resolve the issue:
7373

7474

75-
```tsql
75+
```sql
7676
SET NOCOUNT ON
7777
DECLARE @SQL VARCHAR (8000), @log_reuse_wait tinyint, @log_reuse_wait_desc nvarchar(120), @dbname sysname, @database_id int, @recovery_model_desc varchar (24)
7878

@@ -269,7 +269,7 @@ Under the FULL or BULK_LOGGED recovery model, if the transaction log has not bee
269269

270270
A complete history of all SQL Server backup and restore operations on a server instance is stored in the `msdb` system database. To review the complete backup history of a database, use the following sample script:
271271

272-
```tsql
272+
```sql
273273
SELECT bs.database_name
274274
, backuptype = CASE
275275
WHEN bs.type = 'D' and bs.is_copy_only = 0 THEN 'Full Database'
@@ -384,7 +384,7 @@ For more information see [Add Data or Log Files to a Database](../../relational-
384384
These steps can be partly automated by running this T-SQL script which will identify logs files that using a large percentage of disk space and suggest actions:
385385
386386
387-
```tsql
387+
```sql
388388
DECLARE @log_reached_disk_size BIT = 0
389389
390390
SELECT
@@ -452,7 +452,7 @@ END
452452
453453
Error 9002 can be generated if the transaction log size has been set to an upper limit or Autogrow is not allowed. In this case, enabling autogrow or increasing the log size manually can help resolve the issue. Use this T-SQL command to find such log files and follow the recommendations provided:
454454
455-
```tsql
455+
```sql
456456
SELECT DB_NAME(database_id) DbName,
457457
name LogName,
458458
physical_name,

0 commit comments

Comments
 (0)