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

SSMA for Sybase Migration Performance

$
0
0

Migration Gurus,

Can you please share your experience with migrating Sybase using SSMA? What I am looking for is:

- The largest database you have migrated (size/no of objects)

- End-to-end migration time including schema conversion, code modification, data migration

- Data migration time

- Size of largest table and time taken to migrate it

Appreciate your input.

Thanks,

Unvar


What would be the fastest way to export & re-import a large table in also retaining it's Primary Key ID?

$
0
0

Hello,

What would be the fastest way to export & re-import a large table in also retaining it's Primary Key ID (auto identity seed +1)?

We're planning on migrating one of our DBs from old server to new server which has this one table in specific which is pretty large.  As a proof of concept from the Application's team in connecting to the new server a couple months earlier we had established a copy of the DB onto the new server.  They ended up continuing to use this large table on the new server which is live as the table that's on the old soon to be decommissioned server is not being used anymore but the other tables on the old server are still being used live (so mixed combo of live tables server locations).

So for this DB migration was thinking I'll need to do:

  • Some type of backup (export to another temporary DB or flat file?) of just this one large live table that's currently on the new server
  • Drop the DB that's on new server
  • Drop the table on current old DB server
  • Backup this DB on old server
  • Restore DB onto new server
  • Re-import data back into this one large table

Would doing like a bulk copy out into a flat-file or select * into NewTemporaryTable from LargeTable or Export/Import Management Studio Wizard or something else would be the fastest and am on the right track of thinking of above steps?

Also any recommended free tools that I can download in opening large flat-files?  (I get the error message that the flat-file is too large for NotePad to open.)

Thanks in advance.

Error using bcp Unable to open BCP host data-file SQLSvr 2008R2

$
0
0

Hi everyone!!

I´m trying to export a text file, with this instruction...

DECLARE @selectText VARCHAR(999)
DECLARE @output INT
DECLARE @result INT

EXEC @output = master.dbo.xp_fileexist  'DIR "C:\TextoPlano\" /B', @result OUTPUT

print @output


IF @output = 1
      PRINT 'File Donot exists'--CREATE THE DIRECTORY
ELSE
BEGIN
      PRINT 'File exists'
      SELECT  @selectText = 'bcp "SELECT * FROM [pruebaBD].[dbo].[Cliente]" queryout "C:\TextoPlano\ViewOrdenCompra.txt" -c -S xxxxxxx -U sa -P xxxxxx'
      PRINT @selectText
      EXEC master..xp_cmdshell @selectText
END

...but sql server shows me this 

- SQLState = S1000, NativeError = 0 and...

- Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file

I have permision on the c: drive, un block the xp_cmshell, the xp_fileexistwork and shows me that directory exist!!

also the line bcp "SELECT * FROM [pruebaBD].[dbo].[Cliente]" queryout "C:\TextoPlano\ViewOrdenCompra.txt" -c -S xxxxxxx -U sa -P xxxxxx

works perfectly in a cmd window

what I'm doing wrong??


Missing objects from SSMA for Oracle v 6

$
0
0
Hi All

Unless I missing something here most of the objects from are missing from SSMA for Oracle v 6 compared with SSMA for Oracle v 5.3

--Results from ssma for oracle 5.3
use sysdb
select COUNT(*) from sys.objects
where schema_name(schema_id) = 'ssma_oracle' -- and type = 'FN'
------------------------*/

-----------
331


--Results from ssma for oracle 6
/*------------------------
use sysdb
select COUNT(*) from sys.objects
where schema_name(schema_id) = 'ssma_oracle' -- and type = 'FN'
------------------------*/

-----------
19

Our product installer is expecting to find ssma_oracle.to_char_date but it’s not there in version 6 , to be honest there’s hardly any objects in v 6 at all.

I’ve installed SSMA for Oracle v 6 on Win2012R2 with SQL 2014 and Win2008R2 with SQL 2008R2 both running the installer with the built-in elevated administrator account and using the sa sql login yet the objects don’t get installed.

