x

Exporting data to a linked iSeries server

I need to export the data from a SQL Server table to an iSeries linked server I have already set up (and I know that I can connect to)on that server.

I have done a SELECT INTO but I get an error

Blockquote

"The object name HLDEV.HLDEV.MTRVEND.CARD_MTR' contains more than the maximum number of prefixes. The maximum is 2. (Microsoft SQL Server Native Client 10.0)"

Blockquote

SELECT [ID] ,[MTR_DATE] ,[STORE_Number] ,[TYPE] ,[YEAR] ,[AMOUNT] ,[MTR_Number] ,[DOC_Number] ,[CRED_AMT] ,[FREIGHT] ,[INVOICE_DISCOUNT] ,[INVOICE_Number] ,[CRED_DT] ,[CRED_CONF] ,[COMMENTS] INTO [HLDEV].[HLDEV].[MTRVEND].[CARD_MTR] FROM [PATTERN_CARD_MTR].[dbo].[CARD_MTR] GO

I would appreciate someones assistance in getting me unpickled

Thank You
more ▼

asked Aug 13, 2010 at 02:31 PM in Default

Dave Myers gravatar image

Dave Myers
123 15 15 16

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
SELECT INTO is not supported against linked servers. You'll have to create the tables and populate them with INSERT.
more ▼

answered Aug 13, 2010 at 03:03 PM

Magnus Ahlkvist gravatar image

Magnus Ahlkvist
16.6k 17 20 33

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x112
x28
x19

asked: Aug 13, 2010 at 02:31 PM

Seen: 1468 times

Last Updated: Aug 13, 2010 at 02:31 PM