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?
1. “Data Source= CareerPC; Database=TestDB; Integrated Security=SSP1â€.
2. “Data Source= CareerPC; Initial Catalog=TestDB; Integrated Security=SSP1â€.
3.“Server= CareerPC; Database=TestDB; Integrated Security=SSP1â€.
4. All of the above.
Posted Date:-2022-02-01 11:58:34