Skip to content

Commit 9f49472

Browse files
authored
Merge pull request #21499 from WilliamAntonRohm/issue-7373
sql-docs/issues/7373 -- update C# parentheses to square brackets
2 parents fe0dfc7 + 2f5ca4f commit 9f49472

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/relational-databases/server-management-objects-smo/create-program/using-collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ srv.Databases("AdventureWorks2012").Tables("Person", "Person").Columns("Modified
5050
Server srv;
5151
srv = new Server();
5252
//Modify a property using the Databases, Tables, and Columns collections to reference a column.
53-
srv.Databases("AdventureWorks2012").Tables("Person", "Person").Columns("LastName").Nullable = true;
53+
srv.Databases["AdventureWorks2012"].Tables["Person", "Person"].Columns["LastName"].Nullable = true;
5454
//Call the Alter method to make the change on the instance of SQL Server.
55-
srv.Databases("AdventureWorks2012").Tables("Person", "Person").Columns("LastName").Alter();
55+
srv.Databases["AdventureWorks2012"].Tables["Person", "Person"].Columns["LastName"].Alter();
5656
}
5757
```
5858

0 commit comments

Comments
 (0)