Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 02:39 AM
Authorized User
 
Join Date: Jan 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default converting sybase to sql2000

im reposting this as no-one responded to it before ..

me a noob at db conversion & have never worked on sybase.

i wanted to convert Sybase Adaptive Server 6.x DB to SQL Server 2000 format including all its queries,triggs etc.(the tables rnt that advanced, so i guess it wudnt be a big trouble). I tried using the Import/Export Utility of SQL Server but am kind'f of stuck.

this is the current situation:
I have SQl 2000 Server(not configured to work properly) Trial
       Sybase Enterprise Server PC Clients 12.5.2
       Power Designer 10.0
       Power Transfer 10.0
       Infomaker 9.0
my database file "CUSTMR.DB"

Do tell me howto convert the db to SQL Server or any other possible format

also will it be possible to run SQL Server 2000 & Sybase Adaptive Server Side By Side so that the old core application can continue accessing the sybase database wheres my new vb or asp.net application can access both sql server db as well as sybase db coz the older app cant be modified and has other core functions that cant be substituted.


 
Old August 18th, 2004, 08:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't think any of us know- that's why no one replied.

My guess is there is no tool to convert and you will need to re-write everying in SQL server. Then you could use a script to import the data. However, using the two side by side will cause them to go out of sync and you will need to find a way to keep them in sync. Including changes, deletes and new rows in each one of the tables. Your in for quite a bit of work.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old August 18th, 2004, 11:55 AM
Authorized User
 
Join Date: Jun 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just recently migrated a somewhat large Sybase DB to SQL2k. If you seach M$ site you will find MSDN articles that hi light much of the differences and gotchas.

Things like differences in language:
Sybase: Char_Length = SQL: Len
Sybase: @@SQLStatus = SQL: @@Fetch_Status
DataTime conversions

Using mostly DTS and a bit of Embarcadero - I move the whole system across in about 10 hours - the only re-write I had to do was mostly FIND and REPLACE

_________________________
Joe Horton
Database Developer / Software Engineer
WISHA/Legal Services Software Development
Department of Labor and Industries
Voice (360) 902-5928 fax (360) 902-6200
 
Old August 19th, 2004, 08:45 AM
Authorized User
 
Join Date: Jan 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey .. i dont want to rewrite the existing app or anything .. no appending or editing of the current app ..

anyways now that converting the whole db is considered tough .. all i want to do is copy the tables or say import the tables one-by-one or all together into access or sql ...

see the problem with me is ive only worked with access and asp before .. and never with db servers .. and this is sumthin like a project im forced to do .. so anything will be sumthin' for me ..

 
Old August 24th, 2004, 05:10 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SQL Server and Sybase used to be thte same company meny moons ago. Then one day, Microsoft left ans started to create a better product. Sybase does not have all of the functionality that SQL Server does. You can not just convert the Triggers and stored procedures from Sybase to SQL Server. The data, that is not a big problem, use DTS and you should be able to move the data without a glitch.

Sybase ASA does not even have the ability to do an

select *
into tablename
from table1

It is limited even on the way some case statements and if statements are written in TSQL.

If you are going from Sybase, chances are you will not be able to downgrade it to Access. Access would not be able to haldle much data.



Sal
 
Old August 25th, 2004, 09:26 AM
Authorized User
 
Join Date: Jan 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yea .. i dont want the triggers .. atleast for the time being ..

I just need either Sybase Adaptive Server Anywhere 6.0.3 or its driver to .. to set-up a dsn .. which im not very familiar with ..
i could find only tutorials on howto setup access dsn's ..

i really need this thing worked out ... creating 74 tables and unloading data into them manually isnt that easy atleast for me ..

so any ideas .. welcome .. so far i cant set-up a dsn or odbc conn .. for sybase .. [b'coz by old db is ASA 6.0.3 & i only have ASE 12.5]

ive however managed to unload the table structure into sql file .. but how do i use it to create tables in sqlserver?? part of which ive pasted here .. http://p2p.wrox.com/topic.asp?TOPIC_ID=18072



 
Old August 25th, 2004, 06:00 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try to create a linked server in SQL Server to the Sybase server. Then do a

Select *
into tablenameinSQLServer
from linkedserver...table1

or something like that. You could alsop just use DTS to do this.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Output parameter sybase C# goser C# 2005 2 October 24th, 2007 03:17 AM
PHP + Sybase nelly05 PHP Databases 0 June 26th, 2005 01:56 AM
M$ SQL verses Sybase hortoristic SQL Server 2000 2 February 18th, 2004 07:11 PM
Sybase to Oracle abhitimes Access 0 July 31st, 2003 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.