I am new to LinqPad.
I downloaded a .sdf file from the internet (i know what it is) I wanted to view its tables. So I googled "how to read .sdf files" and came across Linqpad, which I installed.
When I browse to my .sdf file from LinqPad and try to open it as a connection, I get the message "Unable to find the requested .Net framework data provider, it may not be installed"
Does this mean i need to install SQL CE before using LinqPad? I assumed LinqPad was the program to view tables, run queries, etc and that I did not need the original db program.
Please advise on what the error refers to and best way to resolve. thanks
To answer your question, yes you do have to install it. I just ran across this problem while trying to connect to a Sql CE 3.5 DB in LinqPad. You have to have the proper version installed first. I only had 4.0 installed and was trying to connect to a 3.5 DB. So had to use the SSCERuntime msi found here to install the items shown below:
Just go to that link and download it somewhere and then run the msi(s).
Note the following:
It is mandatory to install both the 32-bit and the 64-bit version of
SQL Server Compact MSI files on a 64-bit Computer. Installing only the
32-bit version of the SQL Server Compact 3.5 SP2 MSI file on a 64-bit
computer will lead to failure of the existing SQL Server Compact 3.5
applications on the Computer.
So just follow the instructions shown in the "Install.txt" that is downloaded with the msi's.
After installing them I had to close and reopen LinqPad and then the connection worked.
I'll add a variant on Kasper's solution. For the case of connecting to SQL CE 4, I appeared to already have the SQL CE4 runtimes installed yet I still got the same error.
Trying to install the latest SQL CE 4 from Microsoft reported that a newer version was already installed and aborted the install.
Uninstalling the "newer version" and then installing the latest download fixed the problem for me.
I'm not sure how I got that original version, that's "newer" than the latest from Microsoft. Possibly from an older Visual Studio install.
You first need to make a connection to your database. You can do that by clicking "Add Connection", "Default Linq to Sql connection" and then marking your version of SQL CE on top and providing the information.
LinqPad is not just viewing tables, run queries etc. It is much more than that.
Related
I need to upgrade Microsoft SQL Server Management Studio 17 (AKA ssms) or perhaps just the ODBC SQL driver because when I try to open a DB from copied datafiles (mdf and ldf) that came from another machine it cannot be opened because it is version 869. And my machine apparently supports version 852 and earlier.
If I want to sideload the latest ssms 18.4, I can't upgrade because it needs to remove that version. There's a pop-up that it needs 'Microsoft ODBC Driver 17 for SQL server' (that needs a msodbcsql.msi file).
So I need the msi of that specific version, could anyone provide this for me because I can't find it anywhere online. :-(
I even ran the FixMissingMSI tool that scans your system for missing msi's:
https://github.com/suyouquan/SQLSetupTools
I ran into similar problem today. Performed uninstall of ODBC 17 driver using following tool from Microsoft,
https://support.microsoft.com/en-nz/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed
After doing this SSMS setup was successful.
I recently installed Microsoft SQL Server Management Studio 2017.5 in order to connect to some Azure resources. When attempting to connect to any db (including my localhost) I get an error saying:
'Could not load file or assembly 'Microsoft.AnalysisServices.AppLocal, Version=14.0.0.0,Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
I have looked in the C:\Windows\assembly\GAC directory and do not see the assembly there as I believe it should be.
Is there some way I can either download the assembly or repair ssms?
UPDATE:
After many hours of struggling I found a procedure to solve this issue.
Uninstall SSMS completely
Delete the C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio directory
Reinstall SSMS 17.5 and it should work now.
Looks like its a partial removal on upgrading from previously installed versions.
After many hours of struggling I found a procedure to solve this issue.
1) Uninstall SSMS completely (and all versions of it)
2) Delete the C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio directory
3) Reinstall SSMS 17.5 and it should work now.
Looks like its a partial removal on upgrading from previously installed versions.
For me upgrading to latest version 17.9.1 did help. Upgrade details can be found at following Microsoft page:
https://learn.microsoft.com/en-gb/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017
You can download the SQL Server Management Studio 17.9.1 Upgrade Package (upgrades 17.x to 17.9.1) and install it.
Cheers.
I've got a new instance of VS2013 and I'm trying to set up a SQL Server CE instance to test against.
I can't seem to even get started. I've installed the SQL Server CE Toolbox plugin, and when I open it all I get is a message that says
The database has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method
What database?
If I try and "Remove Broken Connections" I get a dialog with the same error message.
If I try and connect to an existing Northwind.sdf test connection works but when I say "OK" I get a dialog that says "Please tell ErikEJ about this problem"
Rename/delete the files named SqlCe35AddinStore.sdf and SqlCe40AddinStore.sdf located in C:\Users\your name\AppData\Local (%appdata%).
Also make sure you have either SqlCe 4.0 or 3.5 properly installed.
The issue here was that the 3.5 installtion was broken, I will also attempt to improve the check for the precense of 3.5
I'm trying to install SQL Server Express with Service Pack 1 on my Win8 Pro (x64) development machine and I'm consistently getting an error 0x84b10001 when trying to install it:
Antivirus is disabled during the installation (done as Administrator) and I tried 2 versions of the SQL Server Express package and I'm getting the same issue with both.
I'm getting the same issue whether I'm trying the x86 or x64 packages.
I suspect that the issue comes from the fact that Visual Studio 2013 has already installed some SQL Server packages but I do not see any way to update and modify these to add the Management Studio for istance.
Well, turns out that this cryptic error is due to an older instance of SQL Server Desktop Engine (MSDE) being present.
After uninstalling MSDE, the SQL Server 2012 setup worked without errors.
Create a new local user with administative rights and try the installation again. In my case it solves the problem with MSSQL 2008R2.
Create new user with administrative privileges and install using that user. It worked.
Remove folder:
C:\Users[USER ID]\AppData\Local\Microsoft_Corporation
It worked for me.
If you try to install SQL Server 2014 and get this error, use this web site:
http://anewdomain.net/2013/10/21/how-to-enable-net-framework-2-0-and-3-5-in-windows-8-1-for-older-programs/
You should install .NET Framework 2.0 and 3.5 first. You should check the framework versions on your PC. If you have only 4.5, you will continue to get the same error code.
Anyway, I fixed my trouble.
I hope it helps you too.
In my case, it was because trying to install an x86 package on an x64 windows, installing x64 package worked for me.
I have been running SQL Server 2005 Express Management Studio ("SSMSE"), and I now have a need to install the full version of Management Studio ("SSMS"). This is a known hassle, but I've not found a comprehensive way to carry it out.
At first, I uninstalled SSMSE, and then ran SqlRun_Tools.msi to install the toolset. I got this error message:
A component that you have specified in the ADD_LOCAL property is already
installed. To upgrade the existing component, refer to the template.ini
and set the UPGRADE property to the name of the component.
I had no idea what template.ini was. So I looked around, and decided to uninstall the rest of the minimal installation of SQL Server 2005 Express on my computer by following Microsoft's advice in KB 909967, "How to uninstall an instance of SQL Server 2005 manually." That bit was very successful.
But when I attempted to run SqlRun_Tools.msi again, I faced this mess when the installer was "Preparing Installation Wizard":
The setup has encountered an unexpected error in datastore. The action
is SetDialogs. The error is : Source File Name:
...\datastorecachexmlschema.cpp
**** Compiler Timestamp: Fri Jul 29 01:13:50 2005
**** Function Name: DataStoreCacheXMLSchema::initScopeRecord*****Sour...
(but replace the asterisks with box chars, which were probably CR-LF's in the original message)
This is very frustrating. Does anybody have any advice for installing the full version of SSMS over top of SSMSE? Any help you can provide would be greatly appreciated!
I have also installed SQL Management Studio before just using the SqlRun_Tools.msi package without any problems but I think if you have previously had any other SQL Server 2005 components installed then you will need to install the Setup Support Files first as this is probably what sets up the component installation sequence. This can be done either by installing from the SQL Server installation media or by running the sqlsupport.msi file as described in the Microsoft KB article.
I resolve this problem
Steps
Go to Add\remove program
unstall SQL server browser
Install support files from CD
Install SQL_Tools.MSI
Well, I roughly found out what the problem was, based on a somewhat cryptic resolution mentioned across a few different forums. This solution suggested that I needed to install Setup Support Files. Maybe it was reinstall, since I removed something with the same name when uninstalling SQL2K5 Express. I'm not sure if they were the same files, between the full version and the Express Edition.
I had tried reinstalling SQLXML4, the Native Client, and MSXML6 just to see if I could get beyond the error involving datastorecachexmlschema.cpp, and each time, I got the same error again. But I tried the technique mentioned in the above link, and it worked perfectly.
Basically, you insert the CD and run just the first part of the installation process, which installs the installation tools, including Setup Support Files. Then you cancel the rest of the installation process, and run SqlRun_Tools.msi instead.
I got great results when upgrading 2008 express to 2008 developer by (running setup) first going to Maintenance->Upgrade Edition, and then (since Management Tools etc was still "express" and I mainly needed the Sql Profiler) I also did a complete "new" installation (Installation->"New installation or add features.."), selecting the existing instance and then selecting all features.
No uninstall or command line necessary.
Behaved the same afterwards, just with new features.