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()