Missing LINQ to SQL Classes (DBML designer) in Visual Studio 2017 RC - linq-to-sql

How can I add LINQ to SQL class (.dbml file) to Visual Studio 2017 RC. I can't find it. Please help, thanks.

You need to opt in to enable the designer during installation, it is not enabled by default: https://developercommunity.visualstudio.com/content/problem/4616/linq-to-sql-dbml-designer-in-not-working.html
"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."

By default VS 2017 installer doesn't provide LINQ to SQL tools while installing we have to select that and modify.
Follow easy steps from here:
Open VS2017 installer.
Go to Individual Components.
Select he LINQ To SQL tools from code tools.
and just modify.
or check this screenshot you will get the idea.

Steps:
Open VS 2017
Go to Tools -> Get Tools and Features
Click on Individual Components tab
Scroll down, you will find "Linq to Sql tools" under Code tools category
Check and click on Modify. It will install the component, its around 6 mb

SuperUser.com also contains a nice answer
Basically you need to modify your VS2017 installation and add the standalone Linq-to-Sql component.

Open Vs 2017 installer, go to individual components and check LINQToSQL component then click modify button.

​If, you use the DotNetCore. Linq to SQL doesn't show the option. To use Linq to SQL, you need to select DotNetFrameWork then you'll have an option to select Linq to SQL. It worked for me.

Related

SSIS data tool toolbox fix

I make integration service project using data tools Visual Studio . I have encountered with a problem. There are no toolbox elements on the menu in data tool Visual Studio. I want to return it back in order to make my project . I have reset default settings but it didn't help . Also I have the feeling that my project opens in the Visual Studio environment instead of SQl server data tools . I upload screenshot as well
This can be confusing as sometimes you will see the normal toolbox that appear empty as you are not working on a UI such as windows forms. There is a menu item SSIS, under that is SSIS toolbox.

Cannot find Microsoft Dynamics CRM Fetch Type in SSRS

I'm trying to create a report in SSRS (Visual Studio 2012) for Dynamics 2011 using fetchXML. I have downloaded and installed the Microsoft Dynamics CRM 2011 Report Authoring Extension (with SQL Server Data Tools support) but I cannot find the Microsoft Dynamics CRM Fetch Type when I try to create a report, please, does any one have any suggestions?
Probably you are trying to create the report in some already existed project, I had the same issue with VS2010 in that case.
To make Fetch XML data source be visible you must create new project in Visual Studio. If all installations were successful, you must be able to create project with Business Intelligence/Report Server Project template, than create new report and in Report Data window (if it not appears automatically - just click on any place on report, go to View menu and find Report Data window) right click on Datasets, than pick "Use a dataset embeded in my report", click "New..." button near Data source drop down and there you should see Microsoft Dynamics CRM Fetch connection type.
Have no possibility to test this with VS2012, hope this will help.
As far as I know the latest version of SQL is SQL 2012 and BIDS for it is done using VS2010. So answer is quite simple - you would not be able to build a report using VS2012, you will have to use VS2010.
You're missing the Report Authoring Extensions. Install these and you'll have the FetchXML in the list.
If you've upgraded to a later CRM version since this post, just search on that version of extension installer instead (2013/2015/2016).

SQL Server 2008 - Keyboard Shortcut Key to do SQL Query Formatting

Do you know the Keyboard shortcut key in SQL Server 2008 Management Studio to do SQL Query Formatting?
I hope this will help future readers if OP is already found the solution.
There is no built in formatting in SSMS but there are free SSMS Addins such as ApexSQL Refactor you can use for this.
Apart from this you can also try SSMS tools pack but note that it’s not free for SQL 2012.
Another great tool for this is Red-Gate SQL Prompt Pro which allows you to define your own SQL coding style, and easily reformat any crappy SQL code that gets dumped on you :-)
It's not free - but easily worth every penny it costs!
there are no built in formatting functions like a Beautifier or Formatter program.
tab (including while a section of code is selected), space, backspace, delete, etc. and the expected ones. I use alt+mouse click+drag to select "square" sections of code.
here are all of the SQL Server Management Studio Keyboard Shortcuts
Are you looking for something like this: Format SQL Beautifier
software ??
Ctrl + Shift + Q will give you a Query Designer window from which you can copy formatted query.
Their is no shortcut keys in sql server 2008,2010,2014,2015...
The simple way visit http://www.sql-format.com/ and format.

Visual Studio 2010 - Can't open O/R Designer

I just got Visual Studio 2010 and need to create a web application using LINQ to SQL. I started writing the web app but can't add a .DBML file to the solution. The option isn't there when I go to Add -> New Item.
Am I missing something from the installation CD? Did they change something from Visual Studio 2008? I haven't written in .NET for about a year, so I'm out of the loop.
Thanks very much for any help.

SQL Server 2008 Sql snippets

I think that this is a relatively simple question. I just want to know if you are able to save or use SQL snippets like you can in Visual Studio, but within SQL Server Management Studio? I've had a browse but couldn't find anything.
Dragging a Template item into the current query is handy (You can create your own & "file" them in their own hierarchy), and the SMSS Tools Pack addin provides a Snippet function.