Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions docs/t-sql/lesson-3-deleting-database-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,32 @@ Use the `REVOKE` statement to remove execute permission for `Mary` on the stored

1. Use the `DROP` statement to remove permission for `Mary` to access the `TestData` database:

```sql
DROP USER Mary;
GO
```
```sql
DROP USER Mary;
GO
```


2. Use the `DROP` statement to remove permission for `Mary` to access this instance of [!INCLUDE[ssVersion2005](../includes/ssversion2005-md.md)]:

```sql
DROP LOGIN [<computer_name>\Mary];
GO
```

3. Use the `DROP` statement to remove the store procedure `pr_Names`:
```sql
DROP LOGIN [<computer_name>\Mary];
GO
```

```sql
DROP PROC pr_Names;
GO
```
3. Use the `DROP` statement to remove the store procedure `pr_Names`:

6. Use the `DROP` statement to remove the view `vw_Names`:
```sql
DROP PROC pr_Names;
GO
```

```sql
DROP VIEW vw_Names;
GO
4. Use the `DROP` statement to remove the view `vw_Names`:

```
```sql
DROP VIEW vw_Names;
GO
```

## Delete table

Expand Down