Sujith80,
Thanks for your reply. I found this white paper by oracle.
http://www.oracle.com/tech
I'm just not sure that this document will apply to 10g R2 as well...
Let me know your thoughts.
Regards.
Main Topics
Browse All TopicsI would really appreciate if anyone would let me know what are the equivalent datatypes in Oracle 10g for the following SQL Server 2000 datatypes:
uniqueidentifier (16)
nvarchar (16)
nvarchar (48)
nvarchar (100)
nvarchar (200)
nvarchar (256)
ntext(16)
sql_variant
float (8)
datetime
tinyint (1)
smallint (2)
int (4)
bigint (8)
Thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sujith80,
Thanks for your reply. I found this white paper by oracle.
http://www.oracle.com/tech
I'm just not sure that this document will apply to 10g R2 as well...
Let me know your thoughts.
Regards.
Hi titumukherjee,
In addition to sujith80 post:
uniqueidentifier (16) - just varchar(16) field, beacuse there are no builtin datatype in oracle for uniqueidentifier support.
Anyway, GUID can be initialized in oracle:
A column or local variable of uniqueidentifier data type can be initialized to a value in two ways:
1. Using the NEWID function.
2. Converting from a string constant in the following form (xxxxxxxx-xxxx-xxxx-xxxx-x
sql_variant - SYS.ANYDATA
http://download-west.oracl
igor_alpha:
Would you have any ideas whether the ado.net command importrow would work if I use uniqueidentifier (16) = varchar(16) field. Importrow from SQL Server source datarow to Oracle destination row.
How can I use
STATIC FUNCTION ConvertNumber(num IN NUMBER) RETURN AnyData,
STATIC FUNCTION ConvertDate(dat IN DATE) RETURN AnyData,
STATIC FUNCTION ConvertChar(c IN CHAR) RETURN AnyData,
STATIC FUNCTION ConvertVarchar(c IN VARCHAR) RETURN AnyData,
STATIC FUNCTION ConvertVarchar2(c IN VARCHAR2) RETURN AnyData,
STATIC FUNCTION ConvertRaw(r IN RAW) RETURN AnyData,
STATIC FUNCTION ConvertBlob(b IN BLOB) RETURN AnyData,
STATIC FUNCTION ConvertClob(c IN CLOB) RETURN AnyData,
STATIC FUNCTION ConvertBfile(b IN BFILE) RETURN AnyData,
STATIC FUNCTION ConvertObject(obj IN "<object_type>") RETURN AnyData,
STATIC FUNCTION ConvertRef(rf IN REF "<object_type>") RETURN AnyData,
STATIC FUNCTION ConvertCollection(col IN "<COLLECTION_1>") RETURN AnyData,
in the context of replicating SQL Server data in Oracle in real time?
Thank you.
titumukherjee,
>>importrow
Do you mean DataTable.ImportRow method? It just copy rows from a table to another table without any converting. You need perform additional operations to convert one datatype to another.
>>How can I use
insert into xxx values(ANYDATA.ConvertNumb
insert into xxx values(ANYDATA.ConvertVarc
here is example how to get ANYDATA as varchar2:
SQL> CREATE OR REPLACE
2 FUNCTION GetAnyData(
3 p_anydata ANYDATA,
4 p_date_mask VARCHAR2
5 )
6 RETURN VARCHAR2
7 IS
8 dummy PLS_INTEGER;
9 retval VARCHAR2(4000);
10 dt DATE;
11 BEGIN
12 CASE p_anydata.gettypeName
13 WHEN 'SYS.NUMBER' THEN
14 dummy := ANYDATA.GetNumber(p_anydat
15 WHEN 'SYS.DATE' THEN
16 dummy := ANYDATA.GetDate(p_anydata,
17 retval := TO_CHAR(dt,p_date_mask);
18 WHEN 'SYS.VARCHAR2' THEN
19 dummy := ANYDATA.GetVarchar2(p_anyd
20 END CASE;
21 RETURN retval;
22 END;
23 /
Business Accounts
Answer for Membership
by: sujith80Posted on 2007-02-11 at 20:54:37ID: 18513012
uniqueidentifier (16) - AFAIK there is no exact equivalent. May be you can use a number sequence or ROWID instead.
nvarchar - NVARCHAR2 . You must specify the length as you want e.g. NVARCHAR2(20)
ntext(16) - NVARCHAR2
sql_variant - dont know, could be BLOB
float (8) - NUMBER
datetime - date
tinyint (1) - NUMBER
smallint (2) - NUMBER
int (4) - NUMBER
bigint (8) - NUMBER