Simply, I have a web project which is using MSSQL 2017 and I need to use "USER" table which is stored in Oracle 11g database. Both project is currently using with own constraints. I think, I create a link between these db's.
If any data modified in Oracle "USER" table, it should be update in MSSQL as well.
What should I do in this situation ?
Related
I'm currently trying to deploy a website with Azure which I did following these steps
https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-aspnet-core-ef-step-05?view=vs-2019#publish-to-azure-app-service
however the data from the database didn't get saved, like it did in the video. I think this may be because I have 2 data contexts; one for users and one for general app models.
I believe I have to figure out how to migrate my data from SQL Server Express provided by Entity Framework to Azure.
It seems like it should be doable from this link
but then this one makes it sound like you need a .bak file.
Just want to know if my Visual Studio data can easily transferred to Azure this way. would it be easier to publish my "data tier application" or extract and copy what I need to azure. Kind of overwhelmed at all the documentation trying to find the easiest way the small amount of data for my test website.
How to migrate my data from SQL Server Express provided by Entity Framework to Azure?
No you can not do that, import and export feature is not available with SQL Server Express. You can reference this link: Limitations of SQL Server Express.
As you posted the screen shoot, no function can help you migrate the database to Azure.
So if you really want migrate the database from local SQL Server to Azure, you'd better using the Microsoft SQL Server Management Studio(SSMS). There are so many ways, such as:
Migrate on-premises SQL Server or SQL Server on Azure VMs to Azure SQL Database using the Data Migration Assistant
Tutorial: Migrate SQL Server to a single database or pooled database in Azure SQL Database offline using DMS
Copy data to and from SQL Server by using Azure Data Factory
Migrating SQL Database to Azure SQL Database using SSMS Export/Import
If you are first time to migrate, we suggest to you use the Azure Data Migration Assistant as Alberto Morillo said.
Hope this helps.
Before trying to migrate the database to Azure you need to first verify the database and its objects are compatible to Azure SQL Database. If you don't do that the migration may fail.
My suggestion is to use Azure Data Migration Assistant (DMA) to perform an assessment of your database and make sure there are no blocking points that can make the migration not possible. Make adjustments based on the report generated by the DMA tool and then use any migration method (including extracting\importing a Data-tier Application) to migrate your database to Azure SQL Database. DMA can also migrate your database to Azure SQL Database and for me is the easiest way to do it.
About restoring a native backup to Azure SQL Database, that is not possible. You can export your database as bacpac and then import it to Azure SQL Database, or you can use DMA or Data Migration Service to migrate your databases to Azure SQL Database.
Adding to what is already said . You can dump all the data in txt or csv file and put that in the local drive . In Azure we have the Azure data factory (ADF) , which has a copy activity , this is very powerful and looks like will be good for your scenario . As mentioned before the data types are the key . You will have to install something called integrated Runtime ( IR ) and it should work .
We have added some stored procedures in SQL Server 2012 Management Studio but in our ASP.NET project we can't add them to the Entity Framework, because we can't see them in the list.
It seems to be a problem with the database roles in SQL Server.
Which roles are needed?
You can try to execute the following query:
USE database_name;
GRANT EXECUTE TO [myStoredName];
Also check Grant Permissions on a Stored Procedure
I am using ssdt in VS2012. I am writing a stored procedure and now I want to test this SP against some data.
How can I do it without creating this SP on actual SQL Server Instance?
Is there any reason you don't want to build the database? This can be done without having to use a full SQL Server instances as SSDT comes packaged with LocalDB. Press F5 to build a database from your database project and add some data to the resulting database.
I was working with Oracle 11g and now I wish to migrate into Microsoft SQL Server 2008 for academic learning purposes. I have my DDL in a .txt file with all the syntax compatible with Oracle. Now I have to create the same tables and insertions in SQL Server. What are the possible options to convert or import my existing database created in Oracle to SQL Server ?
Take a look at this link
http://technet.microsoft.com/en-us/library/hh313159.aspx
It describes step by step the procedure of migrating ORACLE database to Microsoft Sql Server database.
To Convert Oracle 11g to SQL Server 2012, Microsoft provides a tool called SQL Server Migration Assistant for Oracle (SSMA).
Below are very high level steps:
Download SSMA for Oracle from this Link. Make sure you have
downloaded SSMA for Oracle and SSMA for Oracle Ext Pack. Install one
after another.
Note: At the time of installation, it will give option for DB
Instance and also for creation of Master password. Keep a note of
them. You might need them later.
Open SSMA and create a new project.
Connect to Oracle DB.
Connect to SQL Server 2012.
Convert schema of Oracle.
Migrate data of Oracle.
Synchronize with SQL Server.
Youtube link for a straight forward conversion.
MSDN PDF link for Datatype and other extensive information on the conversion.
The above is only to get you started, even I am not sure about few options like Sequence and DBLinks. Good Luck.
I am trying to migrate a database from SQL Server 2008 to SQL Azure. The database that I am attempting to migrate includes the ASP.NET Membership database (http://www.asp.net/web-forms/tutorials/moving-to-aspnet-20/membership). This database works fine when I run it in my SQL Server 2008 database. However, when I try to authenticate a user against SQL Azure, I receive an error that says:
"Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again."
However, I'm not sure what to do. When I try to update the index on the aspnet_Applications table, I receive a foreign key problem. I am using the following in an attempt to migrate my non-clustered index to a clustered index:
ALTER TABLE aspnet_Applications
DROP CONSTRAINT PK__aspnet_A__SOMEID
ALTER TABLE aspnet_Applications
ADD CONSTRAINT PK__aspnet_A__SOMEID PRIMARY KEY CLUSTERED(ApplicationId)
Can someone please help me overcome this issue? Thank you!
I had problems with the ASP.NET membership provider tables (non clustered indexes) and missing the "WITH (NOLOCK)" statement on the stored procedure aspnet_Membership_GetNumberOfUsersOnline etc.
The migration tool found here fixed the problems and exported the database to Azure.
http://sqlazuremw.codeplex.com/
It is a nice wizard that connects to your existing SQL Server and migrate the selected database to Azure.
If you can, try to use the ASP.NET Universal Providers For SqlExpress 1.1 (I wish they'd change the name as it is a bit of a misnomer). This is the officially supported method of enabling the SQL membership, role and session providers across both SQL Azure and standalone SQL Server.
Here are a couple of other links for reference:
Scott Hanselman - Introducing System.Web.Providers
SQL Azure Team Blog - Using SQL Azure for Session State
SQL Azure is not the same as SQL Server because not all features are supported. There is a special SQL Azure Membership Script to create the database.
See here: http://support.microsoft.com/kb/2006191/de
I hope this helps.
Greetings.