新建文件,将扩展名改为.udl,然后写入如下内容:
[oledb]; Everything after this line is an OLE DB initstringProvider=SQLOLEDB.1;Password=awp;Persist Security Info=True;User ID=sa;Initial Catalog=Student;Data Source=nighteyes.gicp.net\SQLEXPRESS,2066