This question is locked. New answers and comments are not allowed.
Hi, I am currently evaluating the Telerik Data Access,
I commonly used a stored procedure to do Select and Save ( Update, Insert ,Delete) to database.
I checked Telerik Data Access will generate the method and return the class for the stored procedure that return a Data Set.
other than that , is there any other benefits using Telerik Data Acesss, compared to if I created the method using simple Data SQL Client connection like shown below ?
SqlConnection sqlConn = new SqlConnection(sqlConnect);
sqlConn.Open();
SqlCommand cmdFileInfo = new SqlCommand();
cmdFileInfo.Connection = sqlConn;
cmdFileInfo.CommandText = "dbo.uspInsFile;
cmdFileInfo.CommandType = CommandType.StoredProcedure;
cmdFileInfo.Parameters.Add(new SqlParameter("@Files", fileXML));
cmdFileInfo.Parameters.Add(new SqlParameter("@UserLogin", userLogin));
int returnID = cmdFileInfo.ExecuteNonQuery();
sqlConn.Close();
Thank you
I commonly used a stored procedure to do Select and Save ( Update, Insert ,Delete) to database.
I checked Telerik Data Access will generate the method and return the class for the stored procedure that return a Data Set.
other than that , is there any other benefits using Telerik Data Acesss, compared to if I created the method using simple Data SQL Client connection like shown below ?
SqlConnection sqlConn = new SqlConnection(sqlConnect);
sqlConn.Open();
SqlCommand cmdFileInfo = new SqlCommand();
cmdFileInfo.Connection = sqlConn;
cmdFileInfo.CommandText = "dbo.uspInsFile;
cmdFileInfo.CommandType = CommandType.StoredProcedure;
cmdFileInfo.Parameters.Add(new SqlParameter("@Files", fileXML));
cmdFileInfo.Parameters.Add(new SqlParameter("@UserLogin", userLogin));
int returnID = cmdFileInfo.ExecuteNonQuery();
sqlConn.Close();
Thank you