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

avatar image

Dave Myers
123 15 15 18

(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

avatar image

Magnus Ahlkvist
21.1k 19 39 42

(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:

x147
x35
x23

asked: Aug 13, 2010 at 02:31 PM

Seen: 1595 times

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

Copyright 2016 Redgate Software. Privacy Policy