Is there a way to disable the overtype cursor in Microsoft Visual Studio 2019? - cursor

I'm using Visual Studio 2019 on Windows 10. I'd like to be able to click and always have the skinny cursor come up, as opposed to the overtype cursor (the cursor that, when you type a character, replaces the character underneath it). Is there an extension for VS2019 that can provide this functionality?

Related

How to find a plus sign in a query window of SQL Server Management Studio?

I am using Quick Find (Ctrl + F) in a query window of SQL Server Management Studio to find a plus sign. But the text box gets red border and a blue progress indicator running on the bottom.
It works instantly to find other characters. Only the plus sign is problematic.
I am using SQL Server Management Studio 15.0.18358.0.
It is enough to disable the option Use Regular Expressions (Alt + E).

How to use SQL template parameters in Visual Studio (Data Tools)?

I opened a SQL script in Visual Studio containing template parameters (as they are used by SSMS usually), but Visual Studio seems to ignore them.
Some background:
In SQL Server Management Studio (SSMS), I can prepare a T-SQL script as follows and then press Ctrl+Shift+M to open a dialog, where I can enter values for the variables (syntax is: <Name, Datatype, default> as described here, and here is a more detailed description how template parameters can be used):
Example:
DECLARE #UserLastName NVARCHAR(max)='<Last name,nvarchar(max),>';
Here, the <...> bracket expressions will be replaced by the values you entered in the dialog. If you type Doe and click OK in the dialog, you will get
DECLARE #UserLastName NVARCHAR(max)='Doe';
inserted into the script afterwards. This is quite useful if you create scripts for repetitive manual tasks, because you can type the values into the dialog and get a running script for that case.
Instead of the keyboard shortcut, you can use the menu option
The issue:
I tried to do the same in Visual Studio 2017, where I have installed Microsoft SQL Server Data Tools. But the keyboard shortcut does not work there, and there seems to be no such menu option.
Do you know how to invoke this dialog in Visual Studio?

SQL Server Management Studio keyboard shortcut to highlighted Line Up and Down

What is the shortcut of the highlighted Line Up and Down. Like in the Visual studio.
I have SSMS 2014 and didnt find. Althought lad2025 said 2017 have this option in Advance
It is:
Alt + Up Arrow for Move Selected Lines Up
Alt + Down Arrow for Move Selected Lines Down
SSMS -> Edit -> Advanced:
If it is not available I would recommend to upgrade SSMS to newest version.

Can't drag stored procedure onto dbml designer

I'm trying to do a simple call to a database stored procedure from a C# application.
I'm following a guide like, e.g., this one or this one.
Both of these have the same basic steps.
Add a LINQ to SQL .dbml item to my project
Connect to a database in Server Explorer
Drag a stored procedure from the Server Explorer onto my .dbml designer window
But step 3 doesn't work. I have my stored procedure and my designer window, but I can't drag the sproc. I don't get a plus sign, or a "not allowed" sign. It's just a non-dragable object.
I can't find another way to add my sproc to the .dbml file. And I can't find anyone else who has had this problem. Every source simply says to drag it over.
What could I be doing wrong here?
Screenshot:
Turns out the solution was that I had the wrong version of a .dll for Visual Studio.
I noticed I was getting exceptions when performing actions in the Server Explorer. Googling the exceptions led to this question which points to this dll
C:\Program Files (x86)\Common Files\microsoft shared\Visual Database Tools\dsref80.dll
as the issue.
I replaced it with the corresponding copy from one of my teammates and it now works fine.
I had also installed VS 11 Beta and the designer was working fine until I uninstalled it. I had to delete the DLL manually at the above location and repair the installation by finding Visual Studio 2010 in Programs and Features and selecting Uninstall/Change and then Repair. The installer will replace the DLL file that was deleted with the correct version.
For anyone that can drag the sproc, but sees no result (the sproc simply does not show up in the functions pane): make sure that the sproc only returns datatypes that L2S understands. For example you can not return a geography field.
Editing .dbml files with a designer surface requires the LINQ to SQL tools which are not installed by default as part of any of the workloads of Visual Studio 2017. It can be installed by selecting the "LINQ to SQL tools" item under the "Code Tools" category in the "Individual Components" tab of the Visual Studio installer.

CTRL + K, CTRL + F (Format Code) Not Working in MS SQL Server

The format selection command isn't working in SQL server management studio 2008 for me and I'm wondering if anyone might know how to get it working. I don't know if it was ever working.
Do you have any add-ins installed? For me Ctrl+K, Ctrl+F brings up the SSMS Tools Pack find dialog. So perhaps this is happening because an add-in has taken over the keyboard combo.
Also, what is your keyboard scheme under Tools > Options > Environment > Keyboard? If this has been switched to "SQL Server 2000" you might try switching it back to Standard.
Finally, I believe there are cases where the keyboard shortcuts can get messed up depending on the co-existence and order of install for Visual Studio / BIDS etc.
IN SQL SERVER 2014
First do: Ctrl +K
Then: Ctrl+ Y
I know this post is really old, but for people searching for answers to this question I have this to add:
The Ctrl+K, Ctrl+F key combination for format code comes from poorsql.com. They have a SSMS/Visual Studio plugin. As of this date they currently support up to SSMS 2017.
This feature isn't available on SQL Server Management Studio.
There are various add-on's you can use to do this. I personally use ApexSQL. It gives you the option to create your own format template, so that your code is always easily readable for you.
Check this link:
http://www.mssqltips.com/sqlservertip/2413/sql-server-management-studio-keyboard-shortcuts-part-1-of-2/
...You can select specific lines and hit CTRL+K
followed by CTRL+C to comment it out and
CTRL+K followed by CTRL+U
to uncomment it out...

Resources