follow my heart...
分类: 数据库开发技术
2006-07-31 17:52:57
• | master |
• | model |
• | msdb |
• | tempdb |
• | Run the stored procedure "sp_attach_db" to attach your database to MSDE as follows:
|
• | Use the Microsoft OLEDB Provider for SQL Server to attach the .mdf database file and connect to the database directly. In this case, the connection string should resemble the following:
|
• | Use the Microsoft OLEDB Provider for SQL Server to point to the local MSDE. In this case, the connection string should resemble the following:
|
• | Use the Microsoft OLEDB Provider for ODBC drivers (MSDASQL) to connect to MSDE. You can create a DSN on each target machine or use a DSN-less connection NOTE: The third and fourth approaches above require attaching the database prior to using the connection string(s). |
• | You can optionally use SQL-DMO to start MSDE, attach or/and detach your custom database to MSDE. |