IntelliSense don't work - LinQ - Visual studio 2012 - c#

I have a problem with IntelliSense, it never work on my computer. I have already search on the web and try some manipulations :
I already check in tools-options-text editor and yes IntelliSense is activated.
I reinstalled visual studio 2012 too but it still don't work.
I add "System.Data.Linq" and "System.Data.Entity" too.
Visual studio suggest me : "caption/tfoot/tbody/..." may be I need to change because I don't want HTML suggest but SQL suggest.
I am on Windows seven professional, working with visual studio 2012 and Microsoft SQL Server 2014. Everything is working between Miscrosft SQL server and Visual studio, I just don't have IntelliSense...
Thanks you

I don't want HTML suggest but SQL suggest.
It is unclear what you seek exactly in intellisense, but VS intellisense is limited. You may want to look into off the shelf (third party addins) for intellisense to do work in SQL Server Studio instead.
Regardless in Visual Studio make sure you have these options in Options->Text Editor->SQL Server Tools to your liking:

A colleague solve my problem. He has just installed ".NET Web Development and Tools Blog" from here : http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx.
Now the text is formating and colored, everything is working !

Related

Using a mdf file from SQL Server 2019 in a Visual Studio 2019 C# application

I've attached .mdf files to Visual Basic applications plenty of times. I'm not 100% new to C#, I know some about it. I also know that attaching a .mdf is similar enough. I ran into this during my senior project, see below.
I just got SQL Server 2019 yesterday, and my Visual Studio (Community edition) is updated to the most recent patch as well. Side note: I just made a few tables with some example data in them to see if I could get it to work. Any advice on what to do?
EDIT: While looking through my visual studio installations, it seems I have localdb 2016... no options for 2019. So my question now evolves to:
How can I get Visual Studio to use a 2019 version of LocalDB?

How to connect to database with Visual Studio 2017 in C#?

I'm currently using Visual Studio Community2017, and I created a Windows Form, but I'm having a problem when I come to connecting my Windows Form to a Database.
I was using Visual Studio 2013 before, and I remember that to connect to a SQL Database, I just had to install an extension to my project, and then I could use the library of MySQL.
But in the 2017, I can't find the same thing.
I tried to follow the instructions of the .NET tutorial on Microsoft's website, but didn't manage to make it work properly, I didn't understand all the steps.
Can anyone help me ? Thanks a lot :)
I already used MySQL with PHPMyAdmin with Eclipse.

Visual Studio 2008 Business Intelligence SQL Server, Install C#?

I have Visual Studio 2008 Business Intelligence version that was installed along with Reporting Services for SQL Server 2008 R2. I want to work with C#, but there are no options to create a C# project. I haven't been able to find any way to install a C# package or something.
Is there a way to add on C# functions, are they already built in but hidden, or should I just download a full version?
Thanks
UPDATE:
So I finally managed to find a download of Visual Studio 2008 Express, and installed the C# version. After installing I launched visual studio and it was the same thing, only the sql server projects came up as templates.
I found a forum that said to go into import and export settings and to reset my settings to general development settings, but I still cannot make a c# project.
UPDATE2:
I'm going to try installing VS 2012 Express to see if that works for me, since its the only download microsoft has that you can easily find now.
UPDATE3:
VS 2012 Express has been working just fine for me, and I still don't have the project templates in VS 2008 though.
You'll need to install one of the stand-alone editions of Visual Studio. Business Intelligence Studio, bundled with SQL Server, doesn't allow you to work with C# or other language projects.
SQL Server 2008 Business Intelligence Development Studio ("BIDS") is just an add-on over standard Visual Studio (VS 2008 in this case).
If you hadn't had Visual Studio installed before deploying BIDS, the most basic VS shell was installed along BIDS that does not allow you to work with projects other than the SQL Server BI family.
For you to work with .Net projects, despite being able to edit basic C# files already, you will need to reinstall any version of regular Visual Studio 2008 (e.g. licensed, express). This won't break your BIDS.

open visual studio 2012 projects in visual studio 2008

Im writing an applcation with C# in visual studio 2012 but i want to open that project in another place in visualstudio 2008. How i can do this? in saving i have to do something? Or in oening in visualstudio 2008?
Since I am stuck with VS 2008 in my home computer, I regularly have to do this.
You can modify your solution file (*.sln) manually. Most of the time you just have to change the first two lines that define the VS version of the solution.
From this link:
You can edit the sln and csproj/vbproj files by hand and try that way, I've used this method with no side effects. In the sln file the first lines for VS2010 will say
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
and for a VS2008 solution:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Also, in a 2010 project file you may find a section like
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
which will need to be modified as
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
With only these 2 types of changes I was able to open the solution & projects with VS 2008.
It's not possible.
Visual Studio generally doesn't support forward compatibility -- that is, opening a newer project in an older version of Visual Studio. It generally supports backward compatibility -- opening an older solution in a newer Visual Studio.
Your only real option here is to retain it as a 2008 solution; even then, when you open it in 2012, it may ask you to convert it to a 2012 solution format, which will make it unusable in 2008.
I have found this while I was Googleing. It may be useful in your case:
Visual Studio Project Converter
Disclaimer: I have not personally tried this program.
I had the same need basically because I wanted to keep the compatibility with .net 3.5.
Although VS2010 and VS2012 support projects running on this FW version, many users are still forced by their companies to use VS2008 or 2010.
I could also develop in 2008 but as a geek that I am I dind't even consider it! :)
So, my solution was to create separate *.sln and *.csproj files for each VS version.
This way you guarantee that everything will work out of the box for each VS version.
The easier and faster way I found to do this was to open eash VS version and create empty solution and projects, with the same structure as the original but with the vs version on the name like:
my.solution.sln
my.project.csproj
...
my.solution.vs2008.sln
my.project.vs2008.csproj
...
my.solution.vs2010.sln
my.project.vs2010.csproj
...
Keep in mind that you have to manually open all the versions and add the new files and so on... they won't be automatically synchronized but it pretty much works.
Hope this helps,
Cheers!

is it possible to use team explorer for version control without buying license for visual studio?

I downloaded the team explorer 2005 and when I tried to open the application from source control , I am getting the error .csproj applicaion type is not installed.
How can I resolve this ?
In order to open a .csproj you will need to install a version of Visual Studio that supports .csproj`s. There are free versions, called express SKU's, of Visual Studio that should help you out here. It, and the other express SKU's, are available at the following link
http://www.microsoft.com/express/Windows/
You need a CAL (Client Access License) to run just team explorer and access the TFS functionality to check in and check out and other things. If you're wanting to open the projects and make changes you'll need a license for visual studio. There are many different options there. I don't believe you can use the free one in your situation. Using VS professional you'll still need to get the CAL as well to access TFS but if you get one of the team editions of VS you will have the TFS CAL included.
That's how I understand the licensing for TFS/VS but I'm not an expert and it would probably be best to ask your supplier or microsoft about licensing.
I believe Team Explorer allows one to interface with TFS which includes accessing project documentation, filing bugs, and possibly retrieving source code. However, I believe you need Visual Studio to open up project/solution files (i.e. a developer task).
This might be different with Visual Studio 2010 but that's the sales pitch we heard regarding 2008.
In summary, although you need the specific module that loads C# projects. When you installed Team Explorer, although you have the basic IDE, that module is not loaded (is similar to when you install SQL Server client - you have the Visual Studio IDE, but the only module loaded is the SQL Server management Studio). As some of the other guys suggested, try to install Visual Studio C# Express (you can find more information here - http://www.microsoft.com/express/Windows/ - click on Microsoft® Visual C#® 2008 Express Edition). Notice that later on if you want to use web application, you will need to install the web edition and so forth.
When you install Visual Studio Professional (or Team Suite) most of those modules are installed by default.
I hope this info helps.

Categories