How to connect to the localDB by using Visual Studio 2010? - visual-studio-2010

I think there are some function lost in the VS. After I right click on the Server Explorer, there only exist "Copy", "Refresh" and "Properties".
https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xat1/v/t34.0-12/12067145_1084577254886171_1366454821_n.jpg?oh=ccedd46483b1524bfe1f7a0438ff5826&oe=5614769F&gda=1444187729_4d955b88b786c25e62c7d02fc95e1d67

I think you no need to right click on the table name, should right click on db name "user-pc\localdb......" and connect

Alternate solution:
Download SQL Server Data Tools in visual studio.
After Installation you can see "Server object explorer" - Same Like "Server explorer" in your vs.
Now, you can view your database and all other properties.
Link :
Download Link
Note: You may not find SQL Server Data Tools For 2010. (Available sources are 2012 and 2013)
Still look at this, Step wise solution

Related

No TFS-connection in Visual Studio Solution Explorer

Our project is on Visual Studio Team Services (was TFS Online) and we are using visual studio 2013, but I dont seem to have any connection from Solution Explorer to Team Services.
I have no problem opening Team Explorer-> Source Control Explorer and Get Latest, but when I open the .sln file in visual studio, it seems disconnected to Team Services in the sense that I cant find menu items like "Get Latest", "Check out" and so on. When I create new items in VS they aren't added to Team Services, I have to add them by using Source Control Explorer.
My mappings seems fine, they point to the folders where I have my source code locally.
So, how to I connect my VS to Visual Studio Team Services?
Under Source Control Explorer in VS, double click the .sln file, then go to Solution Explorer to check whether the files under the solution is source controlled.
Additionally, you can go to File--Source Control to see whether you can see "Get latest version" or "Check Out for Edit".
Open the File - Source Control - Manage Source Control and click Bind for each project in the solution.
Also make sure that Team Foundation Server is selected as the version control tools in Tools - Options - Source Control.

I cannot open a SSRs RDL file in designer view. Why is this happening?

I have just opened up a project that contains SSRs reports and yet I am unable to view them in Design Mode. When I click on them, only the XMLS appear and I am not sure how to resolve this in VS 2012 ?
In a version of Visual Studio that includes SQL Server Report Services, create a new Report Server Project.
In the new Report Server Project, right-click the project node in the Solution Explorer and choose "Add" > "Existing Item...". Then browse to and select the RDL file. Once it is in a Report Server Project, you can right-click the report and choose "View Designer" to see it in Design View. By default, it ought to open in Design View anyway.
If the file is not part of a Report Server Project, you'll only be able to view the XML text. Depending upon the Version of Visual Studio you may (or may not) get XML highlighting and intellisense.
Rename report as '.rdlc' it will open in design mode in Visual studio 2012
In Visual Studio 2015:
First make sure you have installed Microsoft SQL Server Data Tools, then rename your reports to .rdls, right click on reports > Open With > Report Designer
If you are not able to create / add Report Server Project download and install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012 from the location here (if you VS is 2012). Then create an new report server Reproting server project project Report Server Project and do as "add Existing Item" as my RDL report which need to be opened and go for design view. Then it will open the report in design mode.
You are missing Report Template in visual studio
Got to Control Panel->Programs->Programs and Features.
Select you Visual Studio Version, right click and 'Change'.
The Visual Studio Setup splashscreen should appear, Click on Modify at the bottom left, and then under 'Windows and Web Development' select Microsoft SQL Server Data Tools. The Reporting option should then appear in your installed updates.
After installing Microsoft SQL Server Data Tools, you would need to install Report Viewer for Visual Studio 2017 (or which ever version you are using)... that worked for me from link below:
https://social.msdn.microsoft.com/Forums/SqlServer/en-US/99b217d0-63b2-48a7-bfe0-423e56963e21/rdlc-report-designer-in-visual-studio-community-2015?forum=visualstudiogeneral
You can force open it by Right click on RDL file and click on View Designer to see the RDL in design mode.
Once you have the needed extensions (Microsoft Reporting Services, Report Designer) installed and everything updated, what worked for me was to open the .rptproj project, and then open the needed .rdl.

