Cannot install Visual Studio Express without adding SQL Server Express - visual-studio-2010

I would like to install Visual Studio Express, but Microsoft insist you get it using a tool called 'WebPI', which then tells me I have to download SQL Server 2008 R2 Express as well.
http://www.microsoft.com/express/Web/
Since I already have the full version of SQL 2008 R2 installed, I would rather not! So how can I get past this WebPI annoyance? It won't let me opt out of the SQL install, and it asks me to set a "sa" password before I can carry on! I don't want it to overwrite my current SQL install.
You can avoid WebPI and download a .ISO file from here...
http://download.microsoft.com/download/1/E/5/1E5F1C0A-0D5B-426A-A603-1798B951DDAE/VS2010Express1.iso
...but that is a 600Mb file so I assume it includes SQL too.

Finally I spotted an .EXE link on a random forum...
http://download.microsoft.com/download/0/D/6/0D600544-AD1A-45FB-8D40-838EBF3C03EC/vwd_web.exe
...only 3Mb so looks about right....but then it still says it wants to install SQL R2 Management Objects and then fires off a 124Mb download!
Eventually this seems to have worked, and hasnt killed my existing SQL R2 install.

wouldn't it be better to uninstall SQL 2008 R2 and then install visual studio

Once you click on the install button it shows you the download links to all of the individual files it will download and install, you can then click on them individually leaving out the files you don't want.
At least I hope that's the case, I'm just trying that now.

Related

SQL Server Compact 4.0 does not work in VS 2010 SP1

I've installed SQL Server compact 4.0 local database and I've added a database. However, if I try to open my database, an unknown errors occurs.
I tried to restart my VS 2010 after install the SQL Server, but it does not help and I cannot open my database.
How to resolve it?
Have a look at the following blog
In this blog you will see that you need to download an additional tool to make it work with visual studio 2010. The link to this tool is present in the same blog (search for the text below) or you may download it using the Web Platform Installer.
Visual Studio 2010 SP1 Tools for SQL Server Compact 4.0
I did not pay attention on a error message: "event log file full".
I just cleaned eventviewer in Windows and all became okay:).
I spied this topic:
I just emptied the event log and tried again:
Windows-R ("Run")
eventvwr
For each event log (in the left hand pane) right-click and select "Clear all events" (backing up the existing log if you care)

Why do I have Sql Express installed with Visual Studio when I already have Microsoft Sql Server Developer?

What benefit do I derive from installing Sql Express with Visual Studio (2010) when I already have Microsoft Sql Server Developer (2008)?
The only benefit I can imagine is that I can develop for either platform without having to be concerned with which one(s) I have installed. Is there an actual negative detriment to removing Sql Server Express (specifically the SqlExpress instance) from my development machine?
The only advantages I can think of to having Express as well are:
if you want to develop applications that specifically target Express, using Express can help prevent you from using features that work in Developer but won't work on your targets (e.g. compression, partitioning).
if you already have applications that use the Express instance, they will obviously stop working until you move those databases to the other instance and update the apps to point at the other instance.
If neither of those situations are relevant, I can't think of a single downside to removing the Express instance. To be safe you may want to start by stopping and disabling the Express service for a week, just to be sure nothing you have is relying on it.
Note that uninstalling Express from Programs and Features will remove the engine but it will leave any of your user databases intact. So there is no fear of data loss, provided you stop the SQL Server service gracefully before you uninstall it.
To remove SQL Server Express, you would right-click whichever of these items appears in Add/Remove Programs / Programs and Features:
Microsoft SQL Server 2008
Microsoft SQL Server 2008 (64-bit)
(There should only be one of those unless you've got a really messed up set of instances on an x64 machine.)
When you right-click, select "Uninstall/Change"
You'll get a dialog box adding if you want to add, repair or remove; select remove
Next you'll see a "Setup Support Rules" dialog - if OK is available, click it, otherwise you will probably need to restart your computer before proceeding
Then you'll be on the "Select Instance" screen. There is a dropdown called "Instance to remove features from:" - select SQLEXPRESS and click Next
Then you'll have a screen called "Select Features" - here you'll want to select "Database Engine Services" only (I don't think you want to remove any of the shared features). Click Next
Should be smooth sailing the rest of the way, but as mentioned you will have to clean up the folder, which is probably:
C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\
Should be safe to delete everything there unless you want to save any of the user databases. You might also search for .mdf files you want to expunge or save that may have been copied to various parts of your system due to use within an application or during development.
SQL Server Developer edition doesn't include User Instances feature (aka RANU) that is only available in SQL Server Express edition. Visual Studio 2010 and earlier is using User Instances to open MDF files embedded in your projects. With Developer edition, but without Express edition you would see an error if you tried to open these files.
Now, Visual Studio 2012 includes LocalDB version of SQL Server 2012 Express for this purpose.

SSIS Script Editor throws an exception

I have SQL Server 2012, SSIS, SSDT and Visual Studio 2010. I can create a new SSIS package and add a Script Task, but if I attempt to open the Script Editor for that Script Task I get the following error:
TITLE: Microsoft Visual Studio
------------------------------
Cannot show Visual Studio 2010 Tools for Applications editor.
------------------------------
ADDITIONAL INFORMATION:
Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Core, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (mscorlib)
------------------------------
BUTTONS:
OK
------------------------------
From my own investigation into this error, I found that Visual Studio Tools for Applications appears to be a part of MS Office 2007 and higher. This seemed like an odd dependency for to have, but I installed MS Office 2010 just for grins. It didn't change anything. What else should I try?
You will also get this error, if you are trying to debug a script task in VS 2010 and Run64BitRuntime is set to true. In order to debug, set it to false.
I was getting this error and nothing I came across corrected the problem until I logged off as my normal user and logged in as my local admin user. Once I logged in as an admin I could edit the script in my package. Once I logged back in as my regular user the edit script button worked for it too.
I assume it needed to register the assembly on the first launch and couldn't with my regular domain user.
I also got this same error when trying to open the Script Editor, but for a different reason. Not sure how it happened, but I had 3 copies of VSTA (different versions) installed. Once I removed all of them and re-installed SQL Server 2012, problem solved. Hope that helps.
For me the solution was:
close bids (I'm on 2008r2)
reopen
edit the script (it allowed me to edit it once after restarting bids)
delete all breakpoints
make a trivial change, such as adding a blank line
save
That solved it for me.
This worked for me without doing any kind uninstall.
My environment:
Microsoft Visual Studio 9.0 (2008)
Solution:
Go to cd "C:\program files (x86)\microsoft visual studio 9.0\common7\ide\"
Execute command vsta.exe /setup /hostid SSIS_ScriptTask. This will open VSTA with blank project. Let it open and then close it.
Execute command vsta.exe /setup /hostid SSIS_ScriptComponent. This will open VSTA with blank project. Let it open and then close it.
Open your solution/packages that contains the script task.
Click Edit button in Script task and it should open now. Just in case if it dont, I would suggest to keep the blank vsta of step 2 & 3 open and then click the Edit button in script task.
Took almost two hours and thankfully it worked for me. I did not have admin right to perform all that nasty uninstall and registry edit solutions.
Hope it helps someone!!!
Reference : http://blogs.msdn.com/b/jason_howell/archive/2010/08/18/vsta-setup-and-configuration-troubles-for-ssis-2008-and-r2-installations.aspx
Cannot show Visual Studio 2010 Tools for Applications editor.
Just follow the below solution:
Go to SQL Server Setup folder.
Inside that folder "redist".
Under that one more folder "VSTA".
Under VSTA folder "X86" and "X64"
Install the VSTA_RT30.
It works fine.
I figured out my problem this morning. When I uninstalled SQL Server 2012 (and the remnants of 2008 left behind when I upgraded last month) I also uninstalled 3 packages that were actually part of Visual Studio 2010. Had I not done this, a reinstallation of SQL Server 2012 would probably have done the trick, but instead I found new errors. When I reinstalled these 3 packages from the Visual Studio 2010 distribution media, everything started working.
The 3 packages in question were:
Microsoft SQL Server 2008 R2 Data-tier Application Project
Microsoft SQL Server 2008 R2 Data-tier Application Framework
Microsoft SQL Server 2008 R2 Transact-SQL Language Service

How to make data access related features work on my Visual Studio 2010 installation?

(I'm sorry if this ought to be asked somewhere else)
I get the following error message each time I want to access some data-related feature from my VS installation:
That is either rewire my ORM of choice, or test a database connection visually through the Server Explorer, etc.
What exactly should I reinstall here?
I do have Compact Framework installed, just in case here is a list of the related programs and features installed on this environment.
You need the "Visual Studio 2010 SP1 Tool for SQL Server Compact 4.0" and same for 3.5 (assume they are already installed) - see http://erikej.blogspot.com/2011/01/sql-server-compact-40-released.html

How do I open a SQL CE4 .sdf database file?

I installed Microsoft WebMatrix, which, I believe comes with SQL Server CE4. I've tried opening the SDF file in SQL Management Studio (SQL 2008), but I get the following error message:
-------- Microsoft SQL Server Management Studio:
There is no editor available for
'C:\efTest\App_Data\SchoolRepository.sdf'.
Make sure the application for the file
type (.sdf) is installed.
How do I view/modify my .sdf database?
I see there is a similar question on StackOverflow (http://stackoverflow.com/questions/4070860/sql-compact-4-0-cant-open-read-sdf-file) but I would really like to use Management Studio if I can, and not another 3rd party tool.
Have you tried the SQL Server Compact Toolbox?
or the SQL Compact Query Analyzer?
You can download sql ce through web api just follow this link
visual-studio-tools-for-sql-serverl
to do that.
Here are a couple which have worked quite well for me in terms of connecting to SQL CE 3.5 and 4.0 databases:
LINQPad - (See my remark to question) It works quite well plus it allows for specifying LINQ or SQL for queries.
CompactView - Seems pretty full featured + install creates a nice Windows file association so one can simply double-click to open/connect to .sdf files for instance.
All of the other options require SQL CE 4.0 Database Provider installed on your machine.
This one doesn't need provider http://sqlcequery.codeplex.com/
If you are using Visual Studio 2015, 2013, 2012, 2010, try SqlCeToolbox.4.5.0.3.vsix. It is SQL Server Compact/SQLite Toolbox for Visual Studio.
The link:
http://www.sokhawin.com/how-to-open-sql-compact-edition-file-sdf-in-visual-studio-or-linqpad/
It has ability to open and edit.

Resources