Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
SQL

Drag and Drop objects from Object Explorer to the Query Window in SQL Server

- 22.01.19 | 22.11.19 - ErcanOPAK

Are you writing a query that selects data from a table with lots of columns?  Does the select list we need to have all or almost all of these columns? Remember, that it is possible to drag and drop objects from Object Explorer to the Query Window. By dragging and dropping the “Columns” node under the table from Object Explorer to the Query Window we can paste all of the column names from that table separated by a comma as shown below:

 Drag and drop objects from Object Explorer to the Query Window

It is also possible to drag and drop columns separately and table name by dragging and dropping it to the “Query Window”. We can also do this for other objects (stored procedures, functions, users, etc.) to the query editor as well.

Related posts:

The Hidden Killer: Scalar Functions — How to Avoid Massive Slowdowns

Never Use SELECT * in Production — Here’s Why It Destroys Performance

SQL Parameter Sniffing — The REAL Fix Nobody Explains Properly

Post Views: 135

Post navigation

Change Default Value for “Select Top n” and “Edit Top n” Rows in SQL Server Studio
5 Editing Hacks for Visual Studio

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

December 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Nov    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (915)
  • Get the First and Last Word from a String or Sentence in SQL (798)
  • How to select distinct rows in a datatable in C# (772)
  • How to add default value for Entity Framework migrations for DateTime and Bool (772)
  • How to make theater mode the default for Youtube (594)
  • Add Constraint to SQL Table to ensure email contains @ (558)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (534)
  • Average of all values in a column that are not zero in SQL (505)
  • Find numbers with more than two decimal places in SQL (421)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (416)

Recent Posts

  • Visual Studio High CPU When Idle? Live Code Analysis
  • WordPress Slow Admin Panel? Heartbeat API
  • Windows 11 Micro-Stutters in Apps? Disable MPO
  • Windows 11 Laptop Slow on Battery? CPU Throttling
  • AJAX Requests Fail Randomly? CSRF Token Missing
  • JS “await” Inside forEach Is a Bug
  • HTML5 Lazy Loading Without JavaScript
  • CSS 100vh Is Broken on Mobile (Real Fix)
  • ASP.NET Core Thread Pool Starvation Explained
  • ASP.NET Core Logging Slows Your API (Yes, Really)

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (915)
  • Get the First and Last Word from a String or Sentence in SQL (798)
  • How to select distinct rows in a datatable in C# (772)
  • How to add default value for Entity Framework migrations for DateTime and Bool (772)
  • How to make theater mode the default for Youtube (594)

Recent Posts

  • Visual Studio High CPU When Idle? Live Code Analysis
  • WordPress Slow Admin Panel? Heartbeat API
  • Windows 11 Micro-Stutters in Apps? Disable MPO
  • Windows 11 Laptop Slow on Battery? CPU Throttling
  • AJAX Requests Fail Randomly? CSRF Token Missing

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2025 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com