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

How to reconnect old log file to mdf file?

$
0
0

I have an MDF (Orig.mdf) file and LDF (Orig_log.ldf) file from before. I was encountering an out-of-memory error and I thought the reason was because of the large log file. So I ended up renaming the old log file (Orig_log.ldf.old) and attempting to attach the MDF file and having the log-file be re-built (since I didn't need the transaction logs anyway). This resulted in an error though "One or more files do not match the primary file of the database. If you are attempting to attach a database, retry the operation with the correct files. If this is an existing database, the file may be corrupted and should be restored from a backup."

Of course, what I did was to delete the re-built log file (RebuiltLog.ldf) and renamed the old LDF file to its original name (Orig_log.ldf).

Now, when I try to re-attach it again, it gives me the same error! I think SQL Server configured the MDF file to not match my original LDF file.

So now without a way to attach the MDF, either through re-building the log or using the old log, how can I fix the MDF so that it goes back to being able process attachment and only encountering out-of-memory error?


Issue with SSMA migration from DB2 Mainframe to SQL server 2016

$
0
0
I am migrating DB2 Mainframe databases to SQL server 2016 Enterprise/Standard editions with SP2 but it's giving me error in the schema to schema migration option because of constraints such as foreign keys. 

I need help regarding database migration options on how to eliminate foreign keys in the script and guidance on how can I do it in SQL server Migration tool (SSMA) and I can create them later after the table and indexes are already created in SQL server.
  

Way to Check Database Performance After Migration

$
0
0

Hi All, 

Recently I just migrate one of the database from SQL 2012 to SQL 2017. In order to measure/check the performance on that database after migration, is there any method to do so besides checking on the CPU, memory usage and disk IO? 

I would like to know is there any improvement on the database after the migration. 

Hope can get some advice here. 

Thanks and highly appreciate. 

Best Regards. 

              Han 

How do I deploy reports in Visual Studio 2019

$
0
0

Please explain how to deploy reports with Visual Studio 2019.  Specifically I would like to see the steps for downloading Visual Studio 2019 Community Edition into a cache ( us the layout command for later install), then the install command to install it, then the steps to add the Microsoft Reporting Services Projects extension, then the steps to get to load a reports project, and then the steps to use the deploy command.  The reason I'm asking this question is because I want to know the minimum workloads needed to download and install for Visual Studio 2019 Community Edition to get this to work.  I got it to work with Visual Studio 2019 Enterprise Edition with a lot of workloads that I did not need, but trying to download fewer workloads seems to not work, so I want to know specifically what workloads you have to include in Visual Studio to get it work.  The documentation seems to be a bit ambiguous, , i.e., I think it's saying that the functionality formerly included in SSDT for database projects is now included in Visual Studio 2019, and the functionality needed for Reporting projects is now included in Microsoft Reporting Services Projects extension.  However, when I load the extension into Community Edition with the CoreEditor and Data workloads, it says the reporting project is incompatible and gives some cryptic application not installed error.  That's why I want the whole process explained, i.e., what workloads are needed in Visual Studio 2019, and anything else besides the extension that might be missing.  It seems that not enough people have tried this in Visual Studio 2019 for me to find forum entries about it.  Most of them refer to what was need for Visual Studio 2017 and prior, and the documentation just has that one ambiguous blurb for Visual Studio 2019, but the blurb doesn't seem to be true in the real world, unless I've overlooked something.

I'm just trying to replicate the functionality that you took out of SQL Server 2008 by removing Business Intelligence Development Studio, which is what we formerly used to deploy reports, but we're trying to migrate to Windows Server 2016, SQL Server 2016, and Visual Studio 2019; we just want to load our old SQL Server 2008 / BIDS projects into Visual Studio 2019 (Community Edition so we don't need any extra licenses), get them converted to be VS 2019 projects, and use the deploy command.

Backup restore

$
0
0

I have to backup from SQL Server 2017 Dev edition to SQL Server 2016 dev edition.  backup restore is not working and data vol is huge 3gb+.  What is the best option.

import export is taking time. is there any workaround for backup and restore


Neil

How to export a Team Foundation Server 2003 SQLExpress database into a SQL server?

$
0
0

Hello team!

We wanted to move our database in the SQL express Server into the SQL server. We are wondering if there is a tool we can use or a step by step instruction we can follow? Thank you. 



Db2 conversion Sql Table Name with dollar $ sign

$
0
0

When attempting to do a conversion from Db2 to Sql Server 2017, I noticed that some of the tables mysteriously have a "$2" appended to the name.  My suspicion is the index has the same name.

Is there anyway of stopping/overriding that setting?


Do I have to download SQL Server 2012 to update an old database to SQL Server 2017?

$
0
0

My PC was reformatted . I had a back up copy of my VS project. Now have downloaded the new Visual Studio 2019 and SQL Server 2017 Express. Trying to attach my databases and get this error message when opening solution/project:

"The Web project 'NAMED' requires SQL Server 2012 Express LocalDB which is not installed on this
computer.

To upgrade the project database to use latest SQL Server Express LocalDB,
double click the databse file and follow the intructions. Note: After this upgrade,
the project databse can't be modified using earlier version of Visual Studio.

To continue using the same database for this project, install it from the
Microsoft Download Center"

I no longer  have the older versions of SQL server on my computer. Do I need to reinstall the old version to use the new version? What I mean is, I down loaded the 2017 version. So can I also install the 2012 version? And then is there a way to update the old version to use new version so that I can then uninstall old version?

Thank you for any help.


Migrating from 2008 R2 to SQL Server 2016

$
0
0

Hi all,

We are migrating many servers which were hosting SQL 2008 R2 to newer SQL 2016. I want to know the best practices when we de-commission the older servers.

These are the steps which we plan to follow:

  • Migrate the databases to new server, then putting older ones on 'read-only' mode.
  • Migrate the logins to new server, then delete the logins on the old server.
  • Migrate all the SSIS jobs & Maintenance plans to new server. Delete jobs on old server.

While we ensure that there is no connection to the old servers, do we need to do anything before de-commissioning the older servers? Like, deleting the databases rather than putting in 'read-only' mode?

Ho do we make sure that no data on the older server gets compromised?

Is there anything which I am missing?

Regards,

Jatin Rajkumar

Invalid characters after migration

$
0
0
We have migrated the database from SQL Server 2012 to 2016. Post migration a specific query returns invalid characters (Chinese like characters) however the same query works fine in SQL 2012. Also tried to set the collation but still no success. Please help.

Cheers,
My Blog


Two SQL Servers. I've attached my database to the newer one. But don't know how to connect from within VS 2019,

$
0
0

I have MSSQL Server 2017 (free edition) and because of issues with old copy of VS, I also downloaded the 2012 version though I may have actually used an older version of SQL when I built my website. So now I am using Visual Studio 2019 and it changed all my old projects so that they are now 2019 version. Now from within Visual Studio server explorer area , I have red box on my database. When I click the refresh button, it throws this error:

The database 'C:\MYWEBSITENAME NEW COPY\APP_DATA\USADB.MDF' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'C:\MYWEBSITENAME NEW COPY\APP_DATA\USADB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\MYWEBSITENAME new copy\App_Data\USADB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

When I right click on the database red x it gives option to modify connection. Then when that box opens I see there are several choices in drop down box:

   think I'm supposed to click one of these:

Microsoft SQL Server (SqlClient) or

Microsoft SQL Server Database File (SqlClient)

But I'm not sure which to click and depending on which one I click, I'm supposed to do things which I don't know how to do.

I have another local copy version of this website that did eventually connect with the database but I don't know how it happened. When I open SQL server Management System, it opens that database in my visual studio folder and seems to be connected. It lets me open the tables, etc.  I just can't seem to get Visual Studio to accept the connection and I don't know how to modify the connection.  I'm at my wits end. Needing to get my website back on line and working correctly.



SQL Server Migration Assistant for Oracle -- oracle connection issue -- ORA-00942

$
0
0

Hi,

i'm trying to migrate from Oracle 12.c to Sql Server 2017.

It is failing to get metadata from the Oracle database.

There are some other threads out there saying this is a permissions issue. I have all the correct permissions and the exception details are different to those threads.

Any help is much appreciated.

In the output window I get:

[Mandatory: Generic] [9716/3] [2019-06-12 12:38:56]: SQL Server Migration Assistant for Oracle v8.2.0
[Mandatory: Generic] [9716/3] [2019-06-12 12:38:56]: Starting assembly: SSMAforOracle, Version=8.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Created: 05/28/2019 22:02:48
Last Modified: 05/28/2019 22:02:48
OS Version: Microsoft Windows NT 6.2.9200.0
OS architecture: x64
Processor architecture: AMD64
Current culture: it-IT
UI culture: it-IT
[Mandatory: Collector] [9716/7] [2019-06-12 12:39:33]: Oracle connection provider: oracleclient.
[Mandatory: Collector] [9716/7] [2019-06-12 12:39:33]: Oracle connection mode: Standard.
[Mandatory: Collector] [9716/7] [2019-06-12 12:39:35]: Oracle server version: '12.2.0.1.0'.
[Error: Generic] [9716/7] [2019-06-12 12:41:29]: Failed to collect metabase data.
[Error: Generic] [9716/7] [2019-06-12 12:41:29]: Exception: Error occurred while collecting data.
 site: Microsoft.SSMA.Framework.Generic.Collectors.XMetabase CreateMetabaseAndCollectData(System.Data.IDbConnection, System.String, Microsoft.SSMA.Framework.Generic.Collectors.XMetabase, Microsoft.SSMA.Framework.Generic.XTree.XNode, Microsoft.SSMA.Framework.Generic.UserInterface.IUIProgressBarProvider, Microsoft.SSMA.Framework.Generic.UserInterface.IUIStopOperationProvider, Microsoft.SSMA.Framework.Generic.Collectors.ICollectionContext)
 source: Microsoft.SSMA.Framework.Oracle.Generic
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CreateMetabaseAndCollectData(IDbConnection connection, String xmlConnectionParameters, XMetabase existingMetabase, XNode xFilter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider, ICollectionContext context)
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CollectData(String connectionParameters, SecureString password, XMetabase existingMetabase, ICollectionContext context, IDbConnection implicitConnection, XNode filter)
   in Microsoft.SSMA.Framework.Generic.Collectors.Default.DefaultObjectCollector.CollectData(String connectionParameters, SecureString password, ICollectionContext context)
   in Microsoft.SSMA.Framework.Generic.SSMAWorkspace.MetabaseSsmaWorkspaceItem.Connect(String connectionParameters, SecureString password)
[Error: Generic] [9716/7] [2019-06-12 12:41:29]: Inner Exception #1: ORA-00942: tabella o vista inesistente
 site: Int32 VerifyExecution(Int32 ByRef, Boolean, OracleInternal.Common.SqlStatementType, Int32, Oracle.ManagedDataAccess.Client.OracleException ByRef, Boolean ByRef, Boolean)
 source: Oracle Data Provider for .NET, Managed Driver
 error code: -2147467259
   in OracleInternal.ServiceObjects.OracleConnectionImpl.VerifyExecution(Int32& cursorId, Boolean bThrowArrayBindRelatedErrors, SqlStatementType sqlStatementType, Int32 arrayBindCount, OracleException& exceptionForArrayBindDML, Boolean& hasMoreRowsInDB, Boolean bFirstIterationDone)
   in OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteReader(String commandText, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, OracleDataReaderImpl& rdrImpl, Int32 longFetchSize, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64[] scnForExecution, Int64[]& scnFromExecution, OracleParameterCollection& bindByPositionParamColl, Boolean& bBindParamPresent, Int64& internalInitialLOBFS, OracleException& exceptionForArrayBindDML, OracleConnection connection, OracleLogicalTransaction& oracleLogicalTransaction, IEnumerable`1 adrianParsedStmt, Boolean isDescribeOnly, Boolean isFromEF)
   in Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
   in Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteDbDataReader(CommandBehavior behavior)
   in Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.Execute[T](ExecutionDelegate`1 executionMethod)
   in Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.ExecuteReader()
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.LoadObjects(IDbConnection connection, String objectType, String sql, ILazyLoadProvider lazyLoadProvider, Dictionary`2 schemaID2XCategory, XNode xSchemas, HashSet`1 excludedObjects, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider)
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CollectDataIntoMetabase(XMetabase xMetabase, IDbConnection connection, OracleCollectionQueryAdapter queryAdapter, XMetabase existingMetabase, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider, ICollectionContext context)
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CreateMetabaseAndCollectData(IDbConnection connection, String xmlConnectionParameters, XMetabase existingMetabase, XNode xFilter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider, ICollectionContext context)
[Error: Gui] [9716/7] [2019-06-12 12:41:30]: LowLevelAdapter.ReadSource : Read Source error: Microsoft.SSMA.Framework.Generic.Collectors.CollectorException: Error occurred while collecting data. ---> Oracle.ManagedDataAccess.Client.OracleException: ORA-00942: tabella o vista inesistente
   in OracleInternal.ServiceObjects.OracleConnectionImpl.VerifyExecution(Int32& cursorId, Boolean bThrowArrayBindRelatedErrors, SqlStatementType sqlStatementType, Int32 arrayBindCount, OracleException& exceptionForArrayBindDML, Boolean& hasMoreRowsInDB, Boolean bFirstIterationDone)
   in OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteReader(String commandText, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, OracleDataReaderImpl& rdrImpl, Int32 longFetchSize, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64[] scnForExecution, Int64[]& scnFromExecution, OracleParameterCollection& bindByPositionParamColl, Boolean& bBindParamPresent, Int64& internalInitialLOBFS, OracleException& exceptionForArrayBindDML, OracleConnection connection, OracleLogicalTransaction& oracleLogicalTransaction, IEnumerable`1 adrianParsedStmt, Boolean isDescribeOnly, Boolean isFromEF)
   in Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
   in Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteDbDataReader(CommandBehavior behavior)
   in Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.Execute[T](ExecutionDelegate`1 executionMethod)
   in Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.ExecuteReader()
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.LoadObjects(IDbConnection connection, String objectType, String sql, ILazyLoadProvider lazyLoadProvider, Dictionary`2 schemaID2XCategory, XNode xSchemas, HashSet`1 excludedObjects, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider)
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CollectDataIntoMetabase(XMetabase xMetabase, IDbConnection connection, OracleCollectionQueryAdapter queryAdapter, XMetabase existingMetabase, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider, ICollectionContext context)
   in Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CreateMetabaseAndCollectData(IDbConnection connection, String xmlConnectionParameters, XMetabase existingMetabase, XNode xFilter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider, ICollectionContext context)
   --- Fine della traccia dello stack dell'eccezione interna ---

Second step of Oracle Extension Pack Installer(SSMAforOracleExtensionPack_8.2.0.msi) always fails!

$
0
0

Second step of Oracle Extension Pack Installer(SSMAforOracleExtensionPack_8.2.0.msi) always fails with error message "Invalid option syntax: 'Files\Microsoft'. I'm using Windows10 and trying to do an Oracle migration to Azure Sql database. I have all the prerequisites installed. I've tried multiple recommended fixes to no avail such as:

  • Manually running SSMA Script Installer.exe
  • Removing spaces in the installation dir pathname

When I proceed with my Oracle migration with SSMA, I end up with the error message "Error occurred while inserting table information into Data Migration Auxiliary table. Reason: Invalid object name '<databasename>.o2ss.MSSsmaDmTables". I suspect this is a missing table from the incomplete extension pack install.

Can anyone help?

SQL Server 2008 End of Life Info

$
0
0

Hi,

This maybe slightly off topic but related to Migration from a business perspective.

I am little confused over the SQL Server 2008/2008 R2 End of Life documentation. As per the following blog: URL, the EOL for both SQL Server 2008 and SQL Server 2008 R2 is 7/9/2019. 

How does this apply for the SQL Servers that have been patched with the latest Service Packs. Does it extend the EOL any further? 

Regards,

Vikram

Migrate to Azure

$
0
0

Hi,

How to move on premise SQL Server 2016 VMWare servers to Azure?

What is the convinient procedure?



SSMA - Connect to Oracle yields invalid username/password error, even though correct username/password has been entered

$
0
0

Hi all,

I am getting the ORA-01017 invalid username/password error when trying to connect to Oracle in SQL Server Migration Assistant, even though the credentials I entered were correct. I tried the SYSTEM user first. Then I created a new user with DBA role. Both cannot connect using SSMA. I tried to test both users using SQL*Plus, and I was able to connect successfully. Please advise.

Can not resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation

$
0
0

Hi,

We have upgraded from SQL Server 2008 to SQL Server 2017. But one of the application is getting below error-

Can not resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.

Please let us know the reason of the issue and solution for this.

Regards

Arif

About DACPAC with Linked Server

$
0
0

Hi there,

I create a DACPAC file and attempt to run on the SAT environment. unfortunately, I got a error ::

could not deploy package.

Error SQL 72014: .Net SqlClient Data Provider: Msg 7202, Level 11. State 2. Procedure usp_XXX_XXX_XXX, Line 24 Could not find server "XXXXXXX" in sys.servers. Verify that the correct server name was specified.

how should I solve it.

Thanks


Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.

Error Migrating Access Table to Azure SQL Database

$
0
0

I have databases that were built in:

Microsoft Access 365 ProPlus (64Bit V1808 Build 10730.20348 Click-to-Run)

I am trying to migrate them to my (confirmed is working) Azure SQL Server using SQL Server Migration Assistant for Access v8.2.0 64bit

Everytime I try it, it errors when adding a .accdb database and says, "The database you are trying to open requires a newer version of Access"

I have tried most eveything to get this to work.  Have tried multiple versions of the runtime engines, currently have 2010 installed.  (2013 installed but same error, 2016 did not install due to incompatibility with click to run access.)

Any help would be greatly appreciated.

Thank you,

Data transfer using ODBC driver V 17 for non-English characters gets stored as ??? in SQL Server 2017

$
0
0

Hi,

Recently we have migrated our SQL database from SQL Server 2008 R2 to SQL 2017. This database was getting populated from Lotus Notes through LEI jobs (Lotus Extractor Integrator IBM tool).

Now when we moved to SQL 2017 and performed the data population through LEI jobs, we found that some non-English characters are getting transferred as ??? instead of respective language text.

We checked by lowering the version of ODBC driver to 13.1 but didnt help. Also from SQL schema perspective nothing much to do. Hence please provide some input on this.

Regards

Sanjay Nipane


Sanjay Nipane

Viewing all 1700 articles
Browse latest View live


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