Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
This topic describes how to connect to a SQL Server Compact 3.5 database by using Visual Studio.
To connect to a database
Open Visual Studio.
At the top right, open Server Explorer.
In the Server Explorer, right click Data Connections.
Click Add Connection.
In the Choose Data Source dialog box, select Microsoft SQL Server Compact 3.5 and then click Continue.
In the Add Connection dialog box, browse for the SQL Server Compact 3.5 database.
Important
In the Add Connection dialog box, to set the maximum size for a database, click Advanced. In the Advanced Properties box, under Max Database Size, specify a database size greater than or equal to the size of the SQL Server Compact 3.5 database that you plan to connect to. The default value of the Max Database Size property is 128 MB for devices and 256 MB for desktops.