why Visual studio 2019 missing SQL Service-Based-Database - visual-studio

I am trying to make a Login form in visual studio and I watched few videos and it says that I need to use the SQL server data tool/Service-Based-Database in the solution item section but seems like it's not there. I already checked and it is installed already, anyone knows what I'm doing wrong or what other step should I take?
This is what I am looking for exactly:

You are trying to add a "Solution Item" - you likely right clicked on your Solution in solution explorer, rather than one of your projects. If you right click on your actual project in solution explorer and attempt to add an item, you should be able to see the Service-based Database.
So do one of the following:
Right click on your project in solution explorer and select Add → New Item. Then find the Service-based Database item.
Left click on your project in solution explorer to select it, then in the top menu bar of Visual Studio, click the Project menu item, then Add new item and find the Service-based Database.

Related

Visual Studio 2013 Preview: No Publish To File System?

So I've built my project and I want to use the VS2008/2010/2012 "Publish To File System" option in Visual Studio 2013 Preview to push my project to a staging server for testing... but I can't find it anywhere in any of the menus.
It's bad enough that they've randomly rearranged the menu structures and items for TFS, but this change basically makes it impossible for me to recommend 2013 to anyone, much less the CTO, as an upgrade path.
This can be accomplished easily:
Right click on project in Solution Explorer
Click Publish
Under Profile select <New Custom Profile...>
Create profile name (can be anything, dev.domainname.com)
Under Connection > Publish Method > select File System
Enter the Target location \\server\sharedfolder\
The rest of the settings are common as they were in the past.
The next time you go to publish just select the profile and you are done.
With two other people looking over my shoulder and making random suggestions, we finally stumlbed across the answer. It turns out that VS2013 requires you to create a New Profile for each and every publish you make for each and every project in your solution. Hmm. :-\
FYI, running Visual Studio 2013 Update 5 the publish web dialog looks a bit different, screenshot below:
Choose "Custom"
Give the profile a name and hit OK.
Select "File system" as the preferred publishing method...
The first time in to VS 2013 you will not have a "New Profile" option as described by KeyOfJ.
This worked:
Right click on project in Solution Explorer
Click “Publish”. A “Publish Web” dialog box pops up.
Under tab “Profile”, in “Select a publish target”, select “Custom”. A “New Custom Profile” box pops up
Enter a “Profile name” and click “OK”
In tab “Connection” under “Publish Method”, choose “File System”
In tab “Connection” enter a “Target location”. Click “Next”
Under “Settings”, click on “File Publish Options”. Click “Next”
Click “Publish”
Next time you want to publish this project, VS. 2013 will default to the Profile name you just entered, and you will be able to publish in one click.
Can you find Team Explorer? View -> Team Explorer.
Click Commits, and you can see "Publish to Remote Repository". Type in TFS URL or other Git repo to upload your project.
You can create a fake web connection and then reenter data, selecting Local File System.

Visual Studio 2012 project lost link to TFS

So I came back to a project that I was working on a few months ago, and when I load it one of the projects seems to have lost the link to it's entry in TFS. The solution explorer doesn't show the lock icons for it, but I still see it in TFS.
I tried performing a add to source control but it says that the items already exist.
Anybody have ideas on how to fix this?
I'm trying to avoid remapping because there are a few branches, and I'm not even sure that will fix it.
Your solution has lost the TFS binding, you can do the following to fix it. First open the solution/project you wish to bind in Visual studio then:
Highlight the project or solution you wish to bind to Team Foundation version control in Solution Explorer.
On the File menu, click Source Control, and then click Change Source Control.
3.In Change Source Control dialog box, click Bind.
MSDN Link
Update for VS 2013 (thank you Caad9) - In VS 2013 [Ultimate at least] there's an additional level in the menu; File - Source Control - Advanced - Change Source Control... which brings up the dialog

Solution Folder Not Showing in Visual Studio 2010 - How Can I Make It Visible?

I created a new Blank Solution in Visual Studio 2010, then I did an Add New Project, and the Solution node no longer shows in the Solution Explorer.
Further, when I try to do a second Add New Project, I get the error:
Cannot add the item because the item to add it to is not a solution folder or the solution.
What happened to the Solution node?
Where is it, so that I can highlight it and add a second project to my solution?
Tools, Options, Projects and Solutions, check "Always show solution"
Trivial update:
I'm on Visual Studio 2010, Ultimate edition. Windows 2008 R2, Enterprise edition, SP1. My guess the difference between #arrocharGeek screenshot and mine is I turn off all the vista/win7/2008r2 eye candy to make it look "normal."
You need to show the solution as follows:
Navigate to Tools | Options
Check the "Show all settings" checkbox in the bottom left of the Options dialog
Navigate to the "Projects and Solutions" | "General" section
Check the "Always show solution" checkbox
The "Solution solution-name (n projects)" will now show, and you can highlight that node to Add New Project from there.
Trivial Update: My VS 2010 is SP1Rel, and I am on Win7 Enterprise SP 1:
In order to view Solution explorer. Go to View > Solution explorer.
Or press Ctrl+Alt+L.
And solution window will appear.

VS2010 "Add Item" directory change

Is there any way to change the default directory Visual Studio 2010 uses when you add a source file through Add -> New Item?
Add New Item simply adds the item based on which project directory you're currently in or have selected in your Solution Explorer. If you want to change where it gets added then select the target location in the Solution Explorer first.
This behavior is obvious when right-clicking in the Solution Explorer, but it's also the same when using Project -> Add New Item....
Since my comment seems to be the actual answer, I repost:
In the toolbar of Solution Explorer, there's a button "Show all files" (or similar, I'm using the German version). This switches the view to directories, rather than filters. In this view, you can right-click on the desired target folder to add items.
This does not actually change the default directory, but since you have to click somewhere anyway to add an item, this is the easiest approach.
Note that even when only using Visual C++, I'd recommend the Productivity Power Tools extension, which comes with Solution Navigator. In C++, this is not as powerful as with .NET, but it still has several features that are useful in C++ and can fully replace Solution Explorer.
Try going to tools -> options -> Project and Solutions.
I know this post is old... but maybe someone will stumble upon it... like I did today...
I had the same "problem":
I have a dedicated directory for icons.
When I need to add an icon to the resource file, Visual studio takes me to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
To fix the problem, after I "browsed" to the desired folder, I right-clicked the favorites of the "open file" dialog and selected "add current location to Favorites".
Next time you will get this dialog, you simply have to look for the folder in the favorites, and click it.

Opening a page in a second project in a Visual Studio solution

Sorry for my ignorance, I would like to ask the following: I have a Visual Studio 2008 solution that has 2 projects (a 'Web Site project' and a second one is a 'Web Application project'.
When I run the solution in Visual Studio, the first projects starts and I can see an ASP web page (in run-time). When I click a button on this page I would like to run a procedure that belongs to the second project, pass some parameters and start the second project in run-time as well.
I cannot figure out how to reference from "Project1", any files, procedures, etc that belong to "Project2" in the solution.
Thank you,
M.R
Right Click Project1->Add Reference and then make a reference to your project 2.
Right click on References->Add a Reference,t hen select the Project tab and pick the project you want to reference.

Resources