The ___________ attribute in a connection string specifies the name of the database to connect to.
- server
- database
- username
- password
In a connection string, the attribute that specifies the name of the database to connect to is the "database" attribute. This attribute informs the application which database it should establish a connection with. It doesn't relate to server, username, or password directly but rather identifies the database itself. Hence, "database" is the appropriate option.
Loading...
Related Quiz
- You are tasked with creating a .NET application that interacts with a SQL Server database. You want to use a DataAdapter to efficiently populate a DataTable with the result set of a complex SQL query. Which method of the DataAdapter would you use for this purpose?
- Which method is used to advance the data reader to the next record in the result set?
- Scenario: Your WinForms application requires the user to edit and save customer information. How can you ensure that changes made in a data-bound control are propagated back to the data source?
- To prevent SQL injection attacks, it is recommended to use ________ queries.
- What is the difference between LINQ to SQL and LINQ to Entities?