Site sponsored by: Idera The gold standard of SQL Server performance monitoring & diagnostics.
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
Developer
General DBA
ASP.NET / ADO.NET

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

System Data Collection Reports
Recover Data Using Database Snapshots
Analyze and Fix Index Fragmentation in SQL Server 2008
Powerful Geographical Visualisations made easy with SQL 2008 Spatial (Part 2) ...

More     
 
Latest FAQ's

How to alter a User Defined Data Type?
How to unzip a File in SSIS?
How to view previous query plans?
ALTER TABLE SWITCH statement failed because the object '%.*ls' is not ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

articles >> general dba >> Making the Move from Sybase to SQL ...

Making the Move from Sybase to SQL Server

By : Sayed Geneidy
Aug 30, 2003

Page 4 / 4

Optimizer Hints

MSSQL Server allows for optimizer hints on SELECT, INSERT, UPDATE, and DELETE statements. Sybase allows optimizer hints only on SELECT statements.

The MSSQL Server vs. Sybase GUI approach:

Sybase

SQL Server

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

SET SHOWPLAN ON
GO

Command to enable SHOWPLAN_ALL or SHOWPLAN_TEXT from query analyzer 

SET SHOWPLAN_ALL
GO

 

Temporary Table Names

Type of table name

Maximum length

SQL Server table name

128

SQL Server temporary table name

116

Sybase table name

30

Sybase temporary table name

13

 

Data Types

Data types

Sybase

SQL Server

char(n)

255

8000

varchar(n)

255

8000

nchar(n)

255

4000

nvarchar(n)

255

4000

binary

255

8000

varbinary

255

8000

Notes:

1) The bit data type in  MSSQLServer can be set to 0, 1, or NULL.

2) The bit data type in Sybase does not allow nulls.

 

Identity Columns

Sybase

SQL 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.

 

Conclusion

Converting a Sybase to SQL Server is a feat that can be accomplished, but there are a number of differences between the two products that must be addressed. Depending on the size of your application, this conversion could turn into a lengthy process. You don't have to rewrite the whole application, but there are a fair amount of show stoppers. However, look at the bright side: I can't think of an easier conversion between two major database packages than this one, and a successful conversion is highly probable because of the products many similarities. Happy migrating.

 

Published with the express written permission of the author. Copyright 2003.


<< Prev Page         








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved