sp_addlinkedserver procedure not linking Excel source

I am attempting to link an Excel source to a SQL Server DB on the Go Daddy website.  When I execute the sp in SQL Server, it shows it executed successfully, but no data is linked.

This is the main part of my procedure:


Your thoughts, comments?


-- ADD THE LINKED-SERVER
    EXEC sp_addlinkedserver 
   @server = 'XLHybrid', 
   @provider = 'Microsoft.ACE.OLEDB.12.0',
   @srvproduct = 'Excel',
   @provstr = 'Excel 12.0 Macro',
   @datasrc = 'C:\Database\XLHybrid.xlsm'

Open in new window

brohjoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
>but no data is linked.

how do you "see" that?

>   @datasrc = 'C:\Database\XLHybrid.xlsm'
you are aware, I presume,  that the file has to be on the sql server box, and not on your PC, unless both are the same machine...
0
brohjoeAuthor Commented:
Ok.  So how do I link a local Excel file to a remote SQL Server DB?
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you cannot do that. you have to get the file copied to the server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

brohjoeAuthor Commented:
Is it possible to upload the files remotely?
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
sure, if you have some FTP or other "upload" mechanism. but that is another question ...
0
brohjoeAuthor Commented:
I guess you are probably right.  I've been searching online off and on for over a month and I have not been able to find any examples that would allow you to link remotely.  I just needed confirmation.  Thanks again angellll.
0
brohjoeAuthor Commented:
Angellll is always quick with his responses and is usually very accurate.  I can always feel confident that his answers are correct.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.