Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

How to insert data from localdb to amazon redshift?

$
0
0
Hi, I have a populated table on my local machine, I have created the linked server and connection is working fine.I have also created the same table on redshift cluster and i want to insert all the data from localdb to redshift.this is my script:EXECUTE('INSERT INTO viasatsubscriptionID ,subscriptionrowdate ,phonenumberday ,viasatcustomerid FROM testschema.testoperation') AT REDSHIFT64 SELECT viasatsubscriptionID ,subscriptionrowdate ,phonenumberday ,viasatcustomerid FROM rdata.dbo.testoperationand throw this error:OLE DB provider "MSDASQL" for linked server "REDSHIFT64" returned message "[Amazon][RedShift ODBC] (30) Error occurred while trying to execute a query: ERROR: syntax error at or near ","LINE 2: ,subscriptionrowdatewhere am i going wrong?

Viewing all articles
Browse latest Browse all 3145

Trending Articles