Problem solve Get help with specific problems with your technologies, process and projects.

Executing an Oracle stored procedure on SQL Server

Oracle uses its own dialect of SQL called PL/SQL, while SQL Server uses T-SQL, making it difficult to get Oracle stored procedures to work on a SQL Server database. But there is a migration tool that will help.

How do I execute an Oracle stored procedure on a SQL Server?
Oracle uses its own dialect of SQL called PL/SQL (procedural language extension to Structured Query Language), while SQL Server uses T-SQL (Transact-SQL). The two have very different rules about variables, parameters, conditional processing, error handling and so forth. So unless the Oracle stored procedure contains only ANSI SQL statements, it won't work on SQL Server. However, Microsoft recently introduced a new tool that aids in the migration process from Oracle to SQL Server. You should investigate the SQL Server Migration Assistant. You should also note that moving from Oracle to SQL Server is not considered a simple point-n-click process. It usually involves a healthy dose of planning, analysis and good ol' fashion elbow grease.


Do you have comments on this Ask the Expert Q&A? Let us know.

Dig Deeper on SQL Server Stored Procedures

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.