SQL Server
  Home arrow SQL Server arrow Page 3 - Migrating from Sybase to SQL Server
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SQL SERVER

Migrating from Sybase to SQL Server
By: Sayed Geneidy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 35
    2003-07-03

    Table of Contents:
  • Migrating from Sybase to SQL Server
  • Data Compatibility Mode Behavior
  • Optimizer Hints
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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.

    More SQL Server Articles
    More By Sayed Geneidy


     

    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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT