This is good, but I am getting this error:
Msg 2714, Level 16, State 6, Line 1
There is already an object named 'logitems' in the database.
--I am trying to insert new rows into an existing table
Any ideas ?
Main Topics
Browse All TopicsI am importing Excel worksheets into an existing table in SQL 2008. I have decided to use the LINKED Servers capabilties in SQL server. I have set up a linked server already. I am just now getting a error when I try and run my load script.
Question: How can I correctly specify the linked server in my script?
error message='Incorrect syntax near the keyword 'FROM'
table= logitems
linked server name=coralway
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Looks to have a space in the four part identifier....
First make sure you have a linked server that will work... e.g.
select * FROM coralway...[wrkstation1$]
Then you can do the insert :
insert logitems -- best to spell out field names
select * FROM coralway...[wrkstation1$] -- again best to spell out field names
Make sure you are in the database for logitems, and if any doubt, then use that as part of the identifier e.g. <dbname>..<tablename> and possibly do not have to use the default schema of dbo in names unless you have to (because you have set up schemas and security / roles on those schemas).
Business Accounts
Answer for Membership
by: aneeshattingalPosted on 2009-10-30 at 09:30:17ID: 25704581
select * INTO dbo.logitems
FROM coralway ...[wrkstation1$]