Home arrow SQL Server arrow Page 3 - Migrating from Sybase to SQL Server
SQL SERVER

Migrating from Sybase to SQL Server


Projects involving database migration are common. In this article Sayed shares his experiences in migrating from Sybase to SQL Server...

Author Info:
By: Sayed Geneidy
Rating: 4 stars4 stars4 stars4 stars4 stars / 48
July 03, 2003
TABLE OF CONTENTS:
  1. · Migrating from Sybase to SQL Server
  2. · Data Compatibility Mode Behavior
  3. · Optimizer Hints
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Migrating from Sybase to SQL Server - Optimizer Hints
(Page 3 of 4 )

SQL Server allows for optimizer hints on SELECT, INSERT, UPDATE, and DELETE statements. Sybase allows optimizer hints only on SELECT statements. Here’s the SQL Server vs. Sybase GUI approach:

SybaseSQL Server
Use a text-based query analysis tool called SHOWPLANUse Query Analyzer
Command to enable SHOWPLAN from within ISQL

SET SHOWPLAN ONGO

Command to enable SHOWPLAN_ALL or SHOWPLAN_TEXT from query analyzer 

SET SHOWPLAN_ALLGO

Temporary Table Names

Type of table nameMaximum length
SQL Server table name128
SQL Server temporary table name116
Sybase table name30
Sybase temporary table name13

Data Types


Data typesSybaseSQL Server
char(n)2558000
varchar(n)2558000
nchar(n)2554000
nvarchar(n)2554000
binary2558000
varbinary2558000

Notes:
1) The bit data type in SQL Server can be set to 0, 1, or NULL.
2) The bit data type in Sybase does not allow nulls.

Identity Columns

SybaseSQL Server
Numeric(x,0)Tinyint,smallint,int,decimal(x,0) or numeric(x,0)

Print Syntax

All PRINT statements that use substitution syntax must be changed to RAISERROR statements during the conversion process.


blog comments powered by Disqus
SQL SERVER ARTICLES

- Executing SQL Server Stored Procedure from P...
- How to Search for Date and Time Values Using...
- Replication: SQL Server 2000 - Part 2
- Replication: SQL Server 2000 - Part 1
- SQL Sever: Storing Code in Binary or Text Fi...
- Execute SQL on Multiple Tables/Columns - New...
- How to Connect to a SQL Server from Visual F...
- SQL Server Hardware Tuning and Performance M...
- Primary Key on Multiple Tables – New RDBMS C...
- Migrating from Sybase to SQL Server
- What's Best for DBAs? GUI or T-SQL Comma...
- How to Perform a SQL Server Performance Audit
- An Introduction To The Bulk Copy Utility
- SQL Server Stored Procedures 101
- Building Your First SQL Server 2000 Database

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials