x
login about faq Site discussion (meta-askssc)

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 '10 at 02:31 PM in Default

Dave Myers gravatar image

Dave Myers
123 13 15 16

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

1 answer: sort newest

SELECT INTO is not supported against linked servers. You'll have to create the tables and populate them with INSERT.

more ▼

answered Aug 13 '10 at 03:03 PM

Magnus Ahlkvist gravatar image

Magnus Ahlkvist
13.7k 13 17 30

(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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x87
x26
x16

asked: Aug 13 '10 at 02:31 PM

Seen: 846 times

Last Updated: Aug 13 '10 at 02:31 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.