Hi folks,
Hope someone can help me out with this dilemma.
I have been tasked with the following:
Replicating an SQLServer 7.0 db to other servers, both on the LAN and wan.
Seems pretty straightforward, But...
First, the database I am replicating is not one we developed. It is EZCAP
by Quadramed. Previously, the used Centura as their engine. Anyway, due to
support issues, etc., we cannot modify the database. Stored procedures,
anything. This includes any modifications done for replication.
The database I am putting the database into is for reporting only. I will
be taking tables and views only. Not a problem. I am running into a little
issue however. I am using bcp out and in to replicate the tables. I am
having a problem with the "rowid" column, which is a timestamp datatype.
Initially, I changed the datatype to a varchar. I used a -c switch in the
bcp command line. That worked ok, except I can't figure out how to compare
the original field with new field.
I'm attempting to do all this without a format file. All seems to work well
as long I use the -c switch. I ran into the problem comparing the two
"rowid" columns, so I started experimenting with the -n and -N switches.
The data goes out ok, but I get lots of errors on the in portion.
sure would appreciate any help guidance as to how to deal with the timestamp
column. I've looked through BOL, google, msdn and the kb. Just can't get
it into my thick skull how to do it...
Here's the code I use for bcp in and out...
********bcpout********
EXEC master..xp_cmdshell 'bcp MONARCH..CLAIM_DETAILS out
C:\TEMP\CLAIM_DETAILS.txt -c /t"~|" /r
\r -U -P -m8000 -eC:\TEMP\CLAIM_DETAILS_err.txt'
********bcpin*********
EXEC master..xp_cmdshell 'bcp TESTDB..CLAIM_DETAILS in
C:\TEMP\CLAIM_DETAILS.txt -c /t"~|" /r
\r -U -P -m8000 -eC:\TEMP\CLAIM_DETAILS_err.txt -b5000'
Thanks in advance,
Bud Dean