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

SQL Server Migration Assistant for Access v5.3.0 Cant change default server from 2014 to 2012

$
0
0

I am using the SQL Server Migration Assistant for Access v5.3.0 (32bit)  and cannot seem to get it to migrate using the SQL Server 2012 parameters. I changed the default project server to 2012. Using the wizard, I even choose migrate to "SQL Server 2012" but when the "Connect to Server" dialogue pops up with the banner it shows "Microsoft SQL Server 2014". I enter the my server name, database etc. and get a warning

"You are connecting to SQL Server version that is different than the version specified in the SSMA project. This may lead to schema not converted correctly and synchronization issues. Do you want to continue? "

I choose yes and it chugs along the I get the following exception -

I am lost and any help would be appreciated.

Ken


"you can run the package that the Import and Export Wizard creates, but cannot save it"

$
0
0

Hi

Trying to import data and tables from an accdb into SQL Server 2014 Express. I am using SSMS and everything seams to work. But just before the Finnish button this message occur: "In SQL Server Express, Web, or Workgroup, you can run the package that the Import and Export Wizard creates, but cannot save it. "

Click Finish to perform the following actions:
Source Location : C:\databaser\trading base.accdb
Source Provider : Microsoft.ACE.OLEDB.12.0
Destination Location : WKM-PFORSS\SQLEXPRESS
Destination Provider : SQLNCLI11
The package will copy 265 tables.
The package will not be saved.
The package will be run immediately.

Provider mapping file : C:\Program Files (x86)\Microsoft SQL Server\130\DTS\MappingFiles\JetToMSSql9.xml

OK that might be it. But why is the wizard working 98% of the way. Then saying it will not be saved?

Is there a way to round this?


Best // Peter Forss Stockholm and Sigtuna GMT +1.00

Column mismatch

$
0
0
I'm trying to import data from access to sql the data column has 0 and -1 and in sql it's a bit column so I tried doing IIF(COLUMN = 0 THEN "TRUE" ELSE "FALSE) AS COLUMN . But it's saying that it's not a match?

Debra has a question

Extracting a number from a string

$
0
0

I'm trying to import data from access to sql. I would like to look in a string that has values like 1, 1 day, 1 week, net 5 and I would like to make it into an integer column in sql. What I would like to happen is that if the string contains week then the number in that string should be multiplied by 7 else it should just find the number within the string and pull it out. so that in the above examples it will save to sql as 1, 1, 7, 5. Is there a way to do this within the import wizard?


Debra has a question

Storage Migration / Stopping Services

$
0
0

Hi guys, just wanted to get your opinion on a question I have.  

So we're getting ready to do a storage migration on a few of our SQL Server Clusters, and of course we want to prevent any database corruption during this process.  What would you say it's the best way to go about this, so that my SQL Server Cluster doesn't come up until I turn it back on?  

If I stopped the SQL Server Role from Fail Over Cluster Manager, will it restart back up automatically after I reboot the server, because I'm trying to avoid that!

How to find out DTS package name?

$
0
0

Hello how does one find out the corresponding DTS package name (SQL 2000) when looking at an Agent job step which lists DTSRun /~Z0xCED......... ?

Thanks in advance.

Having a logo (.png) in an Access table. How do you do the same in SQL Server

$
0
0

Hi

In an Access database i use Reports where the logo on the reports came from a field in a table. Data type is Attached File. Very useful when the logo is changed or updated.

Now I am migrating to SQL server.

Whats the way to handle the same in SQL Server?


Best // Peter Forss Stockholm and Sigtuna GMT +1.00

Having a logo (.jpg) in an Access table. How do you do the same in SQL Server

$
0
0

Hi

In an Access database I use Reports where the logo on the reports came from a field in a table. Data type is Attached File. Very useful when the logo is changed or updated.

Now I am migrating to SQL server.
I have activated Filestream in SQL Server 2014 developers edition.

I havde linked the SQL tables via ODBC to a MS Access FE.

If I run a query (view) of the table and Column I can see "OLE Object" as text. If i double click that OLE Object the file/logo opens and show. Data type in SQL Server is "varbinary(MAX)"

But when I try to "view" the OLE-object as the logo in an access report, nothing is shown


Best // Peter Forss Stockholm and Sigtuna GMT +1.00



Stored Procedure migration from 2008R2 to 2012 or later

$
0
0

I have been informed that there are problems migrating from 2008R2 to 2012 with respect to Stored Procedures. -deprecated functions???? or???

Has anyone had this problem/is there any documentation regarding this or it is case of "simply" doing a rewrite of all of our 200+ stored procedures?

Grateful for any help I can get!


CDC related objects problem

$
0
0

Hi there,

Got a problem – a database with CDC enabled was migrated onto a new server (by attaching all DB files I think).

As a result all CDC related objects were still existing in the database, but CDC was not enabled.

I could not enable CDC on the migrated database because the CDC schema already existed (from before migration).

Msg 22906, Level 16, State 1, Procedure sp_cdc_enable_db_internal, Line 49

The database 'xxxxx' cannot be enabled for Change Data Capture because a database user named 'cdc' or a schema named 'cdc' already exists in the current database. These objects are required exclusively by Change Data Capture. Drop or rename the user or schema and retry the operation.

So I deleted all tables, stored procs and functions from the CDC schema – well – at least I thought I did – so dropping the schema should be possible.

Msg 3729, Level 16, State 1, Line 2

Cannot drop schema 'cdc' because it is being referenced by object 'fn_cdc_get_all_changes_ ... '.

But it is not - as you see above – as in the sys.objects table there are still 4 “strange” entries and the schema can’t be deleted.

schema_name

function_name

cdc

fn_cdc_get_all_changes_...

cdc

fn_cdc_get_net_changes_...

cdc

fn_cdc_get_all_changes_   ...

cdc

fn_cdc_get_net_changes_   ...

Those functions obviously do not exists anywhere else except sys.objects table.

So what can be done? I even tried to delete those entries from sys.objects – but it wasn’t possible:

Msg 259, Level 16, State 1, Line 6

Ad hoc updates to system catalogs are not allowed.

So the question is – what can be done to enable CDC on the migrated database again?

Best Regards,

Darek




Migrate Maintenance Plan from 2005 to 2012

$
0
0

Hello everyone,

We are planning to migrate maintenance plans from SQL Server 2005 to SQL Server 2012.Integration Services was not installed on SQL Server 2005.How to migrate maintenance plans.Can you help this problem.

Thank u

Raj

Slow SQL queries on Azure

$
0
0
I am migrating a small database from SQL Server 9.00.5057.00 which responds very quickly.  But I have not found any service level on Azure that responds in an acceptable manner.  Any help would be appreciated.

SSMA for DB2 z/OS: Extended Data Migration Options and timeout

$
0
0

Hi,

In SSMA (Sql Server Migration Assistant) for DB2, I'm not able to display the "Extended data migration options". I'm migrating data from a z/OS DB2, set the option to "Show" in the Project Setting, but when positioning myself on a DB2 table, no additional tab appears.

Basically I'd need it to migrate large tables in parts, as I always get a timeout after 90 minutes. I've already tried to increase the timeout and to lower the batch size without success.

Thanks!

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

Connection ssma 6.0 to DB2 9.7 failed

$
0
0

Hello all.

i am trying to migrate DB2 9.7 to sql server 2014 using the ssma tool.

During the connection , i am using the property of  Manager  ==  DB2 for zOz.

Some connection got created for fraction of second and after that an error is displayed

Connection to Db2 established successfully.
Connection string: Provider=DB2OLEDB.1;Network Transport Library=TCPIP;User ID=Administrator;Initial Catalog=XXX;Package Collection=XXXX;Network Address=YYYY;Network Port=50000;Connection Timeout=0;
Error occurred while collecting data.

Many thanks for your support in solving this issue.

Thanks

DerInder


Migrating database in SQL Server from Instance 1 to Instance 2

$
0
0

Hi

In SQL Server  currently i have 2 instances. Both instances are on the same server/machine. In Instance 1 i have a database named "PMDB" and size of 250GB. 

I have backup this database and trying to restore it on Instance 2. While restoring on Instance 2, im receiving the following error. 

" Time out expired. The timeout period expired elapsed prior to completion of the operation or the server is not responding. The backup or restore was aborted. "

Kindly advise on the above error. Thanks in advance. 

Regards

When I create a script with a table that use file stream I get an error

$
0
0

I have a database that has a table with file stream. The table is this:

USE [CMMS]
GO

/****** Object:  Table [dbo].[Ficheros]    Script Date: 2016-06-10 11:14:14 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Ficheros](
	[IDFichero] [uniqueidentifier] ROWGUIDCOL  NOT NULL,
	[IDDocumento] [bigint] NOT NULL,
	[Fichero] [varbinary](max) FILESTREAM  NULL,
 CONSTRAINT [PK_Ficheros] PRIMARY KEY CLUSTERED
(
	[IDFichero] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY] FILESTREAM_ON [FILESTREAM_CMMS_DATA],
 CONSTRAINT [IX_Documento] UNIQUE NONCLUSTERED
(
	[IDDocumento] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] FILESTREAM_ON [FILESTREAM_CMMS_DATA]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Ficheros] ADD  CONSTRAINT [DF_Ficheros_IDFichero]  DEFAULT (newid()) FOR [IDFichero]
GO

ALTER TABLE [dbo].[Ficheros]  WITH CHECK ADD  CONSTRAINT [FK_Ficheros_Documentos] FOREIGN KEY([IDDocumento])
REFERENCES [dbo].[Documentos] ([IDDocumento])
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[Ficheros] CHECK CONSTRAINT [FK_Ficheros_Documentos]
GO

i want to create a script to export the schema of the database. I use the wizard to do it.

To test if all is right, I create a new empty database and try to run the script in this new database, but I get this error:

Msg 1709, Level 16, State 1, Line 548
Cannot use TEXTIMAGE_ON when a table has no text, ntext, image, varchar(max), nvarchar(max), non-FILESTREAM varbinary(max), xml or large CLR type columns.
Msg 4902, Level 16, State 1, Line 1268
Cannot find the object "dbo.Ficheros" because it does not exist or you do not have permissions.
Msg 4902, Level 16, State 1, Line 1417
Cannot find the object "dbo.Ficheros" because it does not exist or you do not have permissions.
Msg 4902, Level 16, State 1, Line 1421
Cannot find the object "dbo.Ficheros" because it does not exist or you do not have permissions.

How could I solve this problem?

Thanks.

How to migrate the data from one database to another?

$
0
0

I have two databases, the original database that is in 2014 version and a new one that is in 2016 version, that I have created as new.

Then I have created a script with the schema from the first database and I run it in the new one. I have no problems.

But now I don't know hot to migrate the data, because I have tried to create a scritp from the first database, not only the schema, but the data too. But it give me an error in a table and the script stops. Perhaps the database it is very big to use scripts, because it has a size of 900MB and use filestream.

I only want to copy the data from the first database to the new one.

Thanks.

What is the compatibility level and the internal version of the database?

$
0
0

For example, when I create a database with Sql Server 2014, the compatibility level is 120, and has a internal version too.

When I want to migrate the data from Sql Server 2014 to Sql Server 2016, a user advised me to backup the database in sql server 2014 and restore in the sql server 2016. But the database still has the compatibilty version 120, instead of 130 of the compatibility version of sql server 2016.

Also this user told me that I can use ALTER DATABASE Compatibility Level (Transact-SQL) to change the compatibilty level of the database.

My doubt is, what is a difference between a database with compatibility level 120 and another with 130? Becuse if I can change the compatibility version and I would have all the features of sql server 2016, why sql server has different compatibilty versions? Why don't use always the same version?

And what is the difference between compatibility level and internal database version?

Thanks.

Migration error from Oracle to SQL server 2014 using SSMA

$
0
0

Hello,

I am using SSMA for the first time. Can anyone help me in solving this error. Functional index can't be converted. O2SS0269 error. Any help will be much appreciated.

Viewing all 1700 articles
Browse latest View live


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