Correct Answer : ActiveX Data Object
Explanation : ADO.NET stands for ActiveX Data Object is a database access technology created by Microsoft as part of its . NET framework
Correct Answer : SqlBulkCopyOptions
Explanation : Bitwise flag that specifies one or more options to use with an instance of SqlBulkCopy.
Correct Answer : Asynchronous=true
Correct Answer : All of the above
Correct Answer : DataSetName
Correct Answer : True
Explanation : True, ADO.NET provides a bridge between the front end controls and the back end database.
Correct Answer : Yes, by setting the RowFilter property of the DataView
Correct Answer : Initial Catalog
Correct Answer : Clone
Explanation : Clone : Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data.
Correct Answer : False
Explanation : The goal of dotConnect for SQL Server is to enable developers to write efficient and flexible database applications. The dotConnect for SQL Server assemblies are implemented using optimized code and advanced data access algorithms.
Correct Answer : sqlConn.Open() and sqlConn.Close()
Explanation : The Close method rolls back any pending transactions and releases the Connection from the SQL Server Database.
Correct Answer : All of the above.
Correct Answer : ReadData
Correct Answer : Both (A) and (B)
Correct Answer : zero
Explanation : dotConnect for SQL Server includes base-class-based provider model, provider factories, connection string builder, metadata schemas, asynchronous commands, pooling enhancements, batch update support, provider-specific types, server enumeration, database change notification support and so on.
Correct Answer : DataSet
Correct Answer : Server=localhost\sqlexpress
Explanation : An instance of the SqlConnection class in .NET Framework is supported by the Data Provider for SQL Server Database.
Correct Answer : ADO.NET doesn't support disconnected architecture
Correct Answer : All of above are true
Correct Answer : i-True, ii-True, iii-False
Correct Answer : i-True, ii-True
Correct Answer : ADO.Net
Correct Answer : i, ii and iii only
Correct Answer : Data Relation
Correct Answer : SQLServer .NET Data Provider
Correct Answer : ADO
Correct Answer : XML Format
Correct Answer : ExecuteScalar
Correct Answer : Data Table
Correct Answer : ExecuteReader()
Correct Answer : ii and iii only
Correct Answer : Data set
Correct Answer : i and iii only
Correct Answer : In Web.config file
Correct Answer : State
Correct Answer : QueryDataAdapter
Correct Answer : Data Adapter
Correct Answer : Data reader
Correct Answer : ExecuteNonQuery()
Correct Answer : i and ii only
Correct Answer : Use DataViev object with each sort
Explanation :
DataView.Sortproperty allow you to sort data. Using a DataView, you can show the data in a table with different sort orders.
Example : In this example our table name is StudentMaster.
public partial class Default5 : System.Web.UI.Page { SqlConnection con = new SqlConnection("provide connection string"); SqlDataAdapter da; protected void Page_Load(object sender, EventArgs e) { string query = "select * from StudentMaster"; da = new SqlDataAdapter(query, con); DataSet ds = new DataSet(); da.Fill(ds); DataView dv = new DataView(); dv = ds.Tables[0].DefaultView; dv.Sort = "studName"; DataTabledt = dv.Table; GridView1.DataSource = dt; GridView1.DataBind(); } }
Correct Answer : It is the type of column or data in SQL Server that the command expects.
Correct Answer : Input, Output, InputOutput
Explanation : There are three types of parameters that you can use in a .NET Framework and those are Input, Output, InputOutput . Parameters are like variables that you can use to pass and return values between your application and a database. The types of parameters are defined by SqlDbTypeenumeration. It contains a list of the types available in SQL Server. These parameter values are pass to SQL statements and stored procedures. SQL Server uses the @ symbol as a prefix to denote parameters.
SqlParameterparaObj = new SqlParameter(); paraObj.ParameterName = "@TotalCost"; paraObj.SqlDbType = SqlDbType.Money;
Correct Answer : Set the Command.CommandTextproperty to multiple SQL statements delimited by a semicolon.
String sqlQuery = ”select * from table1; select * from table2”; SqlConnection con = new SqlConnection(connectionString); SqlCommandcmd = new SqlCommand (); Con.Open(); SqlDataReaderdr = cmd.ExecuteReader(); While(dr.read()) { // Process the table1 } Dr.NextResult(); While(dr.read()) { // Process the table2 }
Correct Answer : 30 Seconds
Correct Answer : EmployDataAdapter.Fill(EmployDataset)
Correct Answer : 2, 4
Explaination : SqlException.Message and SqlError.Messageproperty contains the actual error message returned by SQL Server.
Correct Answer : 2, 3
Explaination :
Provider = Microsoft.ACE.OLEDB.12.0; Data Source = C:\myFolder\myAccessFile.accdb; Persist Security Info = False;
Correct Answer : Use SQL statements.
Correct Answer : Typed
Correct Answer : TDS - Tabular Data Stream
Correct Answer : Windows 2000 Component Service
Correct Answer : The SqlClient data provider.
Correct Answer : Object
Correct Answer : ExecuteXMLReader
Correct Answer : Statement 1 and 3 is correct.
Web.config
Correct Answer : ASPNET_REGIIS.EXE
Correct Answer : DataTable, DataColumn, and DataRelation.
Correct Answer : Set MultipleActiveResultSets=True