I want to know if it's possible to choose a sqlserver database with VBA?

I will eager want to know or it a code am for VBA with which you a sql-serve data boss can choose. I have an adm. office and work with UNIT4. This program works serve with SQL-. Per customer, UNIT4 a data boss has. I have works a macro (VBA-code) that for me the claimed the data. Now I want to use has been written the macro for all customers only this macro/quiery for one administration. Thus as I the macro (in excel) will use for someone else administration, must I run the 'wizard turn table' and in the quiery go to raise data after which the quiery run. There I can change then the data boss, or choose too well someone else customer.

But this is a little bit circuitous. Is not for that a task or code for?