Is it possible to configure a SQL Server CLIENT (cliconfg) via file? I'm looking forward to something like tnsnames.ora in Oracle world.


The data about connection aliases is stored in the Registry, so either a .reg file or a script that updates registry would do. Updating the Registry can be done with reg.exe or Powershell.

The tricky parts are cliconfg syntax and the fact that 32/64 bit registry keys are not the same. That is,


Take a look at this article about 32/64 bit versions.

  • Ok, thank you. Unfortunately it requires to pass every client, but at least I can automate it a little...
    – Alberto
    Oct 12 '13 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.