SqlCommandBuilder.GetUpdateCommand Method ()
Gets the automatically generated SqlCommand object required to perform updates on the database.
Assembly: System.Data (in System.Data.dll)
An application can use the SqlCommand object to be executed.method for informational or troubleshooting purposes because it returns the
After the Transact-SQL statement is first generated, the application must explicitly call RefreshSchema if it changes the statement in any way. Otherwise, the will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either Update or .
For more information, see Generating Commands with CommandBuilders.
Available since 1.1