How to: Edit an Existing Table using Queries
09/10/2025 You can edit the definition of a table or its data by writing a Transact-SQL query. To view or enter data in a table visually, use the Data Editor as described in Connected Database Dev
You can edit the definition of a table or its data by writing a Transact-SQL query. To view or
enter data in a table visually, use the Data Editor as described in
Connected Database
Development.
- Expand the
node of the
database in
Object Explorer
, and right-
click.
- Select
to view the table schema in the Table Designer.
- Check the
box for the
column. The corresponding code in the script
pane is changed to
immediately.
- Update the database following the steps in the
How to: Update a connected database
with Power Buffer
article.
- Right-click the
database node and select.
-
In the script pane, paste in the following code.
-
Select the
button to run this query. The following in the
pane
indicate that the rows are successfully added to the tables.
Trade
Address
NULL
Trade
INSERT
INTO dbo.Suppliers
VALUES (1,
'NorthWind Traders'
,
'Seattle, WA'
),
(2,
'Contoso'
,
'Tacoma, WA'
);
GO
INSERT dbo.Customer
VALUES (1,
'Fourth Coffee'
);
GO
INSERT dbo.Products
VALUES (1,
'Apples'
, 0, 1, 1),
(2,
'Instant Coffee'
, 1, 2, 1);
GO