Re: BCP Between different versions of Sybase



On Sep 5, 3:48 am, Michael <michelga...@xxxxxxxxx> 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

.



Relevant Pages

  • Re: BCP error 22001 - String data, right truncation
    ... application developers strip those types of garbage characters out before ... > Once I switched to native mode the problem went away. ... >> First be sure the table schema on the target server matches the one on ... >>>I am using bcp to copy a table from one sql server to another. ...
    (microsoft.public.sqlserver.tools)
  • BCP and non-latin database names
    ... connect to databases with Japanese names using BCP. ... BCP cannot connect using the same information: ... Login fails. ... Of course the Japanese characters don't look like they'll show up OK here, ...
    (microsoft.public.sqlserver.connect)
  • Re: copy table & data
    ... Search for BCP ... Looking for SQL Scripts, Need Help? ... > Hi Greg, ... >> Document all your databases now. ...
    (microsoft.public.sqlserver.programming)
  • BCP Between different versions of Sybase
    ... We will update database on our office to version 15 very soon, ... We have export/import procedures between many databases in our system, ... Then this databases won't be upgraded. ... BCP in/out. ...
    (comp.databases.sybase)
  • Re: Whats the bcp (SQL Server) substitute in Oracle??
    ... secured UNIX server using the bcp utility of SQL Server. ... But now this database will be migrated to Oracle 10g. ... Flat File and Out File. ...
    (comp.databases.oracle.misc)