I am quite quite new to SQL server. I tried to create a database in SQL Server Management Studio Express. It has created the database but I did not find Import option in the menu when I right-clocked my Database, It should have been in Tasks, but it is not there. I want to use this databse in vb.net application.
1) Am I using the right tool to create the Access Database?
2) Where does this tool save the database?
Thanks
Furqan
Yes you are using the correct tool to create a db.
I don't have the express version, but try this link. Hope it helps.
Make sure you set the db permissions correctly too. So others can access the db.
Related
I have a database stored on SQL Server with my web site at a regular windows hosting solution. I need to migrate to Azure.
The only backup mean I have is to use SQL Server Management Studio and do a Task -> Generate scripts that saves schema and data in a sql file. I did it and I got a 260Mb file.
My question is about importing that to Azure. Can I do it in Mngt Studio too? How?
Thanks
If you have exported it all to scripts, yes, you can run them against your SQL Database. However, before you do that I'd suggest looking at https://azure.microsoft.com/en-us/documentation/articles/sql-database-cloud-migrate/. It might shed some light on other options that will include verifying compatibility. The BacPac method might be better than the scripts.
To answer the specific question of using SSMS with Azure SQL DB, this article https://azure.microsoft.com/en-us/documentation/articles/sql-database-manage-azure-ssms/ shows how to make the connection.
I have a database in access and it haves "embeeded" code making the database works as a visual basic program via macros and vb programming.
But its not a Visual Basic application its like just code, forms, macros added to the access database.
The file format is .mdb or .mde
My question is:
Its possible to split the "application" and tables? Migrate that database to a SQL Server database and attach the "application" to the new database?
Yes, it is possible to migrate a .mdb file into SQL Server.
1) Just create a new database on SQL Server.
2) Right click the name of the database.
3) Click on tasks.
4) Click on Import Data...
5) Then browse to your .mdb file. There are instructions as you go along.
It sounds like you want to do exactly what the "SQL Server Migration Assistant" utility does. For more information, see
SQL Server Migration Assistant for Access (AccessToSQL)
I have created my first website and I have used Code First to create the database on SQLExpress.
Now I wish to publish my website on a server, which only accepts SQL Server databases.
How can I do this? Is there a function in EF5 or VS to let me create the database, and take a .bak file and upload it on the server?
Or is there a better way to go around this?
Thanks
I do not know if this is the right approach however I found an easy way to do it.
I created a new SQL Server 2008 database with the same name as my database, and imported the data from the database in the App_Data folder. Then I changed my connectionstrings to point to this database (in SQL Server) and could then transfer it on my server
I have a database created using the code-first approach against SQL Server Express. I'm trying to view the database in Management Studio, but cannot find the database. VS Database Explorer also cannot seem to find it.
I've searched about but cannot find any reference to what I'm after. Is it possible to browse a database running in the dev fabric?
Usually if we create a new database in Visual Studio, it will give us a database file, but it won’t register the database in SQL Server Management Studio. So please manually attach the database file to SQL Server Management Studio. First please find the database file, normally it is under the AppData folder of our project. Then I would like to suggest you to check http://msdn.microsoft.com/en-us/library/ms190209.aspx for instructions on how to attach the database.
Best Regards,
Ming Xu.
Take a look at Scott Gu's blog post on EF Code First and DB Generation: http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx
The Azure Dev Fabric has nothing to do with the DB layer, the connection string handles all this for you i.e. when you deploy to SQL Azure your DB will go there, the only thing that needs changed is the connection string...from localhost (Dev Machine) to SQL Azure connectionn string
HTH
How can I use SQLServer (instead of SQL Express) as my database?
I'm trying to go thru the ContactManager tutorial, but I can't seem to get it to use SQLServer - when I pick SQLServer from the "Add New Item" dialog, I get an error telling me that SQL Express isn't installed.
I know I must be missing something basic...
Most tutorials on the ASP.NET site are written in such a way, that you don't have to buy any software to do them. They use Visual Studio Express and SQL Express in their examples.
However, You can still follow along with the tutorial. Just make a few adjustments. Go to the Server Explorer to create a Connection to your SQL Server, and create the database and tables.
Then when it comes to the step of creating the EntityDataModel, create a new connection to the database you just created.
Only SQL Express can attach your database at runtime. If you have a non express version of SQL Server you will need to create the SQL Server using SSMS. If you want the file to physically live in app_data then when asked where to put the database file and the ldf indicate the app_data folder. Once you have created it, it is easy enough to simply add it as an exsisting item, although it can't be checked into source safe without creating obvious issues. I hope this helps.
If you're using a full-fledged instance of SQL Server, you don't need to use the "Add New Item" dialog at all. Rather, connect to your SQL Server instance (via Visual Studio or SQL Server Management Studio), and create the new database there.