ASP.Net - Online Exam Test Papers | ASP.Net - MCQs[multiple choice questions and answers ] | ASP.Net - Mock Test Papers | ASP.Net - Practice Papers | ASP.Net - Sample Test Papers |

Question:
 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


More MCQS Questions and answers

Search