Edit arbitrary database values with the SQL Server Management Studio GUI - ssms

In MySQL Workbench, as long as you can display a row, you can edit it by typing in the cells.
Is there any way to do that with SQL Server Management Studio? SSMS seems limited to providing a GUI editor for the top 200 entries.

You can edit the query used to display the rows to edit by opening the "Query Designer" menu and selecting "Pane"->"SQL".
Once you've made your changes open the "Query Designer" menu and click "Execute SQL".
(Note these commands are also available on the toolbar and have hotkeys associated with them by default).

Related

Refresh text editor SQL Server Management Studio v17.9

Typically I develop SQL expressions using a fully featured text editor external to SSMS v17. I then await the SSMS Editor to reload the text before execution of the expression. Often the reload take several seconds, sometimes a minute or more.
While one might copy and paste from editor to editor, is there a manual means of forcing the SSMS text editor to update? (Something akin to the F5 key in a browser window?)

SQL Server 2016 Management Studio doesn't keep line numbers

I can't get SQL Server 2016 Management Studio to remember that I want line numbers. Every time I open an instance, I have to turn line numbers on, but when I open a new instance, they've been turned off again.
Does anyone know how to make them stay on permanently or whether this is a bug within SSMS?
Even though the answer to this question was already given, i was looking for how to put line numbers on the editor and the answer was not given, so here it is!
Step1: Go to Tools > Options.
Step2: In the Options dialog box navigate to Text Editor >
Transact-SQL > General.
Step 3: Check “Line Numbers” and click on “OK” Now, when a query
window is opened Line Numbers will be displayed

Remain in "SQL Mode" in Access?

Right now, if I want to enter SQL queries in Microsoft Access, I do this:
Click the Create tab, then Query design button, then close the popup. Click the SQL button. Type my query. Click Run.
For my next query, I have to do that all over again. How can I stay in an SQL environment in Access?
Newer versions of Access still support many of the same keyboard shortcuts for the old Menu commands (in addition to the newer, longer keyboard shortcuts for the Ribbon interface). So, in the Access 2010 query designer I still use:
Altv, d which was View > Design View
Altv, s which was View > DataSheet View
Altv, q which was View > SQL View
To run an action query, this old keyboard shortcut still works, too:
Altq, r which was Query > Run
Ah, it turns out it's one of the view modes (first button in the Home tab). Because none of my functions required a table, I hadn't bothered to choose a table to work in, which means the View menu was grayed out.

Query Designer toolbar grayed out?

I am using the Query Designer in SQL Server Management Studio (on an Express 2008 database). I created a new Query, chose Design Query in Editor from the Query toolbar and was presented with a cool graphical query designer (a bit like the one in ACCESS). I selected the fields, which generated the T-SQL, and executed the query and thought awesome! However, I can then only modify the T-SQL manually, I cannot get back into the graphical designer as all the Query Designer toolbar options are grayed out. Am I missing something?
Highlight the query text, then right-click, and select "Design Query in Editor...".

SQL Management Studio 2008 - Server name on Query Editor tabs...where did they go?

I recently upgraded to SQL Management Studio 2008 (full not express, if it matters).
In 2005, when I was in the Query Editor, each tab (with an unsaved query) would have the servername-instance-query name or something like that, but all I cared about was seeing the server name there so I knew which server I was running my query on.
In 2008 it appears that they've decided to change the tab title to query name-servername, and the result of this is I can't see what server I'm working on without hovering over the tab and looking at the tooltip thing that pops up, which really slows me down. So currently all my tabs are titled something like "SQLQuery5.sql..." which is useless to me.
How can I get the servername back to the front the tab title?
It can be turned off/on in SSMS 2005, so possibly in 2008 you have it switched off.
Go to Tools -> Options -> Text Editor -> Editor Tab and Status Bar. Under "Tab Text" in the right hand panel, make sure "Include server name" is set to True.
If you have the SQL Editor menu checked up top then there is a drop down that tells you exactly what database you're in for the currently selected tab.
You should be running any queries in the active window? At the bottom there is a status bar with the server name and database name in it. That way you don't have to clutter the limited tab space with all that data.