Quantcast
Channel: SQL Server Migration forum
Viewing all 1700 articles
Browse latest View live

Migrate sql server 2008 R2 to Sql Server 2016

$
0
0

Hi,

What is the best way to upgrade sql server 2008 R2 to 2016 ? I can't find complete tutorial to migrate 2008 r2 database to 2016.

1. OS Microsoft Server 2012

2. Current Database Engine - Sql Server 2008 R2

I need to migrate the database from 2008 R2 to 2016 in safest way.


Backup Logins,Roles,Triggers, etc.. before migration

SSMA issue running sql to create tables in sql database

$
0
0
SSMA issue running sql to create tables in sql database

running sql server dev edition 2016
ssma for db2 ver 8.1.0

I am using local windows login with admin priviledges.
I connect to db2 using this account and to the local sql server.
The login is a member of sysadmin and has all permissions for the functions under ssma_DB2 schema.

The system fails to create tables as it does not appear to have the relevant priviledges to run the sql and create the new tables in sql.

Should I be able to run ssma to migrate db2 to sql using the sql 2016 Dev edition?
If yes, what can I try next? (I suspect this may be another issue manifesting itself as as priviledge issue)
Thanks

What to change to take advantage of SQL Server 2016 upgrade

$
0
0

We are migrating from SQL Server 2008 R2 Enterprise Edition  on Windows Server 2008 R2 to SQL Server  2016 Enterprise Edition on Windows Server 2106. We are also upgrading our hardware from a basic 50 gb, 3.4 GHz 2 core to  150 gb, 3.6 GHz 8 core.

We use the RDBMS for data warehousing, meaning we run SSIS to import data from various files, and other databases. Then we transform the imported data into dimensional data model (facts and dimensions) and run reports. We also run Index Optimization Procs, Database Integrity Checks and Database Backups as maintenance tasks.

What should we do on our ETLs, database objects, maintenance tasks to take advantage of SQL 2016. One thing I know is to start using column store indexes for improved performance.

Thanks in advance.

Selection of tables in ssma is allowed or not while migrating the data.

$
0
0

Can we migrate the data of only selected tables through SSMA for Oracle tool. Or does it migrate for the all tables?

Migrating the data from Oracle to Azure sql.


Thanks -NK

Script to create cluster and non-cluster indexes

$
0
0

Hello,

I have a source database, from this i need script out all existing indexes.

as per the requirement i need to generate scripts as to create, and drop indexes. these scripts will use for latter purpose.

here what i need is to create scripts separately for create cluster, drop cluster  as well as create non-cluster and drop non-cluster.

i went through so many blogs, where those T-SQL is generating create and drop scripts for both clusted and non-clustered in a same page.

i need separate scripts to create cluster index as well as to create non-clustered indexes.

can someone help me out on this issue.

thanks,

Sql server migration from 2008 to 2017 (OS windows 2008 to Windows 2016)

$
0
0

Hello ,

Myself  supersent,  Oracle DBA.  I am new to this forum and also to sql server.  :)

I am given task of migrating  sql server 2008 to sql server 2017.  

I have confident that I can achieve this  as basically I am in Database background.

Please help me

1) Sql server migration from 2008  to 2017 (OS windows 2008  to Windows  2016) both are different machines.

can someone guide me the steps  of process for 2008  to 2017 sql server. Or share some usefull document  or link  so that I can enter the sql server world.

Thanks

Supersent


Error when trying to deploy a DACPAC

$
0
0

Hi

I have created a DACPAC file (SQL2012 instance) by right clicking on a database, tasks, extract data tier aplication.

Saved the .DACPOAC file in c:\temp\test.dacpac.

Then tried to create a copy of the database by right clicking on databases (in SSMS) and Deploy Data tier application

I go through the wizard, but it fails with an error as per below

IT appears to be tring to create the database TESTBR2 with an invalid file path. The default path for files for new databases is m:\file.mdf but its  missing the drive letter.

Thanks

