Using DBeaverEE as i type i get intellisense for table names but if I want to alias that table (I for example) if i type I then space intellisense is kicking in and changing it to some keyword. This is pretty frustrating but i don't want to completely turn off intellisense, anyone else have this problem and figure out a solution?
I think the easiest way would be to turn off the auto-activate on typing option.
Go to Window > Preferences > General > Editors > SQL Editor > SQL Completion
Toward the top of the SQL Completion page there should be an option named "Activate on typing". Uncheck this box and the editor won't activate intellisense until you hit ctrl + space.
SQL Completion Page
Related
Is it possible to use a shortcut for the showing or hide the line numbers at the SSMS ?
I know its possible to go to the settings and to do it.
But is there really no shortcuts for it? If I see it right, I cant even sets shortcut keys keyboards setting for it.
Its would be very usefull, if available.
This link will help you to enable Line number in the SSMS query window
Click here
No, according to the current documentation there is no keyboard shortcut to control line numbers, you enable or disable from the Options dialog (Text Editor > All Languages > General).
See the official documentation
So, when you are typing your SQL query in SSMS, you will often be offered the little dropdown which will offer suggestions, like tables, columns, builtin functions, etc.
Is there a way to change an option so that it only shows columns?
No.
I think you are referring to configuring Intellisense of SSMS, and as per the details on Microsoft documentation, we have limited options to configure and unfortunatly I don't see an option to restrict only columns names in the drop-down.
To modify Transact-SQL IntelliSense options
On the Tools menu, click Options.
Expand Text Editor, expand Transact-SQL, and then click IntelliSense.
Clear the check boxes for the IntelliSense options that you do not want.
To change the script size at which IntelliSense features are disabled, select a size from the Maximum script size list.
To change the casing applied to function names in completion lists, select a casing specification from the Casing for built-in
function names list.
Click OK.
I don't think you can do as exactly as you want.
However, you can do some customized setting for the IntelliSense as the instruction below from Microsoft documentation.
To modify Transact-SQL IntelliSense options
On the Tools menu, click Options.
Expand Text Editor, expand Transact-SQL, and then click
IntelliSense.
Clear the check boxes for the IntelliSense options that you do not
want.
To change the script size at which IntelliSense features are
disabled, select a size from the Maximum script size list.
To change the casing applied to function names in completion lists,
select a casing specification from the Casing for built-in function
names list.
Click OK.
I have a form in which I have a combo box, this combo box is a select name from table from an sql server . Then I have multiple listboxes which query different tables.
I have an event after update for re-querying the data when I choose a value from the combobox. Everything works great.
The problem appears when I make a copy of the .accdb file. I click on the drop down in the combo box to select a name (the list appears) and then nothing happens unless I click on refresh all (If I do it, everything looks great again). Which is strange because I made NO modifications to the copy. Simply copy paste.
What can be the cause of this? It is driving me insane
Sounds like security settings.
You have told Access at some point that your original file is safe and that it should enable its (VBA) contents.
In the copy you should see a yellow bar where you can enable the code.
If the yellow bar isn't there, see MS Access 2010, how to get the yellow Enable Content bar to show up again?
When I open a report from Dynamics NAV 2013 in Visual Web Developer 2010, every text box shows a field that looks like
<<Expr>>
Where << and >> are the french Guillemet characters. I find this rather difficult because I have to analyze the properties of each text box, if I am looking for a particular field.
For example in this picture, how do I know which field is the Customer Name, Phone Number or VAT Registration No?
Is there any way to configure Visual Web Developer to expand the Expression like it was in Visual Studio 2008 with NAV 6.0?
Preferably I would like to either see a label instead of the generic Expr or just the old Fields!Some_random_field.Value like it was in Visual Studio 2008.
Ah, another feature of NAV & RDLC :)
You'll find that the Expr text appears when an expression reaches a certain "complexity" -- e.g. from just a field;
=Fields!TotalText.Value
to
=(Fields!TotalText.Value)
The fields in the header are usually always Expr as the values are passed using GetData and SetData (and remain that way from NAV 2009 reports). While this limitation was somewhat removed in NAV 2013, you can only put static values in the header -- they won't change across pages which is useless for multiple SO's or Customers for example.
There isn't a way to show it in the properties box, however the quickest way seems to be to select the field, Right Click, "Expression".
I'd suggest giving the textbox a name other than TextBox to make it easier to identify fields (e.g. "SalesHeaderNo");
So after a bit of research I have found another solution. There is a View Element called the Document Outline [Ctrl+Alt+T] which shows a tree like structure of the whole report. When ever you click on an item in your report, the corresponding item in the Document Outline is selected and vice versa. This is quite useful to keep a better overview over your report and to quickly navigate between the different items.
The only annoying thing is that it also shows empty text boxes, so in a sparsely populated table, you will have a lot of textbox123 items in the outline. It doesn't seem there is a way to filter these out.
I sometimes have a large amount of query windows open in SSMS 2008.
Is there a keyboard shortcut to navigate between open query windows? Go to previous/next open query window?
I know there is Ctrl+Tab that allows you to select a query window, but it's only helpful if you have named windows.
A challenge you'll find here is what does "next" really mean? Since you can tear off tabs, split the UI, even move tabs onto different monitors, I think "next" and "previous" lose a little meaning, unless you know what order they were opened in.
Anyway, some solutions, with older versions (based on when the question was asked) left intact:
SSMS 2008
Ctrl+F6 will switch between two most recent tabs. And honestly, Ctrl+Tab / Ctrl+Shift+Tab work like next/previous except you have to hit Tab twice (you can ignore knowing what the name of the tab in the list is).
SSMS 2012
Ctrl+F6 will cycle through open tabs in the order they are displayed, and Ctrl+Shift+F6 will cycle in the reverse direction.
Ctrl+Tab / Ctrl+Shift+Tab will open a temporary window and allow you to cycle through open queries in the order they were last opened.
In more recent decades
Ctrl+Alt+[Page Up|Page Down] will cycle through windows (as bridge_burner added), but there's a catch. This only works when the query window is active - and it will stop working if you get to a query window where, previously, you had an item in the grid selected, for example.
You can make your own keyboard shortcut, as Stuart Smith explains.
the equivalent of Ctrl+Tab in browsers for SSMS would be Ctrl+Alt+PageDown for next tab and Ctrl+Alt+PageUp for previous tab.
Here's my approach that get's me closer to coding utopia. Make sure you keep your SSMS query windows sorted by name from left to right. SQLQuery1.sql, SQLQuery2.sql, etc. These are the default names SSMS gives these tabs when you create them (by clicking New Query).
To change the current query window tab, press "alt" then "w" then "w". A window is shown listing all of your open query windows sorted by their names (which should be the same order in which you have them laid-out from left to right). Use the up and down arrow keys to highlight the tab you want to activate and press enter. Your desired tab should be open now.
This allows me to quickly change query windows while keeping my fingers on the keyboard (less mouse usage).
I know this is a very old thread, but I thought I would add one more suggestion in case someone else comes across this: Redgate's SQL Prompt comes with a nifty "Tab History" applet that gets added as a button to a toolbar. I know that that means you would have to leave the keyboard and reach for the mouse to access it, but the interface and its functionalities are worth it! Not only do you have access to the currently opened tabs (with visual mini previews of the code in each tab) but also you have access to recently closed tabs (Yes, it may save you in case you accidentally close a tab without saving your work...)
Just my two cents. Best, Raphael
I found a way to map the browser style next/previous tab shortcuts in SSMS.
Select Tools > Options. Under 'Environment' select 'Keyboard'. In the 'Show commands containing:' area type 'Window.'.
Find 'Window.NextTab'. Toggle the 'Use new shortcut in:' to 'SQL Query Editor' then enter Ctrl + PgDn in the 'Press shortcut keys:' area and select 'Assign'. Do the same steps for 'Window.PreviousTab' with Ctrl + PgUp.
SSMS Keyboard Shortcuts Screenshot