Skip to content

Commit 48cd724

Browse files
authored
Update with an example that works
The current example doesn't work. These changes make it work as intended.
1 parent 3ed9be0 commit 48cd724

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/t-sql/xml/xml-transact-sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ xml ( [ CONTENT | DOCUMENT ] xml_schema_collection )
6060
## Examples
6161

6262
```
63-
USE AdventureWorks2012;
63+
USE AdventureWorks;
6464
GO
65-
DECLARE @y xml (Sales.IndividualSurveySchemaCollection);
66-
SET @y = (SELECT TOP 1 Demographics FROM Sales.Individual);
67-
SELECT @y;
65+
DECLARE @DemographicData xml (Person.IndividualSurveySchemaCollection);
66+
SET @DemographicData = (SELECT TOP 1 Demographics FROM Person.Person);
67+
SELECT @DemographicData;
6868
GO
6969
```
7070

0 commit comments

Comments
 (0)