sql - How do I change the default SELECT TOP 1000 query to use * instead of each field? -


in ssms 2008 r2, have default select top 1000 , edit top 200 queries right click menu. i've seen can change # of rows returns in options.

what i'm after is, can tell select * instead of expanding , including every field?

it's not performance issue or anything, annoyance when querying tables more 5 fields, i'd select *.

for example, if have table following fields:

  • firstname
  • lastname
  • birthday
  • city
  • state
  • zip

when right click on persons table , choose "select top 1000 rows" menu, i'd query run

select top 1000 *  people 

and not

select top 1000 firstname, lastname, birthday, city, state, zip people 

edit suspect there isn't answer this, thought i'd see if figured out.

i don't believe there way of customising native ssms functionality. can use ssms tools pack addin "custom scripts" type of thing.

screenshot

(though honest selecting columns , typing * might quick navigating menu)

screenshot 2


Comments

Popular posts from this blog

c# - Is it possible to remove an existing registration from Autofac container builder? -

asp.net - Error '2035' ('MQRC_NOT_AUTHORIZED') While Connecting to MQ -