SQL server Express 2017 LocalDB - silent-installer

As far as I know LocalDB direct download is not available for SQL Server Express 2017. Now, If I donwload "SQLServer2017-SSEI-Expr.exe" from "https://go.microsoft.com/fwlink/?linkid=853017", it shows options (Basic,Custom, Download Media) and wait for user action. But, I would like to know what parameters I can provide for innosetup in order to download ExpressCore localDB directly?

Related

Accessing Amazon RDS Oracle database from Visual Studio 2013

I have set up an Oracle database on Amazon RDS and am attempting to build an asp.net webpage to access it. I am using Visual Studio 2013 and have the AWS Toolkit installed. I'm able to see my database instance in the AWS Explorer and can even modify it but I'm not able to add the database to the server explorer so I can utilize it from a webpage project.
If I right click on the database instance in the AWS Explorer and choose 'Add to Server Explorer...' nothing happens. When I open the DB Instances window and right click on the database the 'Add to Server Explorer...' option is greyed out.
I did try setting up a SQL Server database and was able to connect to that so I think it must be something specific about Oracle. I installed ODAC and it didn't help. I would be very appreciative for any advice you could offer.
Thank you.
You can't add an Oracle database to Server Explorer without the proper tools. Each database vendor provides different management capabilities and APIs. Server Explorer works with SQL Server out of the box because it already includes the proper integration provider.
You can download Oracle Developer Tools for Visual Studio from Oracle's site.

How to know if Entity was using SQL Server or not?

I have followed through a tutorial using a "Code First" approach with Entity framework. It seems like Visual Studio was smart enough to create the database for me and setup the tables and everything based on my classes. I have a question about the database that was created.
I notice that the database was automatically set up and I could see it in my Server Explorer window in Visual Studio. In my Web.config, under the connection string, I see Data Source=(localdb)\v11.0;.... There is also a .mdf file created in a folder called App_Data.
My question is:
Was Entity framework using MS SQL Server or SQL Express for the database it has created?
If it wasn't using MS SQL Server or SQL Express, what was the database that Entity used?
I don't remember installing SQL Server or SQL Express. Does installing Visual Studio automatically install MS SQL Server or SQL Server Express?
PS: I will appreciate if you can help me to clear up my doubts. Coming from a PHP background, I'm very new to .NET and its ecosystem.
The connection string indicate that you are using SQL Server Local DB.
With Microsoft SQL Server 2012, Microsoft has introduced a feature called LocalDB which is a new edition of SQL Express. LocalDB is created specifically for developers and it is much easier to install (no service) and manage than standard editions. Developers initiate a connection by using a special connection string. It supports AttachDbFileName property, which allows you to specify a database file location.
When connecting, the server is automatically created and started, enabling the application to use the database without complex configuration tasks. This edition uses the same sqlservr.exe as the regular SQL Express and other editions of SQL Server.
http://msdn.microsoft.com/en-US/evalcenter/dn434042.aspx
http://technet.microsoft.com/en-us/library/hh212961.aspx

How to use Visual Studio's built-in SQL server?

For some reason I'm not able to install a separate SQL Server instance on my pc, but I do have Visual Studio 2010 installed. I want to use the built-in SQL server bundled with VS2010, but I'm not sure how to do that. Is it possible to create a database and tables to use in my ASP.Net apps with the built-in SQL server rather than installing a separate one?
Visual Studio 2010 does not have a built-in SQL server. However, a free version of Microsoft SQL Server called 'SQL Server Express' comes with it, it's an option when installing Visual Studio.
Because this version is free for anyone to download, it has some limitations, like for example: only one CPU can be used by the express version, the maximum size of a database is 4 GB (10GB in 2008 R2), it can only use up to 1GB of RAM and it doesn't have the 'SQL Server Agent' service.
Using SQL Server Express is very similar to using a full version of SQL Server. You just have to specify the data source (the SQL server's name) and authentication details in a connection string and you're good to go. More information about how to use this is available on MSDN.
Another option is 'SQL Server Compact', which is meant mostly for web databases (for use with ASP.Net). You can install it with Microsoft's 'Web Platform Installer'. You can find more information about SQL Server Compact on MSDN.

SQL server express backend for ASP.NET web service

I come from a linux/apache/php/mysql background. For my current project, I am forced to write web services using ASP.NET. I have installed visual studio and created an ASP.NET web service project. The web service I'm creating will use a SQL database backend. I see that visual studio installed "SQL Server Express 2008." I can see that there is a service called "SQL Server (SQLEXPRESS)" that is running. My question is, how do I run queries against this database? Where's the front end? What tool do I use to create databases and tables? Is there something else I have to install?
I feel completely lost and my google-fu fails me. There are so many different SQL products from microsoft that I can't tell what is the easiest path to just having a simple database with tables I can query from my development machine. With MySQL, I would install the MySQL database, download MySQL query browser and start firing queries at it. How can I do that with Visual Studio/SQL Server Express?
You can download SQL Server Management Studio from here. This is the GUI for working with SQL Server. It will let you create databases, tables, stored procedures, etc. as well as writing queries and manually edit data in the tables.
Aside from SQL Server Management Studio, you can use the Server Explorer tab in Visual Studio (by default on the right side, next to Solution Explorer) to add a data connection. You can do most of the most common database tasks (create/query tables, create views, etc) from there.
there's a command line tool that installs with SQL Server (all versions) called SQLCMD.exe, should be in your install path.
Visual Studio also lets you create dbs, run queries, look at table structures and data (including creating and deleting them, etc), you do that by opening your Server explorer window and making a connection to your local instance (.\SQLExpress by default).
Finally, as the other person mentioned, SQL Server Management Studio Express is a free download, and well worth the time it takes to install.

SQL server won't open DB created by Visual Studio

I've built an ASP.Net site in Visual Studio, and created the DB inside it (the .mdf file is in the APP_data folder).
Now, when I want to deploy in the customer site, I think about maintaining the DB without open Visual Studio, and by using the SQL Server Express tools (back up etc.).
I've searched how to do this, and learned that I should attach the .mdf file to sql server.
I've tried to do this and failed!
The error is: Unable to open the physical file "< .mdf >". Operating system error 5: "5(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)
Google didn't helped me to solve the problem.
Now I have 2 options:
1. To give up and deploy the site in the current situation where the DB is an .mdf file and ASP.Net can connect to it by the SQL server express compact (in the proccess).
To extract all the data (I need to think how...) and import it to new DB, this time in SQL Server DB.
Wat would you recommend doing?
Thank you in advance.
If on Windows Vista or higher, try opening SQL Server Management Studio by right clicking and saying "Run as Administrator". As Mitch mentioned maybe it is just a permissions issue. Then try attaching to the database.
Error 5 is usually permissions related. Do you have permissions to access the file in it's location?
If you've created it in Visual Studio, it's most likely an Express database. SQL Server does not support "user mode" database connections which SQL Server Express use. Despite sharing a name, they are two fairly distinctive and different technologies.
To view the contents of an SQL Express database (ie- created in Visual Studio) I just use the Visual Studio server explorer.

Resources