Unix Technical Forum

BCP Between different versions of Sybase

This is a discussion on BCP Between different versions of Sybase within the Sybase forums, part of the Database Server Software category; --> Hi All, We will update database on our office to version 15 very soon, but I have some doubts ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2008, 12:00 PM
Michael
 
Posts: n/a
Default BCP Between different versions of Sybase

Hi All,

We will update database on our office to version 15 very soon, but I
have some doubts about, maybe you could help me on that.
We have export/import procedures between many databases in our system,
some of them are customer side. Then this databases won't be upgraded.
The doubt is about these exp/imp procedures because for that we use
BCP in/out. I wanna know if bcp has problems between different
versions of sybase server.

Any help is welcome.
Tks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-12-2008, 05:24 PM
Bret_Halford
 
Posts: n/a
Default Re: BCP Between different versions of Sybase

On Sep 5, 3:48*am, Michael <michelga...@gmail.com> wrote:
> Hi All,
>
> We will update database on our office to version 15 very soon, but I
> have some doubts about, maybe you could help me on that.
> We have export/import procedures between many databases in our system,
> some of them are customer side. Then this databases won't be upgraded.
> The doubt is about these exp/imp procedures because for that we use
> BCP in/out. I wanna know if bcp has problems between different
> versions of sybase server.
>
> Any help is welcome.
> Tks



Are you using character (-c) or native (-n) mode bcp?

I haven't seen any problems with character mode. I have in the past
occasionally seen problems with native mode when the bcp format
version
changed and the same version of bcp was not used for both the extract
and
the insert. If using native mode, I'd recommend using the higher
version
of bcp to do both the extract and insert.

Other problems usually have to do with changes in table definitions.
For instance,
it isn't uncommon to migrate syslogins from one server to another
using bcp,
however in some version upgrades additional columns have been added
to
syslogins - so the solution there is to either create a holding table
on the higher
version server that has the same format as the older version table,
bcp into that,
then insert-select into the real table adding literal values for the
new columns - or
alternatively, create a view on the older server that adds the
additional columns
and bcp out of that view.

-bret

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-12-2008, 05:24 PM
Sybaseguru
 
Posts: n/a
Default Re: BCP Between different versions of Sybase

Michael wrote:
> We will update database on our office to version 15 very soon, but I
> The doubt is about these exp/imp procedures because for that we use
> BCP in/out. I wanna know if bcp has problems between different
> versions of sybase server.


If you keep your client bcp version the same you won't have any problems as
ASE negotiates the TDS level to the lowest common denominator. So you could
continue to use a 12.x bcp version with a 15.x server as the safest
upgrade to give you time to test.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: BCP Between different versions of Sybase

Thread Thread Starter Forum Replies Last Post
Sybase DBA, sybase Developer in France based company sush Sybase 0 04-08-2008 07:03 PM
Does Sybase OpenSwitch support JDBC XA clients to Sybase DBMSes? Joe Weinstein Sybase 0 04-08-2008 07:01 PM
Oracle DBA's Sybase trial out: 'lmgr' failed and 'minor' sybase database errors JZ Sybase 3 04-08-2008 04:27 PM
Sybase Australia User Group Meeting 6th Nov '03 - Sybase presents HA demo willy_and_the_ci Sybase 0 04-08-2008 04:04 PM
Sybase Australia User Group Meeting - Sybase presents HA with demo willy_and_the_ci Sybase 0 04-08-2008 04:01 PM


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com