Oracle to SQL Server Migration – User Defined data types

25 pts.
Tags:
Database migration
Oracle import/export
Oracle migration
SQL Server 2005
SQL Server import/export
SSMA for Oracle
Oracle database has two user defined types as the following: CREATE OR REPLACE type arrayType1 is table of int CREATE OR REPLACE type arrayType2 is table of varchar2(255) How do we represent these in SQL Server 2005?!! (Note: Microsoft SSMA fails to migrate these) Thanks
ASKED: August 22, 2008  1:38 AM
UPDATED: August 28, 2008  3:58 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

SQL Server doesn’t have array data types. The closest thing we have is a user defined data type where the type is a table.

Here is the sample code from Books OnLine.

<pre>CREATE TYPE LocationTableType AS TABLE
( LocationName VARCHAR(50)
, CostRate INT )
GO</pre>

———
Thanks Mrdenny.

I have created a temp table as

create table #tempSetIds (Id int)

wherever the user defined type <b>arrayType1</b> was used

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following