Just in case I was missing something I installed SSMA for Oracle.6.0.0.exe then the SSMA for Oracle.6.0.0.ExtPack.exe but nope the objects don't get created.

I’m starting to think they are not there.

Confusing result in migrating VARCHAR2 from Oracle to MSSQL2014 VARCHAR

$
0
0

Hi Guys,

I am using SSMA for Oracle to migrate Oracle DB to MSSQL 2014.

However I am confused with the following result :-

Field01 varchar2(100) in Oracle is converted to varchar(400) in MSSQL which is 4 times its original size

Another field varchar2(2000) in Oracle is converted to varchar(4000) in MSQL which is only 2 times its original size

Some varchar2 fields maintains their size after migrating.

What the purpose of making the converted field size bigger and why is inconsistency ?

Please help.


Thank You

Migrate from Access to SQL Server in steps. First data and structure - then fixing issues - then the data only?

$
0
0

Hi

I am migrating an Access (accdb) database to SQL Server. Seems to work quite well. But there is some issues to handle.
Like not supported data types (Access Atachment etc), indexing etc to get best performance. I will handle it. But. In the meantime users update the running Access database with new data in their dally work

Is it possible migrate "data only" after fiixing the the sql server issues?
Or must I plan a stop of using the Access database during migrating?


Best // Peter Forss Stockholm and Sigtuna GMT +1.00

Updating Data to New Machine

$
0
0
Hi,

Using SQL Server 2005.

I have replicated my DB to another machine. Currently the Source machine/DB is still running as the production, I want to schedule a cut-off to swing over to the new machine/DB.

Since there is a gap until the cut-off day, may I know what is the best way to update the DB in the new machine to the latest data from the Source? Is just probably 1 week of data, data should be small.

Should I run a:
1) Backup / Restore tasks
2) Export / Import
3) Any other recommended way?

Thanks!

SQL Server Driver query for SQL Server 2014

$
0
0

Hi Team,

I have query regarding SQL server driver.

Currently, We are using SQL Server driver Version - 6.00.6002.18005 with SQL server 2008 with SAP Business Object repository and reporting. I think  SQL Server driver Version - 6.00.6002.18005 is default driver comes with Windows Server 2008 R2 OS appears under ODBC. Business Object is installed on Windows Server 2008 R2 and connecting to SQL server database using odbc connection of 32 bit.

Now, we are migrating database from SQL server 2008 to SQL server 2014.

I found new SQL server driver  -"Microsoft SQL Server Native Client 11" supported with 2014.

I check the driver at MS website and found that driver version is 12.0.4219.0.

I see both driver version are different. I want to clarify the below questions:

1. What are difference between both SQL server driver version?

2. What will be the issue if we won't upgrade our driver to new version?

3. We tested ODBC connection with current driver and that worked. However I want to know the advantage and impact if we not upgrade.

Please update on this.

Thanks

Hare Ram Prasad


Unable to migrate data from Sybase to SQL Server using SSMA

$
0
0

Hello, 

SSMA for Sybase not migrating the data. Schema migration is working fine. 
We validated the below points:

i. SSMA extension pack installed in SQL Server machine.
ii. OLEDB driver for Sybase installed in SQL Server machine.
iii. Network and Firewall has been checked.
iv. Able to connect the Sybase from SQL server machine.
v. We are able to load the data from Sybase to SQL Server through SSIS package.\
vi. We have chosen "Server side migration" in SSMA properties. 

With all these we are unable to do the migration for a single small table which has 5 records using SSMA.
There are no errors being popped by SSMA, it get hung. No progress, it shows 0%. 

Any help would be greatly appreciated. 


Please vote if you find this posting was helpful or Mark it as answered.

SQL Server 2014 Upgrade Advisor - Unable to find download

$
0
0

Please forgive me if this posting is in the wrong sub-forum or if this question has already been answered.  

I have searched the web, as well as the forums here, and I have not been able to find an answer to my question.  I am trying to find and download the 2014 SQL Upgrade Advisor, which is supposedly part of the "Microsoft® SQL Server® 2014 Feature Pack".

Here is the link to the 2014 Feature Pack page:

