¡¼SQL Native Client ODBC Driver ------------------------------------------------------------ standard security: Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; ------------------------------------------------------------ Trusted Connection Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes; ------------------------------------------------------------ Prompt for username and password oConn.Properties("Prompt") = adPromptAlways Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; ------------------------------------------------------------ Encrypt data sent over network: Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes;Encrypt=yes; ------------------------------------------------------------ Attach a database file on connect to a local SQL Server Express instance Driver={SQL Native Client};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 Driver={SQL Native Client};Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname;Trusted_Connection=Yes; ¡¼¡³¡µ¡º¡·¡ó¤jºõ²Å¸¹