how to create database in visual studio 2010 when sql server installed? - asp.net

I want to create a database(.mdf) within my website. When i try to add sql server database by:
right clicking the project->add new item->Sql Server Database. I get the following error:
I have sql server 2008 installed on my machine and i have been using it to connect to different databases of sql server by going in the "Server Explorer" section of Visual Studio, as shown below:
But when i try to create a database with my website, i am having problems. I am using Visual Studio 2010.
Please help?

Related

Why is no database shown in Visual Studio?

My SQL Server Object Explorer is not showing any databases:
I also get an error A network-related or instance-specific error occurred while establishing a connection to SQL Server. .... When I run the website, the error being shown is The system cannot find the file specified. Furthermore, SQL Server is missing from Services:
(It was installed together with Visual Studio and was never used separately)
Yesterday, everything worked like charm; I had multiple databases with tables and was able to access the data. Today, the same project can't even start, no db's either. What's wrong with Visual Studio here? Thanks
I've had the same problem before. Took me a while to figure it out. What you need to do is go here: https://www.microsoft.com/en-us/download/details.aspx?id=42299
In my case, i'm using SQL Server 2014 Management Studio. You must find the one that suits the version of SQL studio that you're using (2008, 2012, 2014).
Click the big download button and now, it is very important that you choose the proper version. Check:
Express 32BIT\SQLEXPR_x86_ENU.exe if you're running on a 32-bit PC, or
Express 64BIT\SQLEXPR_x64_ENU.exe if you're running on a 64-bit PC
It is very important that you install Express version.
Next, once you install that, you should be able to see the SQL Server (MSSQLSERVER) in your services.msc, along with few other SQL services installed.
Open Visual Studio 2015 and in SQL Server Object Explorer window right click on SQL Server and choose Add SQL Server... option. It should prompt you to connet to the server from SQL Server Management Studio.
If you kept everything by default during the installation, just type . (dot) for the Server name and click connect. Now it should load the database.
It turns out that Visual Studio does not come with MS SQL Server in the default installation. It is necessary to install SQL Server Data Tools from the MS website manually. VS custom installation also allows to do that, but you will need an installer. Just make sure to select SSDT in the custom installation components menu. Additionally, I also ran an update from VS itself that allowed me to install SQL Server 2008, 14, and 16. I am finally able to access DB in VS!

sql express table don't have "Create table" option in ASP.NET

I just opened new Sql express database in visual studio 2013.
now, when I go to this database in Server Explorer and trying to create a table in Tables, I don't have any create option. I have only 2 options: Refresh and Properties.
everything is define well, if I go to Modify connection and press Test Connection
I'm using SQL SERVER EXPRESS 2014.
Waste too much time on it
solved it :-)
i was missing "Sql server tools" in Visual studio 2013.
you can search it and download :
VS 2013 -> TOOLS -> EXTENSIONS AND UPDATES

Problems with App-Data in Asp.net

I am trying to open App-Data from created webform. The problem is I cannot choose a SQL server Database and always get a message saying "Connection to SQL database files(.mdf) require SQL server 2005 Express or SQL Express to be installed and running on the local computer"! I am using Visual Studio 2010 and also downloaded Ms SQL Server R2 2008 Express but nothing work.Please Help!

How to include database file and SQL Server Express installer for Deployment with VS2010

I am using Visual Studio 2010 and SQL Server 2008 Express
I would like to deploy my project with setup and deployment project and would like to include the SQL Server database file and SQL Server 2008 Express installer, so the user can easily install and use the application.
Please anyone show me step by step instructions.
Or any link that can help me to solve this out
Thanks
Use prerequisites check box, this will install sql server on client machine

i have create new sql server database option unable on visual studio express for web

I have installed visual studio express 2012 for web but "create new SQL server database" option is unable on data connections. what version of SQL server do I need to make this option enable?
Download the SQL Server Express, which is free:
http://www.microsoft.com/en-gb/download/details.aspx?id=29062

Resources