{"id":6227,"date":"2025-11-24T09:00:36","date_gmt":"2025-11-24T17:00:36","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sql\/?p=6227"},"modified":"2025-11-24T09:15:38","modified_gmt":"2025-11-24T17:15:38","slug":"vscode-mssql-edit-data","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sql\/vscode-mssql-edit-data\/","title":{"rendered":"MSSQL Extension for VS Code: Introducing Edit Data (Public Preview)"},"content":{"rendered":"<h1 data-start=\"394\" data-end=\"404\">Overview<\/h1>\n<p data-start=\"406\" data-end=\"651\">Working with table data is an essential part of database development \u2014 whether you\u2019re validating behavior, debugging issues, or quickly seeding data. But switching between tools or writing repetitive T-SQL statements can slow down your workflow.<\/p>\n<p data-start=\"653\" data-end=\"849\">We are excited to announce the <strong data-start=\"684\" data-end=\"715\">Public Preview of Edit Data<\/strong> in the MSSQL extension for Visual Studio Code \u2014 a modern, interactive way to browse and modify table data directly within the editor. Edit Data (Preview) brings a familiar, spreadsheet-like experience, combining inline editing, validation, pagination, and real-time script generation into a fast and intuitive workflow tailored for developers.<\/p>\n<p data-start=\"653\" data-end=\"849\"><div class=\"alert alert-info\"><p class=\"alert-divider\"><i class=\"fabric-icon fabric-icon--Info\"><\/i><strong>Edit Data is in Public Preview.<\/strong><\/p>We are actively adding more features, improving usability, and expanding capabilities. Your feedback is extremely important \u2014 please tell us what works, what doesn\u2019t, and what you\u2019d like us to improve.<\/div><\/p>\n<h1 data-start=\"1975\" data-end=\"2024\">How to get started: Enable Experimental Features (Required)<\/h1>\n<p data-start=\"2026\" data-end=\"2125\">To use Edit Data (Preview), you must enable the experimental features\u00a0setting in the MSSQL extension.<\/p>\n<ol data-start=\"2127\" data-end=\"2269\">\n<li data-start=\"2127\" data-end=\"2160\">\n<p data-start=\"2130\" data-end=\"2160\">Open <strong data-start=\"2135\" data-end=\"2147\">Settings<\/strong> in VS Code<\/p>\n<\/li>\n<li data-start=\"2161\" data-end=\"2205\">\n<p data-start=\"2164\" data-end=\"2205\">Search for <strong data-start=\"2175\" data-end=\"2203\">\u201cMSSQL: Enable Experimental Features\u201d<\/strong><\/p>\n<\/li>\n<li data-start=\"2206\" data-end=\"2237\">\n<p data-start=\"2209\" data-end=\"2237\">Check the box to enable it<\/p>\n<\/li>\n<li data-start=\"2238\" data-end=\"2269\">\n<p data-start=\"2241\" data-end=\"2269\">Reload VS Code if prompted<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"2271\" data-end=\"2333\"><div class=\"alert alert-info\"><p class=\"alert-divider\"><i class=\"fabric-icon fabric-icon--Info\"><\/i><strong>Edit Data is only available in MSSQL extension v1.37 or later.<\/strong><\/p>If you do not see the option, update your extension first.<\/div><\/p>\n<p data-start=\"2271\" data-end=\"2333\"><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features.webp\"><img decoding=\"async\" class=\"alignnone wp-image-6216\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features.webp\" alt=\"enable experimental features screenshot\" width=\"1017\" height=\"217\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features.webp 2022w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features-300x64.webp 300w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features-1024x218.webp 1024w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features-768x164.webp 768w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/enable-experimental-features-1536x327.webp 1536w\" sizes=\"(max-width: 1017px) 100vw, 1017px\" \/><\/a><\/p>\n<h1 data-start=\"2561\" data-end=\"2577\">Open Edit Data<\/h1>\n<p data-start=\"2579\" data-end=\"2614\">To launch the Edit Data experience:<\/p>\n<ol data-start=\"2616\" data-end=\"2751\">\n<li data-start=\"2616\" data-end=\"2706\">\n<p data-start=\"2619\" data-end=\"2706\"><strong data-start=\"2619\" data-end=\"2644\">Right-click any table<\/strong> in the Object Explorer and select <strong data-start=\"2679\" data-end=\"2704\">\u201cEdit Data (Preview)\u201d<\/strong><\/p>\n<\/li>\n<li data-start=\"2707\" data-end=\"2751\">\n<p data-start=\"2710\" data-end=\"2751\">Or simply <strong data-start=\"2720\" data-end=\"2751\">double-click the table name<\/strong><\/p>\n<\/li>\n<\/ol>\n<p data-start=\"2753\" data-end=\"2821\">This opens a new editor tab containing the data grid for that table.<\/p>\n<p data-start=\"2889\" data-end=\"2999\"><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/open-edit-data.gif\"><img decoding=\"async\" class=\"alignnone wp-image-6243\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/open-edit-data.gif\" alt=\"open edit data image\" width=\"1033\" height=\"581\" \/><\/a><\/p>\n<h1 data-start=\"3006\" data-end=\"3034\">Browse and Edit Table Data<\/h1>\n<ul>\n<li data-start=\"3036\" data-end=\"3056\"><strong>Inline Editing<\/strong>: Double-click any cell and start typing to update its value.<\/li>\n<li data-start=\"3282\" data-end=\"3305\"><strong>Add &amp; Delete Rows:<\/strong> Use the toolbar to insert new rows or right-click to delete existing ones. Edits appear as <strong data-start=\"3382\" data-end=\"3401\">pending changes<\/strong> until you save.<\/li>\n<li data-start=\"3419\" data-end=\"3437\"><strong>Revert Edits:<\/strong> Right-click a row or cell to <strong data-start=\"3467\" data-end=\"3481\">Revert Row<\/strong> or <strong data-start=\"3485\" data-end=\"3500\">Revert Cell<\/strong>, restoring its last saved value.<\/li>\n<\/ul>\n<p>Once you edit a cell, your changes are validated immediately \u2014 even before saving. Edit Data (Preview) checks for invalid data types, unique or primary key violations, NULL values in non-nullable columns, and more. If an issue is detected, an error dialog appears to help you understand and resolve the problem.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/edit-table-data-1.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6251\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/edit-table-data-1.gif\" alt=\"edit table data image\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<h1 data-start=\"3979\" data-end=\"4013\">View Changes in Show Script Pane<\/h1>\n<p data-start=\"4015\" data-end=\"4171\">Select <strong data-start=\"4022\" data-end=\"4037\">Show Script<\/strong> in the toolbar to open a read-only pane displaying the DML generated by your edits \u2014 including INSERT, UPDATE, and DELETE statements.<\/p>\n<p data-start=\"4015\" data-end=\"4171\"><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/show-script.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6253\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/show-script.gif\" alt=\"show script image\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p data-start=\"4231\" data-end=\"4341\">The script updates automatically as you modify or revert data.<\/p>\n<h1 data-start=\"4348\" data-end=\"4373\">Save or Discard Changes<\/h1>\n<p data-start=\"4375\" data-end=\"4540\">When ready, choose <strong data-start=\"4394\" data-end=\"4410\">Save Changes<\/strong> to commit your updates.\n<br data-start=\"4434\" data-end=\"4437\" \/><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/Screenshot-2025-11-16-170452.webp\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6252\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/Screenshot-2025-11-16-170452.webp\" alt=\"save changes image\" width=\"819\" height=\"303\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/Screenshot-2025-11-16-170452.webp 819w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/Screenshot-2025-11-16-170452-300x111.webp 300w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/Screenshot-2025-11-16-170452-768x284.webp 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/a><\/p>\n<h1 data-start=\"4660\" data-end=\"4689\">Pagination and Row Fetching<\/h1>\n<p data-start=\"4691\" data-end=\"4757\">Edit Data is designed for smooth navigation across large datasets <strong style=\"font-size: 16px\" data-start=\"5454\" data-end=\"5595\">\u2014<\/strong>\u00a0modify <strong data-start=\"4797\" data-end=\"4820\">Total rows to fetch, <\/strong>adjust <strong data-start=\"4768\" data-end=\"4785\">Rows per page, <\/strong>navigate between pages <strong style=\"font-size: 16px\" data-start=\"5454\" data-end=\"5595\">\u2014 <\/strong>allowing you to locate records quickly.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/pagination.gif\"><img decoding=\"async\" class=\"size-full wp-image-6245\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/11\/pagination.gif\" alt=\"pagination image\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<h1 data-start=\"5915\" data-end=\"5927\">Next Steps<\/h1>\n<ul>\n<li>Install the MSSQL extension for Visual Studio Code if you haven\u2019t already: <a href=\"https:\/\/learn.microsoft.com\/en-us\/sql\/tools\/visual-studio-code-extensions\/mssql\/mssql-extension-visual-studio-code?view=sql-server-ver16#how-to-install-the-extension\">Learn how<\/a><\/li>\n<li>Watch the demo video on YouTube: <a href=\"https:\/\/www.youtube.com\/watch?v=3pZO43Ddphg\">Watch now<\/a><\/li>\n<li>Report Bugs: <a href=\"https:\/\/github.com\/microsoft\/vscode-mssql\/issues\/new?template=1-mssql-bug-report.yml\">Open an issue<\/a><\/li>\n<li>Submit Feature Requests: <a href=\"https:\/\/github.com\/microsoft\/vscode-mssql\/issues\/new?template=2-mssql-feature-request.yml\">Suggest an feature<\/a><\/li>\n<li>Connect and discuss with other developers: <a href=\"https:\/\/github.com\/microsoft\/vscode-mssql\/discussions\">Join the discussion<\/a><\/li>\n<\/ul>\n<p data-start=\"6224\" data-end=\"6328\" data-is-last-node=\"\" data-is-only-node=\"\">Edit Data is still in Public Preview \u2014 and we are actively adding more capabilities, refining interactions, and enhancing performance. Your feedback right now is critical and directly shapes what we build next. Please share your thoughts \u2014 every piece of feedback helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Working with table data is an essential part of database development \u2014 whether you\u2019re validating behavior, debugging issues, or quickly seeding data. But switching between tools or writing repetitive T-SQL statements can slow down your workflow. We are excited to announce the Public Preview of Edit Data in the MSSQL extension for Visual Studio [&hellip;]<\/p>\n","protected":false},"author":187531,"featured_media":6247,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,533,625],"tags":[682],"class_list":["post-6227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-sql","category-visual-studio-code","category-vs-code","tag-vscode-mssql"],"acf":[],"blog_post_summary":"<p>Overview Working with table data is an essential part of database development \u2014 whether you\u2019re validating behavior, debugging issues, or quickly seeding data. But switching between tools or writing repetitive T-SQL statements can slow down your workflow. We are excited to announce the Public Preview of Edit Data in the MSSQL extension for Visual Studio [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts\/6227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/users\/187531"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/comments?post=6227"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts\/6227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/media\/6247"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/media?parent=6227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/categories?post=6227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/tags?post=6227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}