August 5, 2014 at 10:16 pm
Comments posted to this topic are about the item What was that field name?
August 5, 2014 at 10:55 pm
Nice one.
When I observed this feature, I was happy 🙂
Thanks
August 6, 2014 at 12:00 am
Learnt something new today 🙂
August 6, 2014 at 12:27 am
Easy, another fast way (but maybe not the fastest), just highlight the table then press Alt + F1 will give you all table structure, definition, columns names, data types, Identity fields (if any) and lot more.
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
August 6, 2014 at 12:31 am
Nice question. I use SQLPrompt by Redgate so I immediately get all the column names and data types through the IntelliSense without even doing anything 😎 :w00t:
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
August 6, 2014 at 12:42 am
Koen Verbeeck (8/6/2014)
Nice question. I use SQLPrompt by Redgate so I immediately get all the column names and data types through the IntelliSense without even doing anything 😎 :w00t:
Same here 😛
Thanks
August 6, 2014 at 1:03 am
Nice one , thank you for the question
August 6, 2014 at 1:06 am
I noticed it for columns, tables and functions, but I happily surprised for star!
Good!
😀
August 6, 2014 at 1:17 am
Hany Helmy (8/6/2014)
Easy, another fast way (but maybe not the fastest), just highlight the table then press Alt + F1 will give you all table structure, definition, columns names, data types, Identity fields (if any) and lot more.
My ususal practice is alt + F1 (I though this option will be there in the list of answers but no ;-))
August 6, 2014 at 1:37 am
A very nice question! This helps a lot!
😀
August 6, 2014 at 1:47 am
Wonderfull!!!
It, also, works with subquery:
SELECT * FROM (
SELECT MAX(object_id) AS ID,MAX(name) AS NAME FROM sys.objects
) AS o
But in this case it states a wrong type for column NAME(int,null)
August 6, 2014 at 1:55 am
You could also use a simple table alias to choose from the list of columns 🙂
Select *
FROM dbo.Customers c
WHERE c.
August 6, 2014 at 2:10 am
I knew what the answer was going to be, so got it right.
But this method will only tell you if a column is (for instance) varchar. It doesn't tell you its precision. To see that the quickest way is to highlight the table name and press Alt-F1. Of the options given, Object Explorer is the only one that includes this information.
August 6, 2014 at 2:39 am
In typical SQL style actually the answer is "it depends" - on how you work.
Hovering the mouse may be quick but not that helpful since as soon as you start typing the list tooltip disappears so if you want more than one from a table with quite a few fields and you really can't remember then that blows that out the water.
I have widescreen monitors (doesn't everyone nowadays?) at 1920 odd res so I have object explorer permanently pinned open. Further when I am working with a particular database (I'm a software dev) I expand Management Studio and typically have either tables or the programmability sections (or both) expanded so for me at wors it is a little bit of a scroll and a couple of clicks to get all the required information (including precision as someone else mentioned).
August 6, 2014 at 4:01 am
This was removed by the editor as SPAM
Viewing 15 posts - 1 through 15 (of 53 total)
You must be logged in to reply to this topic. Login to reply