Re: Migrating SQLServer DBs to Sybase

From: Mark Rae (mark_at_mark-N-O-S-P-A-M-rae.co.uk)
Date: 03/11/05


Date: Fri, 11 Mar 2005 09:52:56 -0000


"iva lopes via .NET 247" <anonymous@dotnet247.com> wrote in message
news:OZqg%23$gJFHA.2728@TK2MSFTNGP09.phx.gbl...

> Hi there, i have to move a bunch of SQLServer DBs onto SYbase.

As has been mentioned perviously, SQL Server and Sybase are about as similar
as two RDBMS could be so, chances are, you'll be fine. You will almost
certainly be able to migrate the databases using a combination of SQL
Server-generated scripts to create the structure in Sybase, and SQL Server
DTS to migrate the data into it.

>My VB.NEt code uses all the functions in System.Data.SqlClient... do i need
>to change all my code
>now for sybase? And do I have to use ODBC? My expeerience here is limited!

You will need to change some code certainly, but how much largely depends on
how you've structured your app. If you've created a data abstraction class
which the rest of your app uses to communicate with SQL Server, then that's
all you'll need to change. However, if you've written direct database
connectivity in the code behind each of your aspx pages, then you will
obviously have a bit more work to do :-)

You can use ODBC if you want, but I would strongly suggest you use the
native Sybase .NET provider e.g.

using Sybase.Data.AseClient;

string strConnectionString = "Data
Source='myASEserver';Port=5000;Database='myDBname';UID='username';PWD='password';"
AseConnection objCon = new AseConnection();
objCon.ConnectionString = strConnectionString;
objCon.Open();

or

Dim strConnectionString As String = "Data
Source='myASEserver';Port=5000;Database='myDBname';UID='username';PWD='password';"
Imports System.Data.AseClient
Dim objCon As AseConnection = New AseConnection()
obCon.ConnectionString = strConnectionString
objCon.Open()



Relevant Pages

  • Re: Migrating SQLServer DBs to Sybase
    ... SQL Server and Sybase ... >which the rest of your app uses to communicate with SQL ... >Dim objCon As AseConnection = New AseConnection ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Scheduling DTS job
    ... If you try to transfer the same rowsfrom SQL Server to SQL Server ... > How do i see if there is any difference in the driver ... >>> The SQL server agent is running as Local System Account. ... >>> Nothing has been changed in sybase box. ...
    (microsoft.public.sqlserver.dts)
  • RE: Numeric Overflow of Column of datatype Money
    ... Sybase driver is failing on the column, long before it reaches SQL Server. ... That I have serveral column with datatype money that didnt have the ...
    (microsoft.public.sqlserver.dts)
  • RE: Connecting to Sybase
    ... Have you tried pushing the data directly into AS using SSIS, ... This paper describes push mode processing in more detail: ... issue with pulling the data from Sybase on a daily basis and putting it into ... a Sql server table then having ssas get the data from there. ...
    (microsoft.public.sqlserver.olap)
  • Re: MS SQL server & Sybase interoperability
    ... > I have an application build on Sybase database, and we waant to install MS ... We are using Sybase ASA and SQL Server 2000 on the same machine. ... Installing SQL Server 2000 AFTER installing Sybase did not cause ... caused problems with the ODBC dlls. ...
    (microsoft.public.sqlserver.server)