Visual studio 2010 and Sql Server - sql-server

Do visual studio 2010 include already Sql Server instance, or I need to install Sql Server developer edition to develop an application that need a Sql Server db.
If it installs a Sql Server express edition, it this enough or it's better to have Sql Server developer edition?

I would second that installing the "full" SQL Server Development Edition makes sense if you do serious database development.
However you can have both installed side by side, and having SQL Server Express is very useful for one reason - it supports placing database files in the App_Data folder of ASP.NET applications. While I don't do this for my own projects, it's a very nice feature for demos or open source applications you download from the web: just unzip, start VS, hit F5, and you have a running solution including database. Without SQL Express, you first have to move the MDF file, attach the database, set up user rights, replace the connection strings etc...

The Visual Studio 2010 installer gives you the option of installing SQL Server 2008 Express Edition. This edition of SQL Server is good enough for development purposes but is not intended for production use.

I think the size limitation is not the main issue.
In Sql Server 2008 you have some features in Sql Server Management Studio that aren't available in the Express management Studio or the Express database engine, like:
- suggesting the table and column names (in Query Window)
- Sql profiler
Cor Westra

Related

Remove SQL Server Express before installing the Developer edition

Planning to install SQL Server Developer edition. Should I remove SQL Server Express that came with Visual Studio before installing it? Can they work together? Is there any reason not to remove SQL Server Express?
Visual Studio installs SQL Express LocalDB, which provides on-demand SQL Instances in the user's desktop session. The SQL Server Data Tools requires this, and it's handy also for other development and test scenarios.
Also there's no reason to remove it.

How to get GUI on SQL Server 2012

I have installed a Evaluation 180 days version of SQL Server 2012 from the official website of Microsoft, on a Windows Server 2012 R2 (with gui). At the end of the installation in the Installation center, everything passed and succedeed but when I quit the program, I don't have any way to execute SQL Server from a graphical interface. I can see MS instances created, services running but how can I get a GUI to work with SQL Server?
With the newer version of SQL Servers, the SQL Server Management Studio (the GUI) is a separate install and you will need to install it separately to the database engine installation (which is what you have done). You can download SSMS from here https://www.microsoft.com/en-us/download/details.aspx?id=29062. The page contains a lot of different download components, make sure you check the appropriate install and click download.
ENU\x64\SQLManagementStudio_x64_ENU.exe if you want the 64bit installation of SQL Management Studio
ENU\x86\SQLManagementStudio_x86_ENU.exe for the 32bit version.
you Need to Install SSMS
SQL Server Management Studio (SSMS) is a tool to manage and administer SQL Server and SQL Database.
SSMS is offered free of charge by Microsoft.

can I use SSDT/BIDS/SSIS using SQL Server 2012 express?

Ideally, I want to make SSDT/SSIS packages on my desktop PC that I can test and deploy to a production server environment.
On my PC I have:
Windows 7
Visual Studio 2008
Visual Studio 2010 (shell)
SQL Server Express 2012 (local dev copy of prod)
[supposedly] BIDS (Business Intelligence Development Studio) and SSDT (SQL SErver Data Tools) etc.
On my production server I have:
Windows Server 2008
SQL Server 2012
Visual Studio 2010 (shell)
I cannot load/run SSIS (SQL Server Integration Services) onto my machine because SQL Server express doesn't allow for it, as suggested by these articles:
http://support.microsoft.com/Default.aspx?id=963070
http://msdn.microsoft.com/en-us/library/cc645993.aspx#SSIS
And I am getting this error when trying to look at a "package.dtsx" file in VS:
Microsoft Visual Studio is unable to load this document: To design
Integration Services packages in SQL Server Data Tools (SSDT). SSDT
has to be installed by one of these editions of SQL Server 2012:
Standard. Enterprise. Developer, or Evaluation. To install SSDT, run
SQL Server Setup and select SQL Server Data Tools.
When I run the SQL2012Express installer, it says SSDT is installed already.
Question #1: But why can't I just point a local VS2010/SSDT/SQL2012Express at my production SQL2012 environment? (Microsoft is getting their money legitimately!)
Question #2: I can get it to work on the production server, but isn't it bad form to develop on a production server? (and it complicates source control etc.)
You must have One of those versions installed. The SQL server express edition with advanced tools only includes reporting. Not ssis. Sql serverv dev edition is actually pretty cheap.
To be able to create SSIS packages you'd want the following:
1) For SQLServer 2008 SSIS packages - BIDS, either integrated into VS2010 or as a stand-alone. If you also want SQL server, then I'd use the dev edition of SQLServer that is an optional install with VS2010.
2) For SQLServer 2012 SSIS packages - download and install SSDT, either integrated into VS2012 as as a stand-alone. If you also want SQL server, then I'd use localDB (here).
Also, SSDT is two things - an improved replacement for 'Data Dude' AND the new BIDS - here's a blog with explanation.
"Microsoft Visual Studio 2010 does not support Business Intelligence Development Studio Integration Services, Report Services and Analysis Services projects for SQL Server 2008 and SQL Server 2008 R2. To work around this issue, you can install Visual Studio 2008 alongside Visual Studio 2010 on the same machine and then open the Business Intelligence Development Studio projects in Visual Studio 2008."
http://msdn.microsoft.com/en-us/library/ms173767%28v=sql.105%29.aspx
Guess this means: NO BIDS projects are possible under VS 2010.