Visual Studio 2010 Toolbar Menu

can someone help me to find missing "Data" menu from toolbar in VS 2010?
I also cannot run tsql code as Connect button after right-clicking the code is somehow not showing up. Visual Studio was installed as part of SQL Server 2012 Developer Edition
thank you very much
links to images:
http://i41.tinypic.com/2vwbvhu.gif
http://i39.tinypic.com/2hp175g.gif
It appears the data menu is being phased out (I'm still seeing the Data menu in VS 2010 Express, but it seems that it's gone not only in your scenario but with VS 2012). The two items in the menu, Show Data Sources and Add New Data Source... can be reached by using the keyboard shortcut Shift+Alt+D, or quite possibly in your version, under the View menu -> Other Windows -> Data Sources.
Main source: here.

How to make TFS not auto check source control from Visual Studio?

every time I open my Solution in Visual Studio it tries to communicate and validate every file is update to date in source control. I am working on a very large project and was wondering how I could disable it for this Solution? Furthermore is I am curious as to also how to enable it?
In Visual Studio 2010:
1) Go to Tools -> Options -> Source Control -> Environment.
2) In "Source Control Environment Settings," select "Custom" from the drop down.
3) Uncheck "Get everything when a solution or project is opened."
(This is a global setting. It is not Solution-specific.)
You can install the TFS power tools, assuming you use TFS 2010 then you can download them here open up a visual studio command prompt and run the command tfpt connections this will bring up a dialogue which will show all of your available TFS servers and Collections.
There are 2 options you can try, firstly uncheck "Automatically connect to server on startup" this should stop VS trying to connect to TFS when you open a solution. If that doesn't work then click on the "+" next to the TFS server and select the collection you are using for source control. Hit the "Edit" button and you should see a checkbox called "Server is Offline" select this and you will no longer be connected to TFS.
To reverse the behaviour use the same tool to togle the values back to their defaults

HowTo delete the Database ConnectionStrings stored in Visual Studio?

I have Visual Studio 2005 Team Edition for DB Professionals.
After starting "Data --> Schema Compare --> New Schema Comparison...", i can choose a database from a DropDown. Unfortunately there are some old references that i don't need anymore. How can i delete those entries?
I did recognize that the connections are stored in the Server Explorer. "View --> Server Explorer". The Data Connections stored there can be deleted.
You can manage them from the registry:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\SSDT\ConnectionMruList
Yes can view your added schemas in the "Server Explorer" in Visual Studio. Just, right-click the schema and delete it.
In the select schema connection window, click edit connection for the connection you don't want. The set it to a connection you already have and still want, this tricks it into removing itself.
It's the only way I've got them to remove!
For Visual Studio 2017:
Right click on your project in the Solution Explorer.
Select Properties.
Click the Settings option in the left menu pane.
Right click on the connection you want to remove.
KerPOW! Done! Gone!
For Visual Studio 2015 MRU connections are stored here: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\ConnectionMruList
I am using Visual Studio 2012. I have clicked on Project and Select the name of project on dropdown menu e.g. MyDemo Properties. On the side menu click settings then you will find connection string listed in a table then Delete those you don't need.
You need to go into your web.config file and find the tag. You'll see all of your old and current connections in there you can delete the ones you no longer need.
None of the above worked for me in VS 2015. I could not find the registry entry mentioned. Only the following steps worked for me:
Delete any forms that rely on datasets you will delete.
Delete datasets that rely on the connections.
Remove all connection strings from app.config.
Remove all "settings" from the project properties setting tabs.
Delete all data connections in server explorer (View->Server Explorer).
Rebuild the project.
Now when you add a new Data Source all the connections in the dropdown are gone.
As another user mentioned above, deleting the data connections in the server explorer is not enough. When you exit VS and re-enter they come right back.

Resources