可以方问的。
访问SQL:
cn.Open "driver={SQL Server};server=167.12.23.2;uid=sa;pwd=;database=dbname"
cn为连接对象,uid为用户名,pwd为密码,如果没有则为空,database为数据库名称