Installing and distributing SQL Server without Management Studio

Have developed a small Windows application using SQL Server as its database.
I need to give the installation pack to my customer, and include the required SQL Server 2005 Enterprise Edition.
How can I distribute my database without including Management Studio?
You client is going to have to pay a good amount of money to licence the Enterprise version.
You can either:
give them the SQL2005 Express (which you can redistribute)
get them to use Microsoft's Web Platform Installer
You could also use SQLExpress 2008, the client can download either the x86 or x64 editions via this page. You can't stop them from getting SQL Management Studio if they want to (it can be found here), although i'm unsure if the express version has the query analyzer.
Instead of SQL Server enterprise edition you can give Express edition. Express edition is free to re-distribute and use.
There are 3 installation files in SQL Server 2005 express.
1. Windows Installer
2. SQL Server 2005 express
3. Managment studio express
In your case you can install the first two. However SQL Server can be accessed by command prompt also.
SQL Server management studio is another application and does not come bundled with MS Sql server.
SQL pack should only contain SQL Server express edition and not enterprise edition as that is not free and your client will have to pay for it.

Why won't Visual Studio 2008 create .mdf files with SQL Server 2008 Developer installed?

I'm trying some of the ASP.NET MVC tutorials and one of them has the following steps:
Right-click on the "App_Data" folder, and choose "Add New item"
Choose "SQL Server Database" under the "Data" category.
However, once I do that, I get the following message from Visual Studio:
Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function proprely. Please verify the installation of the component or download from the URL...
The thing is that I have SQL Server 2008 Developer Edition installed, and I would really rather not install any Express versions (2005 or 2008) if I don't have to. Is there a work-around for this issue?
I ran into this problem too on 64-bit Windows 7 (using 64-bit SQL Server Express 2008).
There are two methods of fixing this problem referenced in the Microsoft Support Knowledge Base article:
1. Workaround
To work around this problem, uninstall
the 64-bit version of SQL Server
Express 2008, and then install the
32-bit version of SQL Server Express
2008.
If you don't want to do the uninstall/install, then try the Hotfix method below.
2. Hotfix
A supported hotfix is now available
from Microsoft. However, it is
intended to correct only the problem
that this article describes. Apply it
only to systems that are experiencing
this specific problem.
Although the article itself doesn't include a link to the hotfix, you can get it here:
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=957944
To illuminate masfenix's reply, SQL Express supports one feature that is not supported by full-blown SQL Server: a "user instance" database. With SQL Express installed and an mdf file in your App_Data folder, the application will dynamically attach and detach it as needed. For hobbyist or small business sites, this may be perfect. If you're running SQL elsewhere in the enterprise, you probably don't want to go this route and therefore the feature isn't useful to you.
Actually SQL express is a whole different database engine then SQL Server 2005. So yes if you want to use mdf files you'd need SQL Express.
I want to point out that I have both Developer edition and Express edition installed. And I still run into the same error. I think Express edition must be installed as a single instance.
I have the same problem but I've sql 2008 express installed.
any way to make it work with sql 2008 express so I don't have to install the 4th sql instance on my machine??
I already have sql 2005, sql 2008, sql 2008 express
what the F... :)

Resources