Error message when adding SQL Server to Visual Studio 2012 - sql-server

I have been following along with David Gassner's ASP.NET tutorial on Lynda.com and had things going pretty well up until he walked me through adding an SQL server in the Server Explorer in Visual Studio 2012. When following his steps, I receive the following error:
Unable to add data connection.
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
I have found numerous websites that suggest installing 3 additional programs/add-ons, such as this site.
I have installed all 3 recommended (Native Client, CLR Types, and Management Objects) and restarted the program and my computer, but still nothing seems to work. Any ideas on how I can add the database?
Additional detail: When I test the connection before choosing OK, the test is successful. I am quite new to SQL/Database stuff so please explain as simply as you can, or link to a resource that will help me fix this.

#mattcoker solved his own problem with the following solution
Problem has been solved by switching to Visual Studio 2010, works without a hitch. Thanks for the speedy responses.

Related

SQL error when starting project in VS

I am learning asp.net / C# at my job. I was practicing using VS community edition. Now I have installed 2017 professional edition and SQL Server 2012 (after removing CE version). When I try to run a project in VS, I get this error message: Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Googling this error tells me that it is trying to access components from SQL CE 4.0. How can I ensure that SQL CE is completely removed from my machine? Are there any other ways to address this problem?
Try removing the reference of the 'System.Data.SqlServerCe' from your project as I understand that you don't need it anymore.
You can do this by right clicking in references of project and unchecked it or by deleting from web.config
You need to remove the reference to SQL CE. By the text of the error message, the refence would be System.Data.SqlServerCe. Here's more on how to add or remove references to a project
Hope it helps.

'Could not retrieve schema information for table or view' error in VS 2017 - M Access 2016

I'm trying to connect my Visual Studio project to a Microsoft Access database locally on my machine, I'm able to open the database correctly in Microsoft Access and I even tried making it empty of records and as simple as possible, when I'm adding it in Visual Studio and when I test the connection it says Test connection succeeded, and it's showing me the database, it can find the table name with all the fields, but when I hit finish I get an error message saying :
Could not retrieve schema information for table or view [database table name]
I'v searched a lot and I'v seen this post on StackOverflow but it did't help. I'm still getting that error, and this is a short clip on what's happening.
Can someone please help me here!
I finally figured it out, I opened the Visual Studio Installer and I downloaded and installed the SQL Server Package and then tried and it worked just fine.
Knowing that I tried installing the SQL Server 2017 using a stand-alone installation but it didn't work, so you need to install it form the same Visual Studio Installer.
Here is an image of that :
I really find it fascinating when the things that supposed to be harder than other things like problems using MySQL with PHP to control an online Databases is easier to solve than using a local databases and Microsoft Access.
Hope this solves someone that has the same problem :)

Action Microsoft.crm.setup.shared.analyzerbase+collectaction failed

I tried to install the Microsoft Dynamics CRM 2013 Report Authoring Extension (with SQL Server Data Tools support) after I successfully installed the Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012 but an error came out saying I didn´t have the requisites, which was Visual Studio 2010.... and I have 2012... so, I downloaded the 2015 version, and once I tried to install it, after the updates and some downloads the setup does, the error: Action Microsoft.crm.setup.shared.analyzerbase+collectaction failed appeared and it wouldn't let me go any further.
I found this article but is not exactly the same error:
https://support.microsoft.com/en-us/kb/2988630
And it lead me to delete some register files.... which is not always the best practice. If I could find something better.
I'm running Windows 8.1.
Anyhelp would be appreciated.
Ok..... I found the solution, as it is documented in this link:
I took a chance and deleted the specified registry.
"Expand the Windows Registry tree to the following registry directory:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0EF1E6B4EFCDA2649B26A424D56DAACD"
The installation ran smoothly afterwards. Thanks for your time.
I got encountered this error while uninstall the MSCRM and I searched a lot but anything not helped.
At last I got resolved this issue when stopped the Microsof CRM Asynchronous Service from service.msc

How to deploy SQLServer CE for VSPackage?

I like to deploy SQLServer CE privately on my VSPackage application.
I already tried the following information:
Using Entity Framework with an SQL Compact Private Installation
as well as this one:
How to deploy SQL Server Compact Edition 4.0?
But I still get the following exception message:
The specified store provider cannot be found in the configuration, or is not valid
I guess the above methods do not work for me because my VSPackage will appear as a DLL, while the above methods work for an .EXE application.
Any suggestion how can I do it?
Thanks
Most likely, Visual Studio cannot find and load one of SQL Server Compact Edition assemblies. By default, Visual Studio don’t look dependent assembles in a VSPackage folder if VSPackage code have not explicit reference to such assembles. I described several ways to solve this problem here. Hope it help you.

Visual Studio: SQL server object explorer error

I cannot figure out how to remedy this error when I select the SQL server object explorer.
Could not load file or assembly
'Microsoft.Data.Tools.Schema.Utilities.Sql.11 Version=11.1.0.0
Culture=neutral, PublicKeyToken=**** or one of its dependencies. The system cannot find the file specified.
I have asked on the microsoft forums but I figured people who actually work with this daily may have a better response. I am a new user with VS so my knowledge is limited. I have updated VS and I have SQL server 2012 installed on this machine.
Thank you in advance for helping me make sense of this error.
Getting the same with VS 2013, maybe the same root problem:
Could not load file or assembly
'Microsoft.Data.Tools.Schema.Utilities.Sql.12 Version=12.0.0
I was able to resolve this by getting the most recent version of Microsoft SQL Server Data Tools. This is under the tools menu:
Tools >> Extensions and Updates >> Updates

Resources