Microsoft.SqlServer.Dac.DacServicesException: Could not deploy package. Error SQL72014: .Net SqlClient Data Provider: Msg 5105, Level 16, State 2, Line 1 A file activation error occurred. The physical file name '\TESTBR2_Primary.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation. Error SQL72045: Script execution error. The executed script: CREATE DATABASE [$(DatabaseName)] ON PRIMARY(NAME = [$(DatabaseName)], FILENAME = N'$(DefaultDataPath)$(DefaultFilePrefix)_Primary.mdf') LOG ON (NAME = [$(DatabaseName)_log], FILENAME = N'$(DefaultLogPath)$(DefaultFilePrefix)_Primary.ldf') COLLATE Latin1_General_CI_AS Error SQL72014: .Net SqlClient Data Provider: Msg 1802, Level 16, State 1, Line 1 CREATE DATABASE failed. Some file names listed could not be created. Check related errors. Error SQL72045: Script execution error. The executed script: CREATE DATABASE [$(DatabaseName)] ON PRIMARY(NAME = [$(DatabaseName)], FILENAME = N'$(DefaultDataPath)$(DefaultFilePrefix)_Primary.mdf') LOG ON (NAME = [$(DatabaseName)_log], FILENAME = N'$(DefaultLogPath)$(DefaultFilePrefix)_Primary.ldf') COLLATE Latin1_General_CI_AS at Microsoft.SqlServer.Dac.DeployOperation.ThrowIfErrorManagerHasErrors() at Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass10.<>c__DisplayClass12.<CreatePlanExecutionOperation>b__f() at Microsoft.Data.Tools.Schema.Sql.Dac.OperationLogger.Capture(Action action) at Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass10.<CreatePlanExecutionOperation>b__e(Object operation, CancellationToken token) at Microsoft.SqlServer.Dac.Operation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.ReportMessageOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.DeployOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.OperationExtension.Execute(IOperation operation, DacLoggingContext loggingContext, CancellationToken cancellationToken) at Microsoft.SqlServer.Dac.DacServices.InternalDeploy(IPackageSource packageSource, Boolean isDacpac, String targetDatabaseName, DacDeployOptions options, CancellationToken cancellationToken, DacLoggingContext loggingContext) at Microsoft.SqlServer.Dac.DacServices.Deploy(DacPackage package, String targetDatabaseName, Boolean upgradeExisting, DacDeployOptions options, Nullable`1 cancellationToken) at Microsoft.SqlServer.Management.Dac.DacWizard.DeployModel.Install() at Microsoft.SqlServer.Management.Dac.DacWizard.DeployModel.RunAction() at Microsoft.SqlServer.Management.Dac.DacWizard.ExecuteDacPage.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


AlwaysOn Setup in Azure

$
0
0

Hi All,

Please see my below requirement and suggest the best approach.

Current Setup in On-premise:

SQL Server fail over clustering with 2 node active-active setup

Node1: Instance1 active

           Instance2 passive

          Instance3 passive

Node2: Instance1 passive

            Instance2 Active

            Instance3 Active

Planning to migrate into Azure with Always on availability cluster with the below design

Node1: Instance1 Primary replica (AG1)

            Instance2 Secondary replica (AG2)

            Instance3 Secondary replica (AG3)

Node2: Instance1 Secondary replica (AG1)

           Instance2 Primary replica (AG2)

           Instance3 Primary replica (AG3) 

As we have to migrate as it is shared environment but with always on cluster instead of SQL server fail over cluster.

Please see above design and let me know whether it will work properly or any challenges on it? If yes please suggest any other best design to achieve our requirement

Need to identify object mentioned in Data Migration Assistant for SQL Server Upgrade from 2008R2 to 2016

$
0
0

Hi there,

We plan to upgrade our database from SQL Server 2008R2 to 2016 and while running the Data Migration Assistant tool, we found a breaking change that says:

While parsing the schema on the source database, one or more syntax issues were found. Syntax issues on the source database indicate that some objects contain unsupported syntax due to which all assessment rules were not run on the object.

It gives following in Impacted Objects:

Object [CC_DBSpec] has syntax errors. Incorrect syntax near ].. Error number 46010. For more details, please see: Line 2, Column 23.

We need to identify where this CC_DBSpec can be found in our 2008R2 database.

We tried running following SQL but couldn't find the object:

SELECT NAME AS ObjectName ,schema_name(o.schema_id) AS SchemaName ,type ,o.type_desc FROM sys.objects o WHERE o.is_ms_shipped = 0 AND o.NAME LIKE '%CC_DBSpec%' ORDER BY o.NAME;

Would you please help us identify this object?

Thanks.

Support for db2 version 11 and 12 zOS

$
0
0

Hi,

I am having problems connection to a db2 version 11 and 12 running on zOS from SSMA 8.1.

I am getting the error:

Connection to DB2 failed.
The host resource could not be found. Check that the Initial Catalog value matches the host resource name.

But I was wondering if it was working at all, since the documentation only stated that version 9 and 10 was supported.

Regards

Jesper Sleth

SSMA Can't find tables named VALIDATION and YEAR???

$
0
0

Hello, folks.

So, on this new chapiter on my adventures of migrating Oracle DB to SQL with SSMA I found a new curious issue, as the question itself:  SSMA is simply ignoring two specific tables named VALIDATION and YEAR.  

So, the scenario:  I'm preparing a dinamic XML script to migrate some specific tables with the console.  On my script I have a very long list of tables (but not all them).  Every one in the list is correctly treated but those two.

A sample of the xml file:

<metabase-object object-name="lil2015.vacrepl" /> <metabase-object object-name="lil2015.vactype" /> <metabase-object object-name="lil2015.vacweeklyquota" /> <metabase-object object-name="lil2015.validation" /> <metabase-object object-name="lil2015.varitinerary" /> <metabase-object object-name="lil2015.varpoint" /> <metabase-object object-name="lil2015.varpointedit" />

<!-- some other tables -->

<metabase-object object-name="lil2015.workforcereq" /> <metabase-object object-name="lil2015.workforcereqloc" /> <metabase-object object-name="lil2015.workforceversion" /> <metabase-object object-name="lil2015.wpchoice" /> <metabase-object object-name="lil2015.wpcriteria" /> <metabase-object object-name="lil2015.year" /> <metabase-object object-name="lil2015.zone" />


And the output log:

[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VACREPL
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VACTYPE
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VACWEEKLYQUOTA
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VARITINERARY
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VARPOINT
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.VARPOINTEDIT

(some other tables)

2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.WORKFORCEREQ
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.WORKFORCEREQLOC
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.WORKFORCEVERSION
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.WPCHOICE
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.WPCRITERIA
[2019-05-13 09:13:36]  MESSAGE generic Object passed as a parameter table LIL2015.ZONE
[2019-05-13 09:13:36]  MESSAGE generic Running command on all tables in schema LIL2015

So, no LIL2015.VALIDATION after LIL2015.VACWEEKLYQUOTA, neither LIL2015.YEAR after LIL2015.WPCRITERIA.  The weirdest thing is that I have neither an error messager no a warning;  SSMA is simply skipping those two tables like that, without any explanation.

Are those some sort of reserved keyword for SSMA?  If in the improbability they are, why doesn't it throw an error or something?  Does anybody has a clue of what's going on here?  

I will test something later: run a migration with only these two tables to see what kind of messages (or maybe error) it will return.  Gonna post the results later.


Query to remove Compression,Partitioning and ColumnStoreIndex features during downgrade from MS SQL Enterprise to Standard

What is the SQL equivalent for CONSTANT in Oracle ...

$
0
0

Hi Experts,

I am migrating the oracle code to sql server. 

can i know the SQL equivalent of the following line of code .

 SUCCESS_STATUS CONSTANT Varchar2(1) := 'S';

currently i am using the sql server 2016.

Thanks in advance.

New Databases are not showing up in Target (SQL Server Metadata Explorer)

$
0
0

I have created two new Databases in Sql server v17.0 . I have created new project in SSMA for Oracle, When i connect with SQL Server(Target) ,I am not able to see two new latest databases.

Any Idea why its happening ? 


Thanks -NK


X-copy of SQL databases and log files. Do we need to detach the mdf and ldf before X-copy can be done?

$
0
0

X copy of SQL databases and log files.  Do we need to detach the mdf and ldf before X copy can be done?

We want to copy the mdf and ldf from one server to another network.  The networks are physically separate so we have to copy these files via a appliance.  Do you recommend X copy or is there another option in SQL management console to copy the files to another  physical device?

Will I have to detach the files or just take the files offline?

The copied databases will be reattached at the destination SQL servers.


dsk



Binary double to float.

$
0
0

It's me again, folks.

This time I got a problem converting a binary double column to float.  Oracle is throwing a ORA-01426: numeric overflow error.
Although not easy, I could trace the query launched by SSMA with the offending column and casting: 

select cast("TOTAL_COST" as float(126)) as "TOTAL_COST"
from "LIL2019"."STRATEGY2" t

This query will simply casts the binary double column TOTAL_COST to a float type, but here is my actual problem: In some occasions, for whatever reason, our developpers set this column to the max possible value, so we have some lines with 1.79769313486231E+308. 

In fact I don't really understand how these datatype work, but I can see that the E+308 from the binary double is more than the double of the126 of the float the query is trying to cast. 

So... any ideas on how I can copy these values to SQL Server?  Since I cannot change the queries fired against the Oracle database I though changing the mappings to something bigger to accomodate the E+308.  Is there any type on the SQL Server I could use?

Once again, thanks in advance for your help.


SSMA for access how do I specify the system.mda file and the username/password for the access database?

$
0
0

Hi,

I am trying to convert from Access to SQL 2017. When I open the access db in SSMA 8.1 it tells me that it can't access most/all of the tables because they are encrypted. Well yeah, they are there is a system.mda file with a username and password that needs to be given to SSMA 8.1 in order to give it access to the database.

How do I specify that?

db comparison of two different sql servers

$
0
0

Hello 

Recently I  have migrated the DB from version 2008 to 2017.

I am asked to compare the objects exists between source and target.

I have downloaded the sql server comparison tool from net.  and I am able to connect Source  but not able to connect the target due to error as below

"sql server comparison tool error access denied or server does not exist "

Please suggest what level of access I required to get the target to connected

Thanks

SUpersent

SSMA - set-project-preference error

$
0
0

I'm trying my best to like SSMA, but with so many problems it's getting really hard to.

My new found issue:  I create a new project in my XML like this:

<create-new-project project-folder="ssmaproj\Ora_to_Sql" 
                        project-name="Ora_to_Sql" 
                        project-type="sql-server-2014" 
                        overwrite-if-exists="true" />		 <set-project-preference preference-path="prefs/ssma-for-oracle/o2ss/data-migration" 
                            preference-name="batch-size" preference-value="10000" /> <set-project-preference preference-path="prefs/ssma-for-oracle/o2ss/data-migration" 
                            preference-name="Data-migration-timeout" preference-value="999" />							 <set-project-preference preference-path="prefs/ssma-for-oracle/sql-server/synchronization" 
                            preference-name="sync-query-timeout" preference-value="999" /> <set-project-preference preference-path="prefs/ssma-for-oracle/oracle/synchronization" 
                            preference-name="sync-query-timeout" preference-value="999" /> <set-project-preference preference-path="prefs/ssma-for-oracle/o2ss/data-migration" 
                            preference-name="Data-migration-timeout" preference-value="999" />		



And it works like a charm.  The problem is when I change the project-type to sql-server-2012 I have this fatal error:

FATALERR Preference 'batch-size' is not found under 'prefs/ssma-for-oracle/o2ss/data-migration'.

I change absolutely nothing in the preferences, only a single character changed, from 2014 to 2012, didn't even touch the double quote, but the XML seems to get lost with a different type of project.

I would understand if the said preference was a specific SQL one, which could cause an icompatibility between versions (which is also highly improbable), but the one on the error message - batch size - seems to be generic, not directly related to the SQL Server engine.

Then I comment this preference out and try again, and like I feared another fatalerr on another preference:

 FATALERR Preference 'Data-migration-timeout' is not found under 'prefs/ssma-for-oracle/o2ss/data-migration'.

So I did a new test with sql-server-2016 as type, and it did not work either, the same error.  Seems like SSMA console does not accept preferences in a XML except for a 2014 project.  

Any help?

Viewing all 1700 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>