Skip to content

Commit 910e8e6

Browse files
authored
Merge pull request MicrosoftDocs#3195 from msbemba/patch-140
Update Add-OdbcDsn.md
2 parents 8d36040 + b23d9b8 commit 910e8e6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docset/winserver2012-ps/wdac/Add-OdbcDsn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ PS C:\> $newDsn = Add-OdbcDsn MyPayroll -DriverName "SQL Server Native Client 10
5151
This command is equivalent to example 2, but it saves the newly-created System DSN object into a PowerShell variable for future use.
5252
By default, this command does not return the driver object if the "PassThru" parameter is not specified:
5353

54-
### 4:
54+
### Example 4: Migrates DSNs to a newer version of a driver
5555
```
56-
C:\PS> $dsnArr = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
57-
C:\PS> foreach ($dsn in $dsnArr) {
56+
C:\PS> $DsnArray = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
57+
C:\PS> foreach ($dsn in $DsnArray) {
5858
Remove-OdbcDsn $dsn
5959
# You can change the property array as well,
6060
# if DSN attributes have been changed in the new driver version

docset/winserver2012r2-ps/wdac/Add-OdbcDsn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Without **PassThru**, the cmdlet does not return anything.
5656

5757
### Example 4: Migrates DSNs to a newer version of a driver
5858
```
59-
PS C:\> $dsnArr = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
60-
PS C:\> foreach ($dsn in $dsnArr) {
59+
PS C:\> $DsnArray = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
60+
PS C:\> foreach ($dsn in $DsnArray) {
6161
Remove-OdbcDsn -InputObject $dsn
6262
# You can change the property array as well,
6363
# if DSN attributes have been changed in the new driver version

docset/winserver2016-ps/wdac/Add-OdbcDsn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Without *PassThru*, the cmdlet does not return anything.
5858
### Example 4: Migrates DSNs to a newer version of a driver
5959
```
6060
PS C:\> $DsnArray = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
61-
PS C:\> ForEach ($Dsn in $ DsnArr) {
61+
PS C:\> ForEach ($Dsn in $DsnArray) {
6262
Remove-OdbcDsn -InputObject $Dsn
6363
# You can change the property array as well,
6464
# if DSN attributes have been changed in the new driver version

docset/winserver2019-ps/wdac/Add-OdbcDsn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Without *PassThru*, the cmdlet does not return anything.
5858
### Example 4: Migrates DSNs to a newer version of a driver
5959
```
6060
PS C:\> $DsnArray = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
61-
PS C:\> ForEach ($Dsn in $ DsnArr) {
61+
PS C:\> ForEach ($Dsn in $DsnArray) {
6262
Remove-OdbcDsn -InputObject $Dsn
6363
# You can change the property array as well,
6464
# if DSN attributes have been changed in the new driver version

docset/winserver2022-ps/wdac/Add-OdbcDsn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Without *PassThru*, the cmdlet does not return anything.
5858
### Example 4: Migrates DSNs to a newer version of a driver
5959
```
6060
PS C:\> $DsnArray = Get-OdbcDsn -DriverName 'SQL Server Native Client 10.0'
61-
PS C:\> ForEach ($Dsn in $ DsnArr) {
61+
PS C:\> ForEach ($Dsn in $ DsnArray) {
6262
Remove-OdbcDsn -InputObject $Dsn
6363
# You can change the property array as well,
6464
# if DSN attributes have been changed in the new driver version

0 commit comments

Comments
 (0)