dbTalk Databases Forums  

Re: Where do Sybase & MS SQLServer Differ?

comp.databases.sybase comp.databases.sybase


Discuss Re: Where do Sybase & MS SQLServer Differ? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Petarian
 
Posts: n/a

Default Re: Where do Sybase & MS SQLServer Differ? - 11-15-2003 , 05:54 AM






Quote:



There is no difference as far as syntax goes. However, both Sybase and
Microsoft have added some new system procedures and functions since
their divorce.

Pete.





You don't pay to get spam, why pay to clean it?
Visit http://www.spammarshall.com to create an account for free
<http://www.spammarshall.com>

Steve wrote:

I would like to use sybase on linux at home to learn more TSQL for
SQLServer at work.

I was wondering where the differences were between sybase and
sqlserver.

Thanks in advance for any info

Steve





Reply With Quote
  #2  
Old   
Brian Ceccarelli
 
Posts: n/a

Default Re: Where do Sybase & MS SQLServer Differ? - 11-15-2003 , 03:03 PM






There are minor differences between the syntax of MS SQL and Sybase SQL.
Here are a couple:

1. Sybase can take parameters in print statements:

print 'Hello !1%", 'World'

Microsoft cannot take parameters in a print statement.. MS uses the print
statement from v4.x of Sybase.

2. There are minor differences in using cursors. You must declare a
cursor in its own batch in Sybase. In MS, the declare cursor can be one
of many statements in a batch. There are also small cursor syntax
differences @@sqlstatus vs @@fetch_status, close cursor X vx close X.


MS and Sybase do diverge on the stored procedures, but there are still many
common ones: sp_who, sp_help, sp_addlogin, etc. The system tables share
a lot in common, but they do vary.

..
Brian
http://www.dbpowersuite.com









"Steve" <stevesusenet (AT) yahoo (DOT) com> wrote

Quote:
I would like to use sybase on linux at home to learn more TSQL for
SQLServer at work.

I was wondering where the differences were between sybase and
sqlserver.

Thanks in advance for any info

Steve



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.