Getting error in insert activity as incorrect syntax near keyword ‘File’.
Share your insert query here
Hi,
Could you please share the query where you have used “File” keyword.
Regards,
AK
hii @AnandKumar26
I am not using any query here… i am using insert activity here.
RegardsMain.xaml (10.5 KB)
This is my .xaml file.
Show us the Properties Tab for Insert activity
Regards,
AK
I have share the xaml file .
Hi @Gauri_Rawool
Could you please check the below things?
- make sure columns names are same as the column names of your table.
- your data or column names should not have any ’ or "
Thanks!
hii @Deepak94
I have removed all and or _ keywords from columns name
Feed Files Trackers.xlsx (14.8 KB) Main.xaml (10.5 KB)
above are my .Xaml and excel file. I already created table in database. I am using same table name in insert activity.
Hi @Gauri_Rawool,
could you please share screenshot of your sql table column names?
Thanks!
These are my columns mentioned in notepad.SqlColumns.txt (480 Bytes)
Thanks @Gauri_Rawool for sharing the column names.
you can try it as below.
Read you sql table = dtSqlTable
read excel = dtYourExcelRead
assign i=0
while i<dtYourExcelRead.column.count
assign dtYourExcelRead.column(i).ColumnName=dtSqlTable.column(i).ColumnName
i=i+1
and then insert dtYourExcelRead as it is in the sql table.
hope this will work for you.
Thanks!
how i read my sql table?
how many assign activity i should use?
Hi @Gauri_Rawool,
Just on select * from query to read entire SQL table.
Inside while as I mentioned above, there would be only one assign activity like…
dtYourExcelRead.column(i).ColumnName=dtSqlTable.column(i).ColumnName
And make sure to increment i=I+1
Thanks!
ok…thanks a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
