You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.
You run the application under a Least-Privilege User Account (LUA) of the Windows operating system.
You need to configure the SQL Server 2005 connection string in the app.config file to use SQL Server Express user instances.
Which code segment should you use?
A.
Data Source=\SQLExpress; Integrated Security=true; AttachDBFilename=|DataDirectory|InstanceDB.mdf; Initial Catalog=InstanceDB;
B.
Data Source=\SQLExpress; Integrated Security=true; User Instance=true; AttachDBFilename=InstanceDB.mdf; Initial Catalog=InstanceDB;
C.
Data Source=\SQLExpress; Integrated Security=true; User Instance=true; AttachDBFilename=|DataDirectory|InstanceDB.mdf; Initial Catalog=InstanceDB;
D.
Data Source=\SQLExpress; Integrated Security=false; User Instance=true; AttachDBFilename=|DataDirectory|InstanceDB.mdf; Initial Catalog=InstanceDB;