¡¼SQL Native Client OLE DB Provider ------------------------------------------------------------ standard security: Provider=SQLNCLI;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; ------------------------------------------------------------ Trusted Connection Provider=SQLNCLI;Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes; ------------------------------------------------------------ Prompt for username and password oConn.Properties("Prompt") = adPromptAlways oConn.Open "Provider=SQLNCLI;Server=myServerAddress;DataBase=myDataBase; ------------------------------------------------------------ Encrypt data sent over network: Provider=SQLNCLI;Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes;Encrypt=yes; ------------------------------------------------------------ Attach a database file on connect to a local SQL Server Express instance Provider=SQLNCLI;Server=.\SQLExpress;AttachDbFilename=c:\asd\qwe\mydbfile.mdf;Database=dbname;Trusted_Connection=Yes; ------------------------------------------------------------ Attach a database file, located in the data directory, on connect to a local SQL Server Express instance Provider=SQLNCLI;Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname;Trusted_Connection=Yes; ¡¼¡³¡µ¡º¡·¡ó¤jºõ²Å¸¹