https://www.microsoft.com/en-us/download/details.aspx?id=42295

However, unlike the equivalent page for 2012, the 2014 page does not have links to many of the tools, including to the Upgrade Advisor.

I do not have access to the 2014 page, as the database team at my company has not yet installed 2014 on the new server. (I do have a 2014 instance in a Development environment).  We are in the process of preparing for a migration from 2005 to 2014.

Can anyone point me to a working download link for the 2014 Upgrade Advisor?  I may also require the SQLDom.msi, but I'm not sure yet.

Thank you in advance.

Import from MySQL

$
0
0

I am trying to Import from MySQL into SQL Server but it is only allowing to select data by writing query and the Copy data from one or more tables or views is always disabled.

How can I fix it please?

Thanks,

Jassim

hoe todownload SQL Server in window 8.1

$
0
0

how to download SQL Sever on Windows 8.1

keep getting failire network ERROR 

restore database having encryption to other server

$
0
0

Hi,

Scenario:-

A production database is restored on development environment , some time back. The database is using encryption keys (is_master_key_encrypted_by_server=1) in production .The database restored at development is not able to dycrypt , as the password to open DMK  is lost.

My queries are :-

a ) If I take fresh backup of database master key(DMK)  with a new password  at production and restore at development database will it work?

b) Is there any impact of taking new DMK backup in the production and should be avoided?

c) If there is an old backup of DMK  available somewhere, will the new backup of DMK make the old one useless?

Thanks 

Windows Upgrade

$
0
0

We have windows 2008 r2 standard server which is running sql server 2008 r2 containing the database of a production application. We are now planning to upgrade the server to windows 2008 r2 Enterprise using DISM as we need more memory support. Please advise if the upgrade will affect the sql server and the application database on it.

What script for sync users information between MSSQL server and MS openldap php5?

$
0
0

Any help?

I would like to What script for sync users information between MSSQL server and MS openldap php5 on windows server 2003, 2008? and how to do it

Thank you so much


Moving from SQL Server 2012 SP1 to SP3

$
0
0

Hi Guys,

Currently we are using SQL Server 2012 SP1. Now the server version is getting upgraded/moved to SQL Server SP3.

What are the things I have to check so that all my jobs and db is in stable in SP3 version as well.

Please help!!!

Thanks,

Anilkumar

SSMA Not Working for me - Access 2016 to SQL Server Azure

$
0
0

I have a very simple 1 table Access db that I would like to migrate to SQL Azure to show feasibility. I downloaded the SSMA. I start the Wizard.

1. I can Add the local Access database.

2. I can Connect to the SQL Azure instance.

3. Then when creating the project it fails in Loading the db.

Any ideas?

Thanks,

Shawn

How do I move ADP apps using SSMA migration tool?

$
0
0
I need to move .ADP apps to SQL. How can I do this with Access Migration tool?

ORA-01652 while migration big Oracle table

$
0
0

I'm using SSMA 6.0 to migrate a big Oracle table, and i'm getting the following error:

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

When checking the query in Oracle EM, I notice it is using a SORT on the first column. This is causing Oracle to do a sort in the TEMP space instead of just fetching the data directly. Because the table is huge, the TEMP space becomes full. Is there a reason why SSMA *has* to do the sort? I can't seem to disable it anywhere.

"Operation is not valid due to the current state of the object." while trying to convert MySQL to MSSQL via SSMA 7.0

$
0
0

I am failing to migrate a MySQL 5.7.13 database to either MS SQL Server 2016 or Azure SQL using SSMA 7.0 via MySQL ODBC Connector 5.3.6 (also tried 5.1.3) due to errors. How to fix or overcome the error?

Converting table yyy.xxx ...
 Errors: M2SS0135: Unparsed SQL [CREATE TABLE `xxx` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lastUpdate` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
  `logTime` datetime NOT NULL,
  `ip` varchar(255) NOT NULL,
  `remoteHost` varchar(255) NOT NULL,
  `userId` int(10) unsigned DEFAULT NULL,
  `clientId` int(10) unsigned DEFAULT NULL,
  `projectId` int(10) unsigned DEFAULT NULL,
  `tableName` varchar(255) NOT NULL,
  `rowId` int(10) unsigned DEFAULT NULL,
  `operation` varchar(255) NOT NULL,
  `message` text,
  PRIMARY KEY (`id`),
  KEY `userId` (`userId`),
  KEY `logTime` (`logTime`,`id`),
  KEY `projectId` (`projectId`),
  KEY `clientId` (`clientId`)
) ENGINE=InnoDB AUTO_INCREMENT=338323 DEFAULT CHARSET=utf8] cannot be converted.

[Gui: Error] [8072/54]: LowLevelAdapter.ConvertTree : Convert error: System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Microsoft.SSMA.Framework.Generic.XTree.XNode.ChildrenList.get_Item(Int32 index)
   at Microsoft.SSMA.Framework.Generic.XTree.XNode.get_FirstChild()
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.TableConverter.GenerateMetabase(XNode sourceNode, XNode target, XDocument targetDocument, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.ParsableObjectConverter.ConvertSql(XNode source, XNode target, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.TableConverter.ConvertNodeImpl(XNode source, XNode target, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeNodeConverter.ConvertNode(XNode sourceNode, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeConverter.ProcessNode(ITreeConversionContext context, TreeConversionState state, XNode node)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.TreeTraverser`2.ProcessSubTree(TContext context, TState state, XNode sourceSubtree, Set`1 objectsToProcess, Set`1 affectedNodes, IUIStopOperationProvider stopOperationProvider, IUIOutputWindowProvider outputWindow, IUIProgressBarProvider progressBarProvider)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.TreeTraverser`2.TraverseTree(TContext context, TState state, XNode sourceNode)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.OpTreeTraverser`2.TraverseTree(TContext context, TState state, XNode sourceNode)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeConverter.ConvertTree(XNode sourceNode, ITreeConversionContext context)
   at Microsoft.SSMA.GUI.Generic.LowLevel.AppCommandProcessing.Commands.SsmaAppConvertCommand.StartConvert(Object context).
[Gui: Error] [8072/54]: Exception: Operation is not valid due to the current state of the object.
 site: Microsoft.SSMA.Framework.Generic.XTree.XNode get_Item(Int32)
 source: Microsoft.SSMA.Framework.Generic.XTree
   at Microsoft.SSMA.Framework.Generic.XTree.XNode.ChildrenList.get_Item(Int32 index)
   at Microsoft.SSMA.Framework.Generic.XTree.XNode.get_FirstChild()
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.TableConverter.GenerateMetabase(XNode sourceNode, XNode target, XDocument targetDocument, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.ParsableObjectConverter.ConvertSql(XNode source, XNode target, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.MySql.SqlServerTreeConverter.Converters.TableConverter.ConvertNodeImpl(XNode source, XNode target, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeNodeConverter.ConvertNode(XNode sourceNode, ITreeConversionContext context, TreeConversionState state)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeConverter.ProcessNode(ITreeConversionContext context, TreeConversionState state, XNode node)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.TreeTraverser`2.ProcessSubTree(TContext context, TState state, XNode sourceSubtree, Set`1 objectsToProcess, Set`1 affectedNodes, IUIStopOperationProvider stopOperationProvider, IUIOutputWindowProvider outputWindow, IUIProgressBarProvider progressBarProvider)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.TreeTraverser`2.TraverseTree(TContext context, TState state, XNode sourceNode)
   at Microsoft.SSMA.Framework.Generic.Factories.Utils.OpTreeTraverser`2.TraverseTree(TContext context, TState state, XNode sourceNode)
   at Microsoft.SSMA.Framework.Generic.TreeConverters.Default.DefaultTreeConverter.ConvertTree(XNode sourceNode, ITreeConversionContext context)
   at Microsoft.SSMA.GUI.Generic.LowLevel.AppCommandProcessing.Commands.SsmaAppConvertCommand.StartConvert(Object context)


Viewing all 1700 articles
Browse latest View live


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