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

"Change Tracking autocleanup is blocked" error after Installing SQL Server 2016 SP2 CU1

$
0
0

Hello,

After I installed SP2 and CU1 update on SQL Server 2016, I'm receiving and error related like "Change Tracking autocleanup is blocked...". I googled but, there is no resolution.

Could you please help me?

Change Tracking autocleanup is blocked on side table of "xxx". If the failure persists, check if the table "xxx" is blocked by any process .

Error: 22123, Severity: 16, State: 1.


Cannot connect to Oracle server via SQL Server tester extensions

$
0
0
Dear pro,

I'm using:
   SQL Server Migration Assistant for Oracle v7.10.0 32 bit
   Oracle Client: OraClient11g_home1   32 bit
   Windows 7 32 bit JP

When convert schema -> OK
 - Connect to Oracle (provider: Oracle Client provider, mode: Standart mode): -> OK
 - Connect to SQL Server: -> OK
 - Convert schema -> OK

But when i run test case then throw error in step Prerequisites(Loading Oracle version...): Cannot connect to Oracle server via SQL Server tester extensions.
Please support me fix this error.

Log:

[Mandatory: Generic] [6664/1] [2018-10-30 14:28:21]: SQL Server Migration Assistant for Oracle v7.10.0
[Mandatory: Generic] [6664/1] [2018-10-30 14:28:21]: Starting assembly: SSMAforOracle, Version=7.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Created: 2018/09/06 17:20:26
Last Modified: 2018/09/06 17:20:26
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
OS architecture: x86
Processor architecture: x86
Current culture: ja-JP
UI culture: ja-JP
[Mandatory: Collector] [6664/1] [2018-10-30 14:29:10]: Oracle connection provider: oracleclient.
[Mandatory: Collector] [6664/1] [2018-10-30 14:29:10]: Oracle connection mode: Standard.
[Mandatory: Collector] [6664/1] [2018-10-30 14:29:12]: Oracle server version: '11.1.0.6.0'.
[Error: Tester] [6664/5] [2018-10-30 14:29:23]: Error occured during connection to Oracle server via SSMA Tester extensions.
[Error: Tester] [6664/5] [2018-10-30 14:29:23]: Extension error 'Command extension execution failed' occured. 
 Error message: 'Error occurred during unidimensional query command execution extension operation.'
[Error: Tester] [6664/5] [2018-10-30 14:29:23]: Exception: Unable to find specified provider.
Can not find compatible Oracle libraries. If you have 32-bit Oracle connectivity components installed, please use 32-bit version of the SQL Server Migration Assistant.
 site: Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbConnection Connect(Microsoft.SSMA.Framework.Oracle.Base.Connection.OracleConnectionParameters, System.Security.SecureString)
 source: Microsoft.SSMA.Framework.Oracle.Base
   場所 Microsoft.SSMA.Framework.Oracle.Base.Connection.OracleConnectionFactory.Connect(OracleConnectionParameters connectionParameters, SecureString password)
   場所 Microsoft.SSMA.Framework.Oracle.SqlServer.Tester.Extensions.O2SSExecuteCommandExtensions`1.CreateConnections(O2SSExecuteCommandBatch batch, IExecutionState executionState)
   場所 Microsoft.SSMA.Framework.Generic.Testers.Extensions.Default.DefaultTesterExtensions`2.PrepareExecution(TBatch batch, IExecutionState executionState)
   場所 Microsoft.SSMA.Framework.Generic.Testers.Extensions.Default.DefaultTesterExtensions`2.ExecuteBatch(String batchXml)

how to migrate an old sql express database to sql 17 express

$
0
0

I am not a computer/database person.  I need to migrate an old database (in a file folder from an old computer dump) to a sql 17 express in order to use some software that uses sql.

i do not know any thing about database.  is there a simple tool that can do this?

thank you in advance, and I will keep looking through old forums.

Migrating Databases

$
0
0

Good afternoon, everyone!

I'm not sure if this is the correct place for this question so, if it's not, please, someone, redirect it to where it needs to be. Thanx!

I do a lot of business intelligence work with SSMS, so I know T SQL pretty well. But, I'm not a trained DB admin. My experience in creating a database is to R-click on a server, select "New Database..." and just run with the defaults. I also know how to create tables, import data, script a table, etc., etc., etc.

So, when my manager sent me a task to get details on an existing server for migration purposes, I drew a blank and I came here in hopes someone will be able to help me out.

His email to me was;

I need details on SERVER1 server:

  • Server configuration
  • Databases (PROD only)
  • Storage Volumes, split by Data File and Log File for each database (PROD only)
  • Linked Servers – Only TWO Linked Servers are currently operational – please confirm (SQLSVR01 and SQLSVRP01)
  • Any otherdetails

Purpose is to migrate SERVER1 databases (PROD only) to a different environment. We needs the specs to build the new environment and the above information should help.

I think I can get the configuration by R-clicking the server name and selecting properties and I can just grab the database names from the Object Explorer to fulfill bullet #2, but the rest is Greek to me.

Can anyone give me some assistance on how I get the information he's looking for?

Thanx in advance for any assistance!

Migrate database from 2008 R2 to 2016

$
0
0

I am preparing to upgrade a database from SQL 2008 R2 to SQL 2016

I run Data Migration Assistant (DMA) and made all the suggested changes.

My question is from your experience is it enough to make only changes suggested by DMA ?

Did you encounter other issues that are not reported by DMA ?

Thanks

How to call a stored procedure using .NetCore 2 when one of the parameters is of type ssma_oracle.CollectionIndexInt

$
0
0

Hello,

We are running a .NetCore2.0 application against a MSSQL db that has been migrated using SSMA from Oracle.

We have stored procedures which input parameters are of type ssma_oracle.CollectionIndexInt. We are currently struggling to find a solution.

If we directly pass a List or an array we get exceptions 'like 'No Mapping exists from object type system.Double[] to a known managed provider

if we try to use SqlConnections we are not sure how to code the SqlParameter.

For instance the code

  for (var i = 0; i < llDocmList.Length; i++)
                {
                    var rec = new SqlDataRecord(new SqlMetaData("doubleValue", SqlDbType.Float));

                    rec.SetDouble(0, llDocmList[i]);
                    items.Add(rec);
                }

                SqlParameter param3 = new SqlParameter("an_docm_id", SqlDbType.Structured)
                {
                    Direction = ParameterDirection.Input,

                    TypeName = "ssma_oracle.CollectionIndexInt",

                    Value = items


                };

Does not work.

Could we get any support on how to call such stored procedure from .netcore ?

Migrating Database From DB2 to SQL Server

$
0
0

Hi,

I have a AS400 database, that needs to be imported to SQL Server. 

The tables, have no issue. 

When I try to migrate a AS400 Member as SQL Server Table, I am running into issues. 

I am trying to select data from a DB2 Member Table Via SQL Server Linked Server, the following commands fail... 

SELECT * FROM OPENQUERY(LINKEDSERVER,'SELECT * FROM LIBRARY.FILENAME(MEMBERNAME)') 

OR 

SELECT * FROM OPENQUERY(LINKEDSERVER,'SELECT * FROM LIBRARY.FILENAME.MEMBERNAME') 

Please help me migrate a member as table. Thanks

Migration of multiple SQL Server DB's to One

$
0
0

I have 50 SQL Server databases I want to consolidate into one new database.  The structure of all 50 databases is identical.  25 sit on one machine and 25 on another.  What would be the fastest method to use to move data from the 50 into the new database?


Data migration and keys question

$
0
0
There was a database developed for use in 6 different departments.  The mdf. a .log files were copied over to 6 different machines so that each department had their own database.  No net work connection existed to sync the databases so each ran in it's own space.  Now the manager wants to consolidate the data from all 6 databases into one.  The problem is for example 6 different customer tables where the primary keys and foreign keys are redundant across the databases (custID 1 in db1 is"John Doe", custID 1 in db2 is "Patrick Henry", etc....).  What would be the best migration strategy to insure data and relational integrity in the target database?

open previous assessment in Data Migration Assistant

$
0
0

DMA v3 (January 2017)

After running assessment, reports could be exported in csv or json formats.

I would like to know if there is an option to open previously running assessment in DMA itself. There is no option as Save Assessment.

May be I am missing something, but we create a Progject, then there is an option Open... so I suppose to have some saved project for opening...

However when I try to close DMA, the message appear:

can I open json file in DMA? or is it normal to run the report and then lose it. I would like to have an option to easily open it in DMA...

What I am missing?

Thanks.


--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis


facing issue by using some operation in Mssql query

$
0
0

Hi there,

i am new to Mssql server i am trying to migrate Mysql queries to Mssql on the process  facing issue with this query

query is:

SELECT  converT(datetime,SWITCHOFFSET(converT(datetimeoffset,created),'America/New_York')), SUM(case when channel='FACEBOOK' then 1 else 0 end) AS  Messenger,  SUM(case when channel='EMAIL' then 1 else 0 end) AS  Email,  SUM(case when channel='ECHO' then 1 else 0 end) AS Echo  FROM Conversation  WHERE tenant_id=2 AND createdBy_id in(3) AND  created >= '2018-11-01 06:00:01'  GROUP BY year(created), month(created),  DATEPART(week,created),day(created) ORDER BY created ASC;

And the error which i am facing is:

Column 'Conversation.created' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

when i am trying to execute to the query without aggregate function its working the combination of converT and sum is not working. Can anybody help me out this.

Thanks in advance  


Need s2ss functions ssma_datediff please

$
0
0

Hi All,

Even after installing SSMA Extn Pack, we are not able to get the compatibility functions like: ssma_datediff, etc.

can anyone provide the source code of ssma_datediff ?

Thanks in Advance !

Thanks

VKK

SQL Server 2012 SP 2 Upgrade to 2016 SP2

$
0
0

Hey,

I'm about to plan out our upgrade of an existing SQL Server 2012 SP2 Standard edition. We want to upgrade to SQL Server 2016 SP2. There are two questions that I am hoping to find an answer to. I've been doing a lot research but not sure if it actually yielded what I need.

1. Unable to find a download for SQL Server 2016 Standard Edition. I continue to come back to the Download for an Evaluation Edition of 180 days. However, I don't want to upgrade our Production Environment to an Evaluation Edition.

2. Can I re-use the Product Key for our existing SQL Server 2012 Edition for the new 2016 Edition?

Thanks in advance.

Marcus Hagelin

Issue with Datetime 2 & Entity framework

$
0
0

Hello,

I have recently received issue from customer related to datetime2 issue with SQL Server 2016. We observed that our Entity framework raising query with above sort of datatype & it causing SQL server error.

For now we have change compatibility mode of customer database to 100 from 130. But customer want us to keep database mode as default so that full feature of SQL Server can be used.

Can anyone help in this area? How to move / correct entity framework to support higher / upgraded version of SQL Server

Thanks in advance

master key issue on migration.

$
0
0

Hi,

 

I migrated a few jobs from sql 2012 to a new box in sql 2016…

 

I got this error:

 

Environment reference Id: NULL.  Description: Please create a master key in the database or open the master key in the session before performing this operation.

 

I do not care much about security, not sure why the DBA created a master key (is it optional to create a master key or sql forces one to?)

 

I wanted to:

 

-         First, understand a little bit, what’s this master key, why did he created it?

-         Is this ssis or ‘sql jobs’ level?

-         Can I just delete it and script out the jobs again and paste them, would that work? Or shall I contact the DBA we had, and check if he has the password? Maybe I can backup/restore this masterkey?

Thanks!


How to skip already migrated rows from DB2 to SQL Server 2016

$
0
0

Dear Team,

I am using SSMA migration tool for migrating data from DB2 to SQL Server 2016. Migration got failed at 98.5%. Source table have 67 CR rows and 66 CR rows have been migrated and migration got failed at 98.5 % due TCP connection lost. Now , How can I migrate remaining 1 CR rows in existing table in SQL Server. How can I restart migration process in SSMA tool. 

Thanks and Regards

Suresh Dewasi


TFS 2108 Update 3 Migration Error

$
0
0

Hello,

I'm trying to a attach a Team Project in TFS 2018 Update 3.1, the collection status now is OFFLINE and when Irerun the Job"Attach Collection", the process is failed with the message"Cannot drop type 'dbo.typ_GroupTable3' because it is being referenced by object'prc_UpdateGroupAudit'".

I attempt to detach the collection by command, and i had another error:

  • The following error occurred while running readiness checks: TF401219: The team project collection 'DefaultCollection' cannot be detached because its version ID is different than the ID for the configuration database. The collection has the following version: Dev16.M122.5. The Team Foundation Server is at the following version: Dev16.M131.10.
    Skipping execution since there were readiness errors.

I check every solution offered in forums, but the problem persists.

I need some help, please!

File from SQL 2008 R2 successfully loads in SQL2014. How do I save that mdf file in 2014 format?

$
0
0

I have a mdf file from SQL 2008 R2.   It is successfully being read in SQL2014, 32 bit edition.   

I need to save this database in a 64bit format so that it can be read on machines that are only running 64 bit.   Also we will need that format to run on SQL 2017 and higher.

I am not seeing how to do that.

Any solid suggestions would be appreciated.

Thanks.

 

Upgrade to SQL Server 2016 Enterprise using In-place

$
0
0
We’re planning to upgrade our SQL Server from 2012 to SQL Server 2016. Having a challenge, we can’t do side-by-side upgrade due to infrastructure cost. We’re planning to perform in-place upgrade for our production server. Initially we will perform this activity in dev environment then later performing to our production SQL server. Before starting this activity, I want to know SQL SME opinion.Is this approach is safe? If yes, how we can make it smoother upgrade with the roll back plan. If anything goes wrong while performing the SQL upgrade.

Current Version: SQL Server 2012 Service Pack 3 
Current Configuration: Server 240 CPU’s with two cluster node. 
RAM: 2TB
Processor: 8 
Total storage: 8 TB
Custom single Database size: 400 GB

I will appreciate everyone response

Thanks

Rags

Load search data directly to the cloud.

$
0
0
Is their any possibility to load the data gathered through the elasticsearch open source search engine text bar. Kindly, tell me the ways to do the stuff. I have my website hosted on Cloudways which is a managed cloud hosting platform and I have installed elasticseacrh open source search engine text bar to do the searhces. If not elasticsearch then some other open source search engine text bar

Viewing all 1700 articles
Browse latest View live


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