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/ado/guide/appendixes/visual-c-ado-programming.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The ADO API Reference describes the functionality of the ADO application program
34
34
35
35
For each operation within a class (that is, a method or property call), there is a declaration to call the operation directly (that is, the "raw" form of the operation), and a declaration to call the raw operation and throw a COM error if the operation fails to execute successfully. If the operation is a property, there is usually a compiler directive that creates an alternative syntax for the operation that has syntax like Visual Basic.
36
36
37
-
Operations that retrieve the value of a property have names of the form, **Get***Property*. Operations that set the value of a property have names of the form, **Put***Property*. Operations that set the value of a property with a pointer to an ADO object have names of the form, **PutRef***Property*.
37
+
Operations that retrieve the value of a property have names of the form, **Get**_Property_. Operations that set the value of a property have names of the form, **Put**_Property_. Operations that set the value of a property with a pointer to an ADO object have names of the form, **PutRef**_Property_.
38
38
39
39
You can get or set a property with calls of these forms:
40
40
@@ -59,16 +59,16 @@ objectPtr->PutProperty(value); // set property value
59
59
variable = objectPtr->GetProperty; // get property value
60
60
```
61
61
62
-
The compiler will generate the appropriate **Get***-*, **Put**-, or **PutRef***Property* call based on what alternative syntax is declared and whether the property is being read or written.
62
+
The compiler will generate the appropriate **Get***-*, **Put**-, or **PutRef**_Property_ call based on what alternative syntax is declared and whether the property is being read or written.
63
63
64
64
The **__declspec(property...)** compiler directive can only declare **get**, **put**, or **get** and **put** alternative syntax for a function. Read-only operations only have a **get** declaration; write-only operations only have a **put** declaration; operations that are both read and write have both **get** and **put** declarations.
65
65
66
-
Only two declarations are possible with this directive; however, each property may have three property functions: **Get***Property*, **Put***Property*, and **PutRef***Property*. In that case, only two forms of the property have the alternative syntax.
66
+
Only two declarations are possible with this directive; however, each property may have three property functions: **Get**_Property_, **Put**_Property_, and **PutRef**_Property_. In that case, only two forms of the property have the alternative syntax.
67
67
68
-
For example, the **Command** object **ActiveConnection** property is declared with an alternative syntax for **Get***ActiveConnection* and **PutRef***ActiveConnection*. The **PutRef**- syntax is a good choice because in practice, you will typically want to put an open **Connection** object (that is, a **Connection** object pointer) in this property. On the other hand, the **Recordset** object has **Get**-, **Put**-, and **PutRef***ActiveConnection* operations, but no alternative syntax.
68
+
For example, the **Command** object **ActiveConnection** property is declared with an alternative syntax for **Get**_ActiveConnection_ and **PutRef**_ActiveConnection_. The **PutRef**- syntax is a good choice because in practice, you will typically want to put an open **Connection** object (that is, a **Connection** object pointer) in this property. On the other hand, the **Recordset** object has **Get**-, **Put**-, and **PutRef**_ActiveConnection_ operations, but no alternative syntax.
69
69
70
70
## Collections, the GetItem Method, and the Item Property
71
-
ADO defines several collections, including **Fields**, **Parameters**, **Properties**, and **Errors**. In Visual C++, the **GetItem(***index***)** method returns a member of the collection. *Index* is a **Variant**, the value of which is either a numeric index of the member in the collection, or a string containing the name of the member.
71
+
ADO defines several collections, including **Fields**, **Parameters**, **Properties**, and **Errors**. In Visual C++, the **GetItem(**_index_**)** method returns a member of the collection. *Index* is a **Variant**, the value of which is either a numeric index of the member in the collection, or a string containing the name of the member.
72
72
73
73
The **__declspec(property...)** compiler directive declares the **Item** property as an alternative syntax to each collection's fundamental **GetItem()** method. The alternative syntax uses square brackets and looks similar to an array reference. In general, the two forms look like the following:
74
74
@@ -78,7 +78,7 @@ variable = objectPtr->GetProperty; // get property value
78
78
collectionPtr->Item[index];
79
79
```
80
80
81
-
For example, assign a value to a field of a **Recordset** object, named ***rs***, derived from the **authors** table of the **pubs** database. Use the **Item()** property to access the third **Field** of the **Recordset** object **Fields** collection (collections are indexed from zero; assume the third field is named ***au_fname***). Then call the **Value()** method on the **Field** object to assign a string value.
81
+
For example, assign a value to a field of a **Recordset** object, named **_rs_**, derived from the **authors** table of the **pubs** database. Use the **Item()** property to access the third **Field** of the **Recordset** object **Fields** collection (collections are indexed from zero; assume the third field is named **_au_fname_**). Then call the **Value()** method on the **Field** object to assign a string value.
82
82
83
83
This can be expressed in Visual Basic in the following four ways (the last two forms are unique to Visual Basic; other languages do not have equivalents):
84
84
@@ -427,7 +427,7 @@ cn.Close
427
427
End Sub
428
428
```
429
429
430
-
This Visual C++ example demonstrates the **Get**/**Put**/**PutRef***Property*.
430
+
This Visual C++ example demonstrates the **Get**/**Put**/**PutRef**_Property_.
431
431
432
432
#### Notes
433
433
The following notes correspond to commented sections in the code example.
Copy file name to clipboardExpand all lines: docs/ado/guide/data/required-providers-for-data-shaping.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Data shaping typically requires two providers. The service provider, [Data Shapi
20
20
21
21
The name of the service provider (MSDataShape) can be specified as the value of the [Connection](../../../ado/reference/ado-api/connection-object-ado.md) object [Provider](../../../ado/reference/ado-api/provider-property-ado.md) property or the connection string keyword "Provider=MSDataShape;".
22
22
23
-
The name of the data provider can be specified as the value of the **Data Provider** dynamic property, which is added to the **Connection** object [Properties](../../../ado/reference/ado-api/properties-collection-ado.md) collection by the Data Shaping Service for OLE DB, or the connection string keyword "**Data Provider=***provider*".
23
+
The name of the data provider can be specified as the value of the **Data Provider** dynamic property, which is added to the **Connection** object [Properties](../../../ado/reference/ado-api/properties-collection-ado.md) collection by the Data Shaping Service for OLE DB, or the connection string keyword "**Data Provider=**_provider_".
24
24
25
25
No data provider is required if the **Recordset** is not populated (for example, as in a fabricated **Recordset** where columns are created with the NEW keyword). In that case, specify "**Data Provider=**none;".
Copy file name to clipboardExpand all lines: docs/ado/guide/data/types-of-events.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,15 @@ manager: craigg
22
22
There are two basic types of events. "Will Events," which are called before an operation starts, usually include "Will" in their names - for example, **WillChangeRecordset** or **WillConnect**. Events that are called after an event has been completed usually include "Complete" in their names - for example, **RecordChangeComplete** or **ConnectComplete**. Exceptions exist - such as **InfoMessage** - but these occur after the associated operation has completed.
23
23
24
24
## Will Events
25
-
Event handlers called before the operation starts offer you the opportunity to examine or modify the operation parameters, and then either cancel the operation or allow it to complete. These event-handler routines usually have names of the form **Will*Event***.
25
+
Event handlers called before the operation starts offer you the opportunity to examine or modify the operation parameters, and then either cancel the operation or allow it to complete. These event-handler routines usually have names of the form **Will_Event_**.
26
26
27
27
## Complete Events
28
-
Event handlers called after an operation completes can notify your application that an operation has concluded. Such an event handler is also notified when a Will event handler cancels a pending operation. These event-handler routines usually have names of the form ***Event*Complete**.
28
+
Event handlers called after an operation completes can notify your application that an operation has concluded. Such an event handler is also notified when a Will event handler cancels a pending operation. These event-handler routines usually have names of the form **_Event_Complete**.
29
29
30
30
Will and Complete events are typically used in pairs.
31
31
32
32
## Other Events
33
-
The other event handlers - that is, events whose names are not of the form **Will*Event*** or ***Event*Complete** - are called only after an operation completes. These events are **Disconnect**, **EndOfRecordset**, and **InfoMessage**.
33
+
The other event handlers - that is, events whose names are not of the form **Will*Event**_ or _**Event*Complete** - are called only after an operation completes. These events are **Disconnect**, **EndOfRecordset**, and **InfoMessage**.
Copy file name to clipboardExpand all lines: docs/ado/guide/remote-data-service/understanding-the-customization-file.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ identifier
49
49
50
50
A particular section is used under the following circumstances:
51
51
52
-
- A **connect** section is used if the value part of the client connect string keyword, "**Data Source=***value*", matches a **connect** section identifier*.*
52
+
- A **connect** section is used if the value part of the client connect string keyword, "**Data Source=**_value_", matches a **connect** section identifier*.*
53
53
54
54
- An **sql** section is used if the client command string contains a string that matches an **sql** section identifier.
**WillExecute** allows you to examine and modify the pending execution parameters. This event may return a request that the pending command be canceled.
60
60
61
61
> [!NOTE]
62
-
> If the original source for a **Command** is a stream specified by the [CommandStream Property (ADO)](../../../ado/reference/ado-api/commandstream-property-ado.md) property, assigning a new string to the **WillExecute***Source* parameter changes the source of the **Command**. The **CommandStream** property will be cleared and the [CommandText Property (ADO)](../../../ado/reference/ado-api/commandtext-property-ado.md) property will be updated with the new source. The original stream specified by **CommandStream** will be released and cannot be accessed.
62
+
> If the original source for a **Command** is a stream specified by the [CommandStream Property (ADO)](../../../ado/reference/ado-api/commandstream-property-ado.md) property, assigning a new string to the **WillExecute**_Source_ parameter changes the source of the **Command**. The **CommandStream** property will be cleared and the [CommandText Property (ADO)](../../../ado/reference/ado-api/commandtext-property-ado.md) property will be updated with the new source. The original stream specified by **CommandStream** will be released and cannot be accessed.
63
63
64
64
If the dialect of the new source string differs from the original setting of the [Dialect Property](../../../ado/reference/ado-api/dialect-property.md) property (which corresponded to the **CommandStream**), the correct dialect must be specified by setting the **Dialect** property of the command object referenced by *pCommand*.
Copy file name to clipboardExpand all lines: docs/database-engine/availability-groups/windows/use-the-fail-over-availability-group-wizard-sql-server-management-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ manager: craigg
54
54
55
55
4. The information presented by the **Introduction** page depends on whether any secondary replica is eligible for a planned failover. If this page says, "**Perform a planned failover for this availability group**", you can failover the availability group without data loss.
56
56
57
-
5. On the **Select New Primary Replica** page, you can view the status of the current primary replica and of the WSFC quorum, before you choose the secondary replica that will become the new primary replica (the *failover target*). For a planned manual failover, be sure to select a secondary replica whose **Failover Readiness** value is "**No data loss**". For a forced failover, for all the possible failover targets, this value will be "**Data loss, Warnings(***#***)**", where *#* indicates the number of warnings that exist for a given secondary replica. To view the warnings for a given failover target, click its "Failover Readiness" value.
57
+
5. On the **Select New Primary Replica** page, you can view the status of the current primary replica and of the WSFC quorum, before you choose the secondary replica that will become the new primary replica (the *failover target*). For a planned manual failover, be sure to select a secondary replica whose **Failover Readiness** value is "**No data loss**". For a forced failover, for all the possible failover targets, this value will be "**Data loss, Warnings(**_#_**)**", where *#* indicates the number of warnings that exist for a given secondary replica. To view the warnings for a given failover target, click its "Failover Readiness" value.
58
58
59
59
For more information, see [Select New Primary Replica page](#SelectNewPrimaryReplica), later in this topic.
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/view-or-change-server-properties-sql-server.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,9 +149,9 @@ GO
149
149
150
150
2. In**SQL Server Configuration Manager**, click **SQL Server Services**.
151
151
152
-
3. In the details pane, right-click **SQL Server (\<***instancename***>)**, and then click **Properties**.
152
+
3. In the details pane, right-click **SQL Server (\<**_instancename_**>)**, and then click **Properties**.
153
153
154
-
4. In the **SQL Server (\<***instancename***>) Properties** dialog box, change the server properties on the **Service** tab or the **Advanced** tab, and then click **OK**.
154
+
4. In the **SQL Server (\<**_instancename_**>) Properties** dialog box, change the server properties on the **Service** tab or the **Advanced** tab, and then click **OK**.
155
155
156
156
## <a name="FollowUp"></a> Follow Up: After you change server properties
157
157
For some properties, the server might have to be restarted before the change can take effect.
Copy file name to clipboardExpand all lines: docs/database-engine/database-mirroring/troubleshoot-database-mirroring-configuration-sql-server.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ manager: craigg
33
33
|[Network access](#NetworkAccess)|Documents the requirement that each the server instance be able to access the ports of the other server instance or instances over TCP.|
34
34
|[Mirror database preparation](#MirrorDbPrep)|Summarizes the requirements for preparing the mirror database to enable mirroring to start.|
35
35
|[Failed create-file operation](#FailedCreateFileOp)|Describes how to respond to a failed create-file operation.|
36
-
|[Starting mirroring by Using Transact-SQL](#StartDbm)|Describes the required order for ALTER DATABASE *database_name* SET PARTNER **='***partner_server***'** statements.|
36
+
|[Starting mirroring by Using Transact-SQL](#StartDbm)|Describes the required order for ALTER DATABASE *database_name* SET PARTNER **='**_partner_server_**'** statements.|
37
37
|[Cross-Database Transactions](#CrossDbTxns)|An automatic failover could lead to automatic and possibly incorrect resolution of in-doubt transactions. For this reason database mirroring does not support cross-database transactions.|
38
38
39
39
## <aname="Accounts"></a> Accounts
@@ -138,7 +138,7 @@ manager: craigg
138
138
For more information, see [Removing Database Mirroring (SQL Server)](../../database-engine/database-mirroring/removing-database-mirroring-sql-server.md), [Prepare a Mirror Database for Mirroring (SQL Server)](../../database-engine/database-mirroring/prepare-a-mirror-database-for-mirroring-sql-server.md), [Establish a Database Mirroring Session Using Windows Authentication (Transact-SQL)](../../database-engine/database-mirroring/database-mirroring-establish-session-windows-authentication.md), [Use Certificates for a Database Mirroring Endpoint (Transact-SQL)](../../database-engine/database-mirroring/use-certificates-for-a-database-mirroring-endpoint-transact-sql.md), or [Establish a Database Mirroring Session Using Windows Authentication (SQL Server Management Studio)](../../database-engine/database-mirroring/establish-database-mirroring-session-windows-authentication.md).
139
139
140
140
## <a name="StartDbm"></a> Starting mirroring by Using Transact-SQL
141
-
The order in which the ALTER DATABASE *database_name* SET PARTNER **='***partner_server***'** statements are issued is very important.
141
+
The order in which the ALTER DATABASE *database_name* SET PARTNER **='**_partner_server_**'** statements are issued is very important.
142
142
143
143
1. The first statement must be run on the mirror server. When this statement is issued, the mirror server does not try to contact any other server instance. Instead, the mirror server instructs its database to wait until the mirror server has been contacted by the principal server.
Copy file name to clipboardExpand all lines: docs/odbc/reference/develop-app/types-of-applications.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ manager: craigg
22
22
ODBC applications can be classified as follows:
23
23
24
24
-**Pure ODBC 2.**
25
-
***x* Application** A 32-bit application that:
25
+
**_x_ Application** A 32-bit application that:
26
26
27
27
- Calls only ODBC 2.*x* functions (including the ODBC 1.0 function **SQLSetParam**). These include ODBC 1.*x* applications that have been ported to 32-bit.
28
28
@@ -31,10 +31,10 @@ ODBC applications can be classified as follows:
31
31
- Has not been recompiled with ODBC 3.5 headers.
32
32
33
33
-**Pure ODBC 2.**
34
-
***x* Recompiled Application** A pure ODBC 2.*x* application that has been recompiled using the ODBC 3.5 header files, by setting ODBCVER=0x0250.
34
+
**_x_ Recompiled Application** A pure ODBC 2.*x* application that has been recompiled using the ODBC 3.5 header files, by setting ODBCVER=0x0250.
35
35
36
36
-**Pure ODBC 2.**
37
-
***x* Unicode Application** A pure ODBC 2.*x* recompiled application that is Unicode-compliant and uses the SQL_WCHAR data type.
37
+
**_x_ Unicode Application** A pure ODBC 2.*x* recompiled application that is Unicode-compliant and uses the SQL_WCHAR data type.
38
38
39
39
-**Pure Open Group and ISO**-**compliant ODBC Application** A 32-bit application that:
0 commit comments