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/reference/ado-api/clone-method-example-vbscript.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
@@ -17,7 +17,7 @@ author: rothja
17
17
ms.author: jroth
18
18
---
19
19
# Clone Method Example (VBScript)
20
-
This example uses the [Clone](../../../ado/reference/ado-api/clone-method-ado.md) method to create copies of a [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md) and then lets the user position the record pointer of each copy independently.
20
+
This example uses the [Clone](./clone-method-ado.md) method to create copies of a [Recordset](./recordset-object-ado.md) and then lets the user position the record pointer of each copy independently.
21
21
22
22
Use the following example in an Active Server Page (ASP). This example uses the **Northwind** database distributed with Microsoft Access. Cut and paste the following code to Notepad or another text editor and save it as CloneVBS.asp. You can view the result in any client browser.
23
23
@@ -113,5 +113,5 @@ This example uses the [Clone](../../../ado/reference/ado-api/clone-method-ado.md
Copy file name to clipboardExpand all lines: docs/ado/reference/ado-api/clone-method-example-vc.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
@@ -17,7 +17,7 @@ author: rothja
17
17
ms.author: jroth
18
18
---
19
19
# Clone Method Example (VC++)
20
-
This example uses the [Clone](../../../ado/reference/ado-api/clone-method-ado.md) method to create copies of a [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md) and then lets the user position the record pointer of each copy independently.
20
+
This example uses the [Clone](./clone-method-ado.md) method to create copies of a [Recordset](./recordset-object-ado.md) and then lets the user position the record pointer of each copy independently.
Copy file name to clipboardExpand all lines: docs/ado/reference/ado-api/close-method-ado.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,41 +30,41 @@ object.Close
30
30
```
31
31
32
32
## Remarks
33
-
Use the **Close** method to close a [Connection](../../../ado/reference/ado-api/connection-object-ado.md), a [Record](../../../ado/reference/ado-api/record-object-ado.md), a [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md), or a [Stream](../../../ado/reference/ado-api/stream-object-ado.md) object to free any associated system resources. Closing an object does not remove it from memory; you can change its property settings and open it again later. To completely eliminate an object from memory, close the object and then set the object variable to *Nothing* (in Visual Basic).
33
+
Use the **Close** method to close a [Connection](./connection-object-ado.md), a [Record](./record-object-ado.md), a [Recordset](./recordset-object-ado.md), or a [Stream](./stream-object-ado.md) object to free any associated system resources. Closing an object does not remove it from memory; you can change its property settings and open it again later. To completely eliminate an object from memory, close the object and then set the object variable to *Nothing* (in Visual Basic).
34
34
35
35
## Connection
36
-
Using the **Close** method to close a **Connection** object also closes any active **Recordset** objects associated with the connection. A [Command](../../../ado/reference/ado-api/command-object-ado.md) object associated with the **Connection** object you are closing will persist, but it will no longer be associated with a **Connection** object; that is, its [ActiveConnection](../../../ado/reference/ado-api/activeconnection-property-ado.md) property will be set to **Nothing**. Also, the **Command** object's [Parameters](../../../ado/reference/ado-api/parameters-collection-ado.md) collection will be cleared of any provider-defined parameters.
36
+
Using the **Close** method to close a **Connection** object also closes any active **Recordset** objects associated with the connection. A [Command](./command-object-ado.md) object associated with the **Connection** object you are closing will persist, but it will no longer be associated with a **Connection** object; that is, its [ActiveConnection](./activeconnection-property-ado.md) property will be set to **Nothing**. Also, the **Command** object's [Parameters](./parameters-collection-ado.md) collection will be cleared of any provider-defined parameters.
37
37
38
-
You can later call the [Open](../../../ado/reference/ado-api/open-method-ado-connection.md) method to re-establish the connection to the same, or another, data source. While the **Connection** object is closed, calling any methods that require an open connection to the data source generates an error.
38
+
You can later call the [Open](./open-method-ado-connection.md) method to re-establish the connection to the same, or another, data source. While the **Connection** object is closed, calling any methods that require an open connection to the data source generates an error.
39
39
40
40
Closing a **Connection** object while there are open **Recordset** objects on the connection rolls back any pending changes in all of the **Recordset** objects. Explicitly closing a **Connection** object (calling the **Close** method) while a transaction is in progress generates an error. If a **Connection** object falls out of scope while a transaction is in progress, ADO automatically rolls back the transaction.
41
41
42
42
## Recordset, Record, Stream
43
-
Using the **Close** method to close a **Recordset**, **Record**, or **Stream** object releases the associated data and any exclusive access you may have had to the data through this particular object. You can later call the [Open](../../../ado/reference/ado-api/open-method-ado-recordset.md) method to reopen the object with the same, or modified, attributes.
43
+
Using the **Close** method to close a **Recordset**, **Record**, or **Stream** object releases the associated data and any exclusive access you may have had to the data through this particular object. You can later call the [Open](./open-method-ado-recordset.md) method to reopen the object with the same, or modified, attributes.
44
44
45
45
While a **Recordset** object is closed, calling any methods that require a live cursor generates an error.
46
46
47
-
If an edit is in progress while in immediate update mode, calling the **Close** method generates an error; instead, call the [Update](../../../ado/reference/ado-api/update-method.md) or [CancelUpdate](../../../ado/reference/ado-api/cancelupdate-method-ado.md) method first. If you close the **Recordset** object while in batch update mode, all changes since the last [UpdateBatch](../../../ado/reference/ado-api/updatebatch-method.md) call are lost.
47
+
If an edit is in progress while in immediate update mode, calling the **Close** method generates an error; instead, call the [Update](./update-method.md) or [CancelUpdate](./cancelupdate-method-ado.md) method first. If you close the **Recordset** object while in batch update mode, all changes since the last [UpdateBatch](./updatebatch-method.md) call are lost.
48
48
49
-
If you use the [Clone](../../../ado/reference/ado-api/clone-method-ado.md) method to create copies of an open **Recordset** object, closing the original or a clone does not affect any of the other copies.
49
+
If you use the [Clone](./clone-method-ado.md) method to create copies of an open **Recordset** object, closing the original or a clone does not affect any of the other copies.
0 commit comments