Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Coverting Oracle scripts to t-sql

Author  Topic 

kkr12
Starting Member

12 Posts

Posted - 2006-03-03 : 15:09:11
Hi,
We've 2 databases on Oracle and SQLServer and both has same data elements.I've some insert scripts in Oracle database which needs to be converted so that they can be executed in a SQL Server database. Does any one know of any way of converting these insert statements so that they can be run in query analyzer or from command prompt in a sqlserver database ?

Thanks,
kkr

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2006-03-03 : 16:32:40
Depends upon how complicated the scripts are. If they only do single inserts, then your task may not be difficult. But if they do multi-record inserts then Oracle's dependence upon cursors may make your current algorithms unsuitable for SQL Server's set-based paradigm.
Go to Top of Page

kkr12
Starting Member

12 Posts

Posted - 2006-03-06 : 09:26:45
The scripts only have single record inserts, normal insert into table statements with commit key word at the end.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-06 : 09:35:15
If they are simple insert statements, you can use them in SQL Server also. Post the Oracle code you used

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -