How can i export my SQLExpress database from Webmatrix? - asp.net

I used webmatrix to write my web app. and now I need to upload my files to a host server via ftp. The database file located in App_Data folder it's name: "db.sdf.backup".
The host server uses studio manager to manage the database.
Now, my question is how do i export my database so it would work on their server?
Hey, I have the same problem, I want to export my database from webmatrix to 1and1 servers to publish my web site. Unfortunatly the migrate option of webmatrix is only available for SQL Server database and not for Mysql Database ! Do you have another idea ?
Thanks

Are you sure your database is in SQL Server Express? The file you mention (db.sdf) is a SQL Server Compact database, and WebMatrix indeed uses SQL Server Compact by default. If this is the case you need to convert your database to SQL Server "proper". WebMatrix makes it easier for you by offering the Migrate command in the SQL Server section of the ribbon.

Related

How to run database sql script in appHarbor SQL Server

I have successfully deployed my asp.net web form application on appHarbor and also installed SQL Server.
But I don't know how to make database as I could not find any query box of shell where I can run my schema script.
A good way to do is to download the SQL Server express 2014 that will allow the connection with add-on that you install in https://www.microsoft.com/en-us/download/details.aspx?id=42299.
with the SQL management you can grab the Host Name as server name, then use sql authentication and put your username and password.
then you can manage all your database in your site, and in Visual Studio the only thing that you need to do is provide the connection string that appHarbor gave you and copy and paste to the web.release.config.

Simple ASP.net SQL Server database editor application

I have a website externally hosted, to which I have FTP access, however it is not a dedicated server so I can't directly connect to SQL Server. I have the database connection string from the web.config file.
I need to edit the database directly, but obviously tools like SQL Server Management Studio aren't going to work.
Is there a (free) simple database editing application available that will run directly alongside the website on the same server? I HAD one for classic asp years back but have always run dedicated servers since...
Actually you can access a database from a service like GoDaddy that is hosted with shared hosting through SQL Server. Check this link: http://support.godaddy.com/help/article/4978/connecting-remotely-to-shared-hosting-databases. GoDaddy says that you could even use the SQL Server Express edition to access your database directly and remotely but you must enable Direct Database Access when setting it up.

SQL Server Express and SQL Server Compact Edition

I've just built my first Umbraco site and now I want to hand it over for deployment on a web server. However, I built the site on my local machine using Web Matrix, which uses a SQL Server Compact Edition database, which is represented in a .sdf file.
I was a bit uneasy about whether this would be much use to the person I'm passing the site to (they have a number of Umbraco based sites running on this server using SQL Server) - so I installed SQL Server Express and migrated the database from Compact Edition to Express. However (again), I can't seem to find any way of exporting the full database to a file which can then by imported into a database on the web server.
A couple of points I guess - first, is the Compact Edition .sdf file actually enough for someone to take and import a database into SQL Server Standard? Failing that, how would I export the database from SQL Server Express to a file which could be used for this purpose?
Thanks in advance - this is my first foray into .net development so I'm grateful for any help!
You could just give the SQL CE database (.sdf) to the person who manages the web server. The SQL CE database can be run by default on a .NET webserver.
If, for some reason, you want to migrate it to SQL Server, you can do this through Web Matrix (http://www.microsoft.com/web/)
When you have already converted the SQL CE database to SQL Server, you can:
make a backup through the SQL Server Management Studio tool and restore the backup on the web server
or you can use the SQL Server Management Studio tool to script the database to a .sql file which can be executed on the web server
I prefer the first option.

Hosting an asp website on EasyCgi

I have developed a website using ASP.NET/VB + SqlServer 2008 and Dotnetnuke CMS.
Now I have to host it on easycgi.com
I have some questions:
How should I restore my db (unfortunately easycgi supports just sqlserver 2005) so what should I do to convert my db to 2005?
and what should I do to host my website (step-by-step "please").
Any help appreciated.
Sorry for my english.
Not familiar with easycgi but often times getting SQL Server can be a lot of work. If you can create a database at easycgi the best thing to do is script out your database in SQL server 2008 using this process SQL Server 2008 script data
You'll then have everything for your database in a file. It's scripted and then run that at easy cgi if they have a way to run scripts. Otherwise sometimes you can connect your SQL SErver management studio directly to your database there.
You'll get a temp URL probably at easycgi, make sure that is in PortalAlias table in your SQL Server database.
Update your web.config in two spots to connect to your new database, upload your files to the web server.
Again, never used easycgi, but hope this helps.

how to host asp.net website using sql data base

please suggest me how to host asp.net website using sql data base. i published sql.mdf file. is it (sql.mdf) possible to place in app_data folder?
You need SQL Server to host the database.
Just putting the .mdf file in the app_data folder will not allow you to access the data in it.
In your website you will need to use ado.net, Linq to SQL or another data access layer to connect to the SQL server.
You should be able to use SQL Server Express, if cost is an issue.

Resources