id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
NET_Methods_Properties/3088_169_0.txt | ### | |
NET_Methods_Properties/NET_Methods_2_3.txt | r in the console window, indicating that
' the main thread is not blocked while awaiting the command
' results.
Dim count As Integer = 0
While Not result.IsCompleted
count += 1
Console.Write... | |
NET_Methods_Properties/3088_123_0.txt |
--- | |
NET_Methods_Properties/connectornettutorial_171_0.txt | * [ Downloads ](https://www.mysql.com/downloads/)
* [ MySQL Community Server ](https://dev.mysql.com/downloads/mysql/)
* [ MySQL NDB Cluster ](https://dev.mysql.com/downloads/cluster/)
* [ MySQL Shell ](https://dev.mysql.com/downloads/shell/)
* [ MySQL Router ](https://dev.mysql.com/downloads/router/)
* [ MySQL Workben... | |
NET_Methods_Properties/3088_128_0.txt | Member | |
NET_Methods_Properties/3088_95_0.txt | This is a fresh database, with 1 record. ` guild_id ` has a constraint of
UNIQUE, which should create an index. As for the invalid queries, this has
happened before. I once left an unclosed brackets/quote and executed the
query, which left the program hanging. Not sure if it was because I was using
4.1.3 at the time, h... | |
NET_Methods_Properties/SolutionExecuteNonQu_18_0.txt | [ View Original ](http://www.niteshluharuka.com/2012/12/solution-
executenonquery-always-returning-1-when-calling-a-stored-procedure/) | |
NET_Methods_Properties/3088_133_0.txt | 466356954865074176
Here 1
Here 2 | |
NET_Methods_Properties/SolutionExecuteNonQu_86_0.txt | 
General

News

Suggestion
;Integrated Security=true;" +
"Initial Catalo... | |
NET_Methods_Properties/connectornettutorial_50_0.txt | * [ Writing a Custom Authentication Plugin ](connector-net-programming-authentication-user-plugin.html) | |
NET_Methods_Properties/connectornettutorial_21_0.txt | [ Installing Connector/NET on Windows ](connector-net-installation-
windows.html) | |
NET_Methods_Properties/3088_69_0.txt | Exception message: N/A (hangs)
Stack trace: N/A (hangs) | |
NET_Methods_Properties/SolutionExecuteNonQu_83_0.txt | Thanks. | |
NET_Methods_Properties/connectornettutorial_20_0.txt | * [ ]() | |
NET_Methods_Properties/SolutionExecuteNonQu_87_0.txt | Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads,
Ctrl+Shift+Left/Right to switch pages. | |
NET_Methods_Properties/connectornettutorial_52_0.txt | * [ ]() | |
NET_Methods_Properties/3088_23_0.txt | # Search code, repositories, users, issues, pull requests... | |
NET_Methods_Properties/connectornettutorial_107_0.txt | * [ ]() | |
NET_Methods_Properties/connectornettutorial_106_0.txt | * [ Configuring Character Sets and Collations in EF Core ](connector-net-entityframework-core-charset.html) | |
NET_Methods_Properties/3088_0_0.txt | Skip to content | |
NET_Methods_Properties/connectornettutorial_67_0.txt | * [ ]() | |
NET_Methods_Properties/NET_Methods_3_9.txt | " & _
"has completed.")
Else
Dim command As SqlCommand
Try
ClearProductInfo()
DisplayStatus("Connecting...")
connection = New SqlConnection(GetConnectionString())
' To emulate ... | |
NET_Methods_Properties/connectornettutorial_144_0.txt | The next example shows how to use the ` ExecuteNonQuery ` method. | |
NET_Methods_Properties/connectornettutorial_83_0.txt | * [ Working with Stored Procedures ](connector-net-tutorials-stored-procedures.html) | |
NET_Methods_Properties/3088_48_0.txt | [ Sign up for GitHub
](/signup?return_to=%2Fnpgsql%2Fnpgsql%2Fissues%2Fnew%2Fchoose) | |
NET_Methods_Properties/NET_Methods_0_1.txt | em.data.sqlclient.sqlparameter.sqldbtype?view=dotnet-plat-
ext-8.0#system-data-sqlclient-sqlparameter-sqldbtype) other than **Char** ,
**NChar** , **NVarChar** , **VarChar** , or **Xml** was used when [ Value
](system.data.sqlclient.sqlparameter.value?view=dotnet-plat-ext-8.0#system-
data-sqlclient-sqlparameter-value) ... | |
NET_Methods_Properties/NET_Methods_3_5.txt | .
#### Returns
[ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0)
An [ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0) that can be
used to poll, wait for results, or both; this value is also needed when the [
EndExecuteXmlReader(IAsyncResult)
](system.data.sqlclient.sqlcommand.endexecutexml... | |
NET_Methods_Properties/SolutionExecuteNonQu_37_0.txt | Let us consider this function that tries inserting Email address and Password
fields to the database via a test SP. | |
NET_Methods_Properties/3088_193_0.txt | Milestone | |
NET_Methods_Properties/NET_Methods_2_0.txt | Skip to main content
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support.
[ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881
) [ More info about Internet Explorer and Microsoft Edge
](https://learn... | |
NET_Methods_Properties/connectornettutorial_22_0.txt | * [ Installing Connector/NET Using the Standalone Installer ](connector-net-installation-binary-windows-installer.html) | |
NET_Methods_Properties/87488_20_0.txt | Topic archived. No new replies allowed. | |
NET_Methods_Properties/connectornettutorial_40_0.txt | * [ ]() | |
NET_Methods_Properties/connectornettutorial_44_0.txt | * [ Reading a BLOB from the Database to a File on Disk ](connector-net-programming-blob-reading.html) | |
NET_Methods_Properties/NET_Properties_0_1.txt |
* [ Terms of Use ](/en-us/legal/termsofuse)
* [ Trademarks ](https://www.microsoft.com/legal/intellectualproperty/Trademarks/)
* © Microsoft 2024
## Additional resources
### In this article
[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
](https://aka.ms/yourcaliforniaprivacycho... | |
NET_Methods_Properties/connectornettutorial_1_0.txt | [ ](https://dev.mysql.com/ "MySQL") | |
NET_Methods_Properties/connectornettutorial_111_0.txt | * [ MySql.Data.MySqlClient.Authentication Namespace ](connector-net-ref-authentication.html) | |
NET_Methods_Properties/SolutionExecuteNonQu_2_0.txt | [ Sign in ](javascript:;) | |
NET_Methods_Properties/NET_Methods_3_1.txt | lat-ext-8.0) . For more information about
streaming, see [ SqlClient Streaming Support ](/en-
us/dotnet/framework/data/adonet/sqlclient-streaming-support) .
-or-
A [ SqlDbType ](system.data.sqlclient.sqlparameter.sqldbtype?view=dotnet-plat-
ext-8.0#system-data-sqlclient-sqlparameter-sqldbtype) other than **Char** ,
... | |
NET_Methods_Properties/NET_Methods_1_9.txt | [
IsCompleted ](system.iasyncresult.iscompleted?view=dotnet-plat-ext-8.0)
property of the [ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0)
returned by the [ BeginExecuteNonQuery
](system.data.sqlclient.sqlcommand.beginexecutenonquery?view=dotnet-plat-
ext-8.0) method; or wait for the completion of one or... | |
NET_Methods_Properties/3088_191_0.txt | Projects | |
NET_Methods_Properties/connectornettutorial_9_0.txt | Section Menu: | |
NET_Methods_Properties/NET_Methods_1_16.txt | returns any XML results greater than
2,033 characters in length in multiple rows of 2,033 characters each. To avoid
this behavior, use [ ExecuteXmlReader
](system.data.sqlclient.sqlcommand.executexmlreader?view=dotnet-plat-ext-8.0)
or [ BeginExecuteXmlReader
](system.data.sqlclient.sqlcommand.beginexecutexmlreader?vie... | |
NET_Methods_Properties/connectornettutorial_49_0.txt | * [ Configuring Partial Trust with Connector/NET Library Not Installed in GAC ](connector-net-medium-trust-nongac.html) | |
NET_Methods_Properties/3088_181_0.txt | --- | |
NET_Methods_Properties/3088_121_0.txt | ` Here 2 ` never appears in my console on my end, however the values from
creating the table are inserted. Console output: | |
NET_Methods_Properties/3088_31_0.txt | # Saved searches | |
NET_Methods_Properties/connectornettutorial_147_0.txt | using MySql.Data;
using MySql.Data.MySqlClient; | |
NET_Methods_Properties/SolutionExecuteNonQu_31_0.txt |  | |
NET_Methods_Properties/3088_81_0.txt | Contributor | |
NET_Methods_Properties/NET_Methods_0_10.txt | important
that you take a rigorous approach to handling cross-thread interactions from
within your applications. For example, you must not interact with a form's
contents from within your callback procedure; should you have to update the
form, you must switch back to the form's thread in order to do your work. The
exam... | |
NET_Methods_Properties/3088_71_0.txt | Npgsql version: 4.1.4
PostgreSQL version: 12.0
Operating system: Windows 10 (Client), Debian 10 (Host) | |
NET_Methods_Properties/3088_142_0.txt | Well isn't that frustrating. I'm not sure why the ` ToString() ` hadn't worked
before. Needless to say, I never got the type casting error that you're
talking about. If I did I never would've opened up this issue in the first
place. Apologies for wasting y'all's time. | |
NET_Methods_Properties/NET_Methods_1_1.txt | AsyncResult BeginExecuteReader ();
member this.BeginExecuteReader : unit -> IAsyncResult
Public Function BeginExecuteReader () As IAsyncResult
#### Returns
[ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0)
An [ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0) tha... | |
NET_Methods_Properties/connectornettutorial_43_0.txt | * [ Writing a File to the Database ](connector-net-programming-blob-writing.html) | |
NET_Methods_Properties/SolutionExecuteNonQu_51_0.txt | **[ Nitesh Kejriwal ](/Members/niteshkejriwal) ** | |
NET_Methods_Properties/3088_140_0.txt | ### | |
NET_Methods_Properties/connectornettutorial_12_0.txt | [ Documentation Home ](/doc/) | |
NET_Methods_Properties/3088_158_0.txt | Author | |
NET_Methods_Properties/connectornettutorial_55_0.txt | * [ Problems when Using Invalid Dates ](connector-net-programming-datetime-problems.html) | |
NET_Methods_Properties/NET_Methods_1_5.txt | lies to
## BeginExecuteReader(CommandBehavior)
Initiates the asynchronous execution of the Transact-SQL statement or stored
procedure that is described by this [ SqlCommand
](system.data.sqlclient.sqlcommand?view=dotnet-plat-ext-8.0) using one of the
[ CommandBehavior ](system.data.commandbehavior?view=dotnet-plat-e... | |
NET_Methods_Properties/connectornettutorial_132_0.txt | After it has been created, there are three main methods of interest that you
can call: | |
NET_Methods_Properties/3088_6_0.txt | * [ Actions Automate any workflow ](https://github.com/features/actions)
* [ Packages Host and manage packages ](https://github.com/features/packages)
* [ Security Find and fix vulnerabilities ](https://github.com/features/security)
* [ Codespaces Instant dev environments ](https://github.com/features/codespace... | |
NET_Methods_Properties/connectornettutorial_154_0.txt | using MySql.Data;
using MySql.Data.MySqlClient; | |
NET_Methods_Properties/NET_Methods_2_5.txt | .
#### Returns
[ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0)
An [ IAsyncResult ](system.iasyncresult?view=dotnet-plat-ext-8.0) that can be
used to poll, wait for results, or both; this value is also needed when the [
EndExecuteXmlReader(IAsyncResult)
](system.data.sqlclient.sqlcommand.endexecutexml... | |
NET_Methods_Properties/3088_66_0.txt | ExecuteNonQuery freezes with no output in DEBUG output. On TRACE output,
there's | |
NET_Methods_Properties/connectornettutorial_156_0.txt | string sql = "SELECT COUNT(*) FROM Country";
MySqlCommand cmd = new MySqlCommand(sql, conn);
object result = cmd.ExecuteScalar();
if (result != null)
{
int r = Convert.ToInt32(result);
Console.WriteLine("Number of countries in the world database is: " + r);
} | |
NET_Methods_Properties/3088_16_0.txt | * Open Source | |
NET_Methods_Properties/NET_Methods_1_15.txt | ing(ByVal sender As Object, _
ByVal e As System.Windows.Forms.FormClosingEventArgs) _
Handles Me.FormClosing
If isExecuting Then
MessageBox.Show(Me, "Cannot close the form until " & _
"the pending asynchronous command has completed. Please wait...")
... | |
NET_Methods_Properties/3088_60_0.txt | Copy link | |
NET_Methods_Properties/connectornettutorial_128_0.txt |
[ ]( "Show Sidebar") | |
NET_Methods_Properties/connectornettutorial_62_0.txt | * [ Enabling OpenTelemetry Tracing ](connector-net-programming-telemetry.html) | |
NET_Methods_Properties/connectornettutorial_59_0.txt | * [ Using the MySqlBulkLoader Class ](connector-net-programming-bulk-loader.html) | |
NET_Methods_Properties/3088_18_0.txt | * [ The ReadME Project GitHub community articles ](https://github.com/readme) | |
NET_Methods_Properties/NET_Methods_0_2.txt | nectionString)
{
// Given command text and connection string, asynchronously execute
// the specified command against the connection. For this example,
// the code displays an indicator as it is working, verifying the
// asynchronous behavior.
using (S... | |
NET_Methods_Properties/connectornettutorial_149_0.txt | string sql = "INSERT INTO Country (Name, HeadOfState, Continent) VALUES ('Disneyland','Mickey Mouse', 'North America')";
MySqlCommand cmd = new MySqlCommand(sql, conn);
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
} | |
NET_Methods_Properties/3088_185_0.txt | Sorry, something went wrong. | |
NET_Methods_Properties/connectornettutorial_72_0.txt | * [ Asynchronous Methods ](connector-net-async-methods.html) | |
NET_Methods_Properties/connectornettutorial_170_0.txt | * [ Services ](https://www.mysql.com/services/)
* [ Training ](https://www.mysql.com/training/)
* [ Certification ](https://www.mysql.com/certification/)
* [ Support ](https://www.mysql.com/support/) | |
NET_Methods_Properties/87488_1_0.txt | * [ TUTORIALS ](/doc/)
* [ REFERENCE ](/reference/)
* [ ARTICLES ](/articles/)
* [ FORUM ](/forum/) | |
NET_Methods_Properties/SolutionExecuteNonQu_54_0.txt | A passionate developer with over 10 years of experience and building my
software company code by code. Experience withMS Technologies like .Net | MVC
| Xamarin | Sharepoint | MS Project Server and PhP along with open source CMS
Systems like Wordpress/DotNetNuke etc. | |
NET_Methods_Properties/NET_Methods_4_0.txt | Skip to main content
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support.
[ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881
) [ More info about Internet Explorer and Microsoft Edge
](https://learn... | |
NET_Methods_Properties/3088_47_0.txt | **Have a question about this project?** Sign up for a free GitHub account to
open an issue and contact its maintainers and the community. | |
NET_Methods_Properties/3088_19_0.txt | Repositories | |
NET_Methods_Properties/connectornettutorial_96_0.txt | * [ Using PEM Certificates in Connector/NET ](connector-net-tutorials-ssl-pem.html) | |
NET_Methods_Properties/87488_12_0.txt | Here is my code: | |
NET_Methods_Properties/connectornettutorial_138_0.txt | using MySql.Data;
using MySql.Data.MySqlClient; | |
NET_Methods_Properties/connectornettutorial_152_0.txt | Finally, you can use the ` ExecuteScalar ` method to return a single value.
Again, this is straightforward, as a ` MySqlDataReader ` object is not
required to store results, a variable is used instead. The following code
illustrates how to use the ` ExecuteScalar ` method: | |
NET_Methods_Properties/connectornettutorial_19_0.txt | [ Connector/NET Installation ](connector-net-installation.html) | |
NET_Methods_Properties/3088_44_0.txt | Additional navigation options | |
NET_Methods_Properties/SolutionExecuteNonQu_3_0.txt | #### Sign in | |
NET_Methods_Properties/NET_Methods_2_1.txt | lat-ext-8.0) . For more information about
streaming, see [ SqlClient Streaming Support ](/en-
us/dotnet/framework/data/adonet/sqlclient-streaming-support) .
-or-
A [ SqlDbType ](system.data.sqlclient.sqlparameter.sqldbtype?view=dotnet-plat-
ext-8.0#system-data-sqlclient-sqlparameter-sqldbtype) other than **Char** ,
... | |
NET_Methods_Properties/connectornettutorial_0_0.txt | Skip to Main Content | |
NET_Methods_Properties/3088_74_0.txt | Apologies if my code is messy. | |
NET_Methods_Properties/connectornettutorial_125_0.txt | [ MySQL Connector/NET Release Notes ](/doc/relnotes/connector-net/en/) | |
NET_Methods_Properties/3088_91_0.txt | Author | |
NET_Methods_Properties/3088_196_0.txt | No branches or pull requests | |
NET_Methods_Properties/connectornettutorial_34_0.txt | [ Connector/NET Programming ](connector-net-programming.html) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.