Short question: I have a visual studio 2015 database project. In my solution. I am using the database first approach for handling my datalayer. How do I open the actual database for management. I can not seem to find any type of SQL server database management tool.
Long question: I am creating a visual studio 15 web application. I am using the visual studio database project for creating and managing the database schema. I was able to create the database during the database compare and update. My server name was "(localdb)\ProjectsV12". I was also able to create my entities from the database. So I know the database exists somewhere. I have never installed anything more than the SQL server express on my local box (I usually use Azure SQL).
According to the error log it is a Microsoft SQL Server 2014 - 12.0.2000.8 (X64) ,Express Edition (64-bit) on Windows NT 6.3 (Build 10240: )
I also have a windows 10 box running Visual Studio 15. So where is the sql management tool?
The localDB is only for development
it can be accessed from server explorer in VS2015 --> Data Connections
connect to server "(localdb)\ProjectsV12" and your DB name
Be aware that you can have multiple SqlLocalDB instances installed on your computer and you can list them by opening up a CMD Window and executing the following command
sqllocaldb versions
For your reference:
The Visual Studio Server Explorer probably gives you all you need, but note you can also connect to localdb from SQL Server Management Studio (download), which is the de facto standard for managing SQL Server databases.
Related
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.
I am a new SQL Server programmer and this is my first question on stackoverflow.
Anticipating your help...
I have these installed in my PC: Windows 7 ultimate SP1 + SQL Server 2012 Enterprise + Visual Studio 2010 (SSDT which came with my SQL Server 2012). What I want to do is create a database from SSDT.
In server explorer, I right clicked the data connection -> create new SQL Server database. After I input my server name and choose "Use Windows authentication" (which is the case with my SQL Server 2012), I got this warning:
This server version is not supported. Only servers up to Microsoft SQL Server 2008 are supported.
What shall I do? Shall I upgrade to Visual studio 2013 or I have other options?
Much appreciated if anyone can help.
Visual Studio isn't really the issue here. And you didn't say why you installed VS 2010 (are you actually developing apps with it?). If you're not actually developing in VS, I would remove it and just install the latest SSDT. This will install a VS shell, containing enough functionality to fully run SSDT. Then you should be able to create SQL Server 2012 databases, which I assume is what you want to do.
justI'm getting this error message when trying to add a new connection in VS 2008 Server Explorer.
Unfortunately I'm working in a PC that my client company gave me, and I need to ask permissions to install new software there. This PC has VS 2008 and a pretty old Sql Server version(2000 for what I can see).
I used to think VS doesnt need an additional SQLServer install just to connect, but I guess I was wrong...I want to develop an app that connects to SQL Server 2008, and after testing connection it prompts the error mentioned above.
Is there a way to connect succesfully without installing a newer Sql Server version on my side?
Please, if there is no way to do it, just answer no and let me know, thanks in advance.
As Visual Studio 2008 was released before SQL Server 2008, the development environment database tools were coded without knowing about SQL Server 2008.
However, since these versions of Visual Studio were released before
SQL Server 2008, the design-time tools cannot interact with SQL Server
2008 - even though it is possible to programmatically access the data
in a SQL Server 2008 database from applications written with Visual
Studio 2008 or 2005
Source: Connecting to Microsoft SQL Server 2008 from Microsoft Visual Studio 2005 and 2008
Luckily, Microsoft did release a patch for both Visual Studio 2005 and Visual Studio 2008, which is also referenced in the article (to save you reading the whole thing, for Visual Studio 2008, you need to install Visual Studio 2008 Service Pack 1)
Has made a .sdf database file in Microsoft Visual Web Developer 2010. When I try to open it in SQL Server Management Studio 2008 Service Pack 3, it displays error message:
Cannot connect to C:\Users\Xtreme\Documents\Dishes.sdf.
Incompatible Database Version. If this was a compatible file, run
repair. For other cases refer to documentation. [ Db version =
4000000,Requested version = 3505053,File name =
\?\C:\Users\Xtreme\Documents\Dishes.sdf ] (SQL Server Compact ADO.NET
Data Provider)
What is wrong? There is no problem to work with the .sdf in Microsoft Visual Web Developer 2010.
You cannot use SSMS to open SQL CE 4.0 Database files.
You can use the Microsoft Web Platform Installer to load VS Tools for SQL CE 4 however.
source: http://social.msdn.microsoft.com/Forums/en/sqlce/thread/a9fca12d-6403-47ff-ab6b-fc1db42205c3
WebMatrix should be able to view/edit these database files as well.
Check out Erik EJ's web log - he has a ton of tools for handling all sorts of operations with .sdf files, and also an extensive list of third-party tools that work with SQL Server Compact Edition's .sdf files.
1.Open SQL Server Management Studio, or if it's running select File -> Connect Object Explorer...
2.In the Connect to Server dialog change Server type to SQL Server Compact Edition
From the Database file dropdown select
3. Open your SDF file.
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