How to add a linked server (informix) without preset ODBC Connection

Hello Experts,

I successfully created a linked server connection to an Informix Server. However, I did not really liked the configuration steps and I suspect (hope) those steps can be made easier. Here are my steps:

1. Install Informix SDK on my SQL Server VM.
2. Create ODBC Connection for my target Informix server and test the connection
3. Run this statement:
     EXEC sp_addlinkedserver
     @Server = '<name for my Linked In Server that I choose>'
     @provider = 'MSDASQL'
     @datasrc = '<Name of my created ODBC Connection>'
     @srvproduct = 'Ifxoledbc'

...All works fine - means I have no fundamental issue with drivers, the host, target, etc.

However, I want to provide several of those entries not from my ODBC connection but via (perhaps?) @provstr. (Omit step 2 altogether)

I think I can use most (all) entry requirements using this @provstr (Host, Server, Service, Protocol, Database, UID, PWD) As you may have guessed, when I omit the @datasrc and add @provstr, it generates error and says 'Data Source Name not found and no default driver specified'

Is what I am trying possible? How do I do that?

Thank you in advance
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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
Vitor MontalvãoMSSQL Senior EngineerCommented:
bozer, do you still need help with this question?
bozerAuthor Commented:
Thank you,

I wanted to post my full solution (that's why I accepted the solution late) but I am unable to access my lab.

Basically, I had use what's been guided and also had to add client and DB locale's to avoid mismatch issues.
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.