String used to create a connection string to TestDB - ADO.NET
Q. You are a Web developer for CareerRide. The data is stored in a Microsoft SQL Server 2005 database on a server named CareerPC and the Database name is TestDB. You connect to TestDB by using Windows Integrated authentication. You use a SqlConnection object to connect to the database. You need to create a connection string to TestDB in the instance of SQL Server named CareerPC. Which string should you use?
- Published on 28 Jul 15a. “Data Source= CareerPC; Database=TestDB; Integrated Security=SSP1”.
b. “Data Source= CareerPC; Initial Catalog=TestDB; Integrated Security=SSP1”.
c. “Server= CareerPC; Database=TestDB; Integrated Security=SSP1”.
d. All of the above.
ANSWER: All of the above.