Datatype misrepresentation DTS with SQL Server

Поиск
Список
Период
Сортировка
От Matt Wedgwood
Тема Datatype misrepresentation DTS with SQL Server
Дата
Msg-id 991E16E7D6C25F4DA9F439DDD2B4FA4F12C7B1@SANCHEZ.TONYSANCHEZ.COM
обсуждение исходный текст
Ответы Re: Datatype misrepresentation DTS with SQL Server  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-odbc

(I sincerely apologize if this is has been covered here - I didn't have much luck searching the archives)

I'm trying to use the "Import and Export Data" (DTS) tool included with MS SQL Server to push data to a PostgreSQL 7.1.3 database via an ODBC connection. Everything works great, except if I try to use the bigint/int8 data type for columns on the PostgreSQL side. DTS incorrectly sees the int8 datatype as "char" and therefore ties to shove a space-padded representation of the integer into the table. PostgreSQL doesn't like it.

The integer/int4 datatype doesn't cause this problem, but I will be inserting more rows than the int4 datatype can count (I want a bigint primary key).

I don't know any way around this problem, and DTS is kind of a requirement for the project.

Thanks in advance for any help you can provide.

-MW

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "ando@libero.it"
Дата:
Сообщение: Re: Problems with VB and ADO
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Datatype misrepresentation DTS with SQL Server