Remain in "SQL Mode" in Access? - sql

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.

Related

SSMS SQL editor tool bar grayed out

I posted this earlier and obviously the person who marked it as duplicate did not read the post because the answer told me to do exactly what I said I was doing that does not work.
New install of SQL Server 2017 Express with existing databases. Login as sa or as a database owner. When you right click a table - Edit top 200 rows - open the SQL panel. The entire SQL editor toolbar is grayed out. I can copy the same SQL expression into a new query and the bar is active. I can execute the expression with Ctrl R when the bar is grayed out.
I have looked at dozens of posts but have not found the solution.
FYI Yes, I can write the SQL statement to update the table but it is faster, easier and safer to update it directly when you only have to change one number in a single row/column and I can update the data even with the tool bar grayed out.
Thank you to the one who has the solution.
I had the same problem. Tried many different things. Toolbar remained greyed out. Then looked at the shortcut for Execute by hovering over it and saw it was Alt X, ran the query using Alt X, the toolbar then became active, have no idea why. Note: Now the toolbar is active, the shortcut to Execute the query is now F5. (Alt X also still works).

Keyboard shortcut to hide results panel in MySQL Workbench

In MS Query Analyzer you can press Ctrl+R to hide the results section, making your query window bigger and saving on scrolling up and down
Is there a keyboard shortcut in MySQL Workbench v6.2 to do this? I can't find it
I will share my own trick (not so nice): I mark one new line (or some spaces), after that, I "execute" that empty query with shift-ctrl-enter so the empty query generates an empty resultset and the grid is then hidden.
No, there is no shortcut to hide the result set for an sql editor. You only can use the close button in the tab title or run a query that doesn't return a result set.
There is a close button Beneath the result grid, simply click to close. I am using workbench version 8.0. the following image shows it:-

Ctrl R not working in SQL Server 2012

In SQL Server 2012, Ctrl+R not working. Any other shortcuts for that.
Any setting changes available or is there any alternative?
Go to Tools > Options > Environment > Keyboard / General.
In the middle box,
Select Window.ShowResultsPane
Change the Use new shortcut dropdown to SQL Query Editor (Global did not work for me)
Put your cursor in the "Press shortcut keys:" box and hit CTRL + R. You should see the following:
Click Assign and then OK.
Unlike some other changes that still require an SSMS restart to take effect, the change takes effect immediately, and CTRL + R should start working again.
I blogged about this three years ago.
Another way is to select Default and hit the Reset button. This worked for me.
I'm using Microsoft SQL Server Management Studio version 11.0.3128.0 (SSMS 2012).
Started having the above issue for no aparent reason.
Solved like this: click "Tools -> Options". On the options window, open Environment -> Keyboard on the tree. Then, on the right, press the "Reset" button.
Worked for me.
I am using Microsoft SQL Server Management Studio version 12.0.4100.1 (SSMS 2014).
I had the same issue and resolved it by following below steps -
Click "Tools -> Options".
On the Options window, expand Environment -> Keyboard -> Keyboard.
Then, in the right side panel, press the "Reset" button.
Go to the Keyboard Settings as mentioned by #aaron and then change the keyboard mapping scheme (first drop down). This gave me back the shortcuts that I am used to like Ctrl+R and Ctrl+E
I am troubled with this after I installed Visual Studio 2015. When Ctrl+N is pressed in SSMS, instead of opening a query window, SSMS showed up selection page of the VS files. A Reset as posted above revert to SSMS shortcuts.
Thanks for the posts.
--In 'thoughts'...

Edit arbitrary database values with the SQL Server Management Studio GUI

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).

Tab Order in Microsoft Visual Basic 2010 Express

I've referred to this MSDN ARTICLE
I'm using Microsoft Visual Basic 2010 Express - is there a quick way of seeing the tab order using this application?
There doesn't seem to be a Tab Order option in the View menu. Is this a feature left out of the express edition or am I looking in the wrong place?
Right click on the menu bar and choose customize, which is present at
the last menu item.
Click the commands tab and click rearrange button on it.
You'll see a phrase saying: Choose a menu or toolbar to arrange below
that you can see a radio button with tool bar as its text. select it.
Click Add command, from categories choose view, from commands choose
tab order then click OK. Well, they're arranged alphabetically.
Now click close and check the tab order button in the view toolbar
and you'll find it.
I hope this helps.
Make sure you have you view selected in your main window and not in your solution browser. This should give you the tab order option.
If still not present it could be it's not included in the Express edition.