id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
NET_Methods_Properties/connectornettutorial_60_0.txt | * [ ]() | |
NET_Methods_Properties/NET_Methods_0_4.txt | rty.
### See also
* [ Connecting and Retrieving Data in ADO.NET ](/en-us/dotnet/framework/data/adonet/retrieving-and-modifying-data)
* [ Using the .NET Framework Data Provider for SQL Server ](/en-us/dotnet/framework/data/adonet/sql/)
* [ ADO.NET Overview ](/en-us/dotnet/framework/data/adonet/ado-net-overview)... | |
NET_Methods_Properties/SolutionExecuteNonQu_5_0.txt | Password | |
NET_Methods_Properties/SolutionExecuteNonQu_46_0.txt | This article was originally posted at [
http://www.niteshluharuka.com/2012/12/solution-executenonquery-always-
returning-1-when-calling-a-stored-procedure
](http://www.niteshluharuka.com/2012/12/solution-executenonquery-always-
returning-1-when-calling-a-stored-procedure) | |
NET_Methods_Properties/3088_187_0.txt | Assignees | |
NET_Methods_Properties/NET_Methods_3_6.txt | ing a long-running command). This example passes the
executing [ SqlCommand ](system.data.sqlclient.sqlcommand?view=dotnet-plat-
ext-8.0) object as the ` stateObject ` parameter--doing so makes it simple to
retrieve the [ SqlCommand ](system.data.sqlclient.sqlcommand?view=dotnet-plat-
ext-8.0) object from within the ca... | |
NET_Methods_Properties/connectornettutorial_114_0.txt | * [ MySql.Data.Types Namespace ](connector-net-ref-types.html) | |
NET_Methods_Properties/connectornettutorial_127_0.txt | [ PDF (US Ltr) ](https://downloads.mysql.com/docs/connector-net-en.pdf) \-
1.3Mb
[ PDF (A4) ](https://downloads.mysql.com/docs/connector-net-en.a4.pdf) \-
1.3Mb | |
NET_Methods_Properties/connectornettutorial_77_0.txt | * [ ]() | |
NET_Methods_Properties/SolutionExecuteNonQu_39_0.txt | Public Function TestInsert() As Boolean
Dim conn As SqlConnection = Nothing
Dim cmd As SqlCommand = Nothing
Try
conn = New SqlConnection(connectionString)
conn.Open()
If passport Is Nothing Then
cmd = New SqlCommand("sp_Test_Insert", conn)
End If
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlP... | |
NET_Methods_Properties/connectornettutorial_90_0.txt | * [ Tutorial: Using an Entity Framework Entity as a Windows Forms Data Source ](connector-net-tutorials-entity-framework-winform-data-source.html) | |
NET_Methods_Properties/NET_Methods_0_8.txt | dventureWorks; Asynchronous Processing=true"
End Function
Private Sub DisplayStatus(ByVal Text As String)
Me.Label1.Text = Text
End Sub
Private Sub DisplayResults(ByVal Text As String)
Me.Label1.Text = Text
DisplayStatus("Ready")
End ... | |
NET_Methods_Properties/NET_Methods_1_10.txt | am
](system.io.stream?view=dotnet-plat-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-sqlparamete... | |
NET_Methods_Properties/3088_180_0.txt | After running it through the VSC debugger, the exception shows clear as day.
While I'm not using try catch statements, maybe some other part of my program
is. Since my repo uses Discord.NET, I'm assuming it's catching all the errors.
Either way, this isn't an issue related to NpgSQL anymore, but rather me not
debugging... | |
NET_Methods_Properties/NET_Methods_4_2.txt | onet/retrieving-and-modifying-data)
* [ SQL Server and ADO.NET ](/en-us/dotnet/framework/data/adonet/sql/)
* [ ADO.NET Overview ](/en-us/dotnet/framework/data/adonet/ado-net-overview)
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create
and review issues and ... | |
NET_Methods_Properties/SolutionExecuteNonQu_19_0.txt | [ Stats ](/script/Articles/Statistics.aspx?aid=512394) | |
NET_Methods_Properties/NET_Methods_1_19.txt | supply
// from the form's thread.
FillGridDelegate del = new FillGridDelegate(FillGrid);
this.Invoke(del, reader);
// Do not close the reader here, because it is being used in
// a separate thread. Instead, have the pro... | |
NET_Methods_Properties/connectornettutorial_27_0.txt | [ Connector/NET Connections ](connector-net-connections.html) | |
NET_Methods_Properties/connectornettutorial_109_0.txt | * [ MySql.Data.Common.DnsClient ](connector-net-ref-common-dnsclient.html) | |
NET_Methods_Properties/3088_139_0.txt | Author | |
NET_Methods_Properties/connectornettutorial_8_0.txt | * [ MySQL Server ](/doc/refman/en/)
* [ MySQL Enterprise ](/doc/index-enterprise.html)
* [ Workbench ](/doc/workbench/en/)
* [ InnoDB Cluster ](/doc/mysql-shell/en/mysql-innodb-cluster.html)
* [ MySQL NDB Cluster ](/doc/index-cluster.html)
* [ Connectors ](/doc/index-connectors.html)
* [ More ](/doc/index-other.html)
*... | |
NET_Methods_Properties/3088_189_0.txt | Labels | |
NET_Methods_Properties/3088_171_0.txt | BTW, to ensure that it's a problem in Npgsql you can stop the debugger when
the app hangs and show us the stack trace. If it points to Npgsql we
definitely should fix it. | |
NET_Methods_Properties/connectornettutorial_97_0.txt | * [ Using PFX Certificates in Connector/NET ](connector-net-tutorials-ssl-pfx.html) | |
NET_Methods_Properties/3088_149_0.txt | Contributor | |
NET_Methods_Properties/87488_2_0.txt | ### **[ C++ ](/) ** | |
NET_Methods_Properties/connectornettutorial_47_0.txt | * [ Evolution of Partial Trust Support Across Connector/NET Versions ](connector-net-medium-trust-evolution.html) | |
NET_Methods_Properties/87488_8_0.txt | Syntax error in INSERT INTO statement (0x80040E14) | |
NET_Methods_Properties/3088_90_0.txt | Copy link | |
NET_Methods_Properties/connectornettutorial_39_0.txt | * [ Creating and Calling Stored Procedures ](connector-net-programming-stored-proc.html) | |
NET_Methods_Properties/connectornettutorial_11_0.txt | [ ](connector-net-tutorials-connection.html "Previous: The MySqlConnection
Object") [ ](index.html "Start") [ ](connector-net-tutorials-intro.html "Up:
Tutorial: An Introduction to Connector/NET Programming") [ ](connector-net-
tutorials-data-adapter.html "Next: Working with Decoupled Data") | |
NET_Methods_Properties/NET_Methods_2_10.txt | Class
### Remarks
The [ BeginExecuteXmlReader
](system.data.sqlclient.sqlcommand.beginexecutexmlreader?view=dotnet-plat-
ext-8.0) method starts the process of asynchronously executing a Transact-SQL
statement or stored procedure that returns rows as XML, so that other tasks
can run concurrently while the statem... | |
NET_Methods_Properties/connectornettutorial_126_0.txt | [ Download this Manual ]() | |
NET_Methods_Properties/SolutionExecuteNonQu_20_0.txt | [ Revisions (2) ](/script/Articles/ListVersions.aspx?aid=512394) | |
NET_Methods_Properties/SolutionExecuteNonQu_29_0.txt |  | |
NET_Methods_Properties/SolutionExecuteNonQu_11_0.txt | * [ home ](https://www.codeproject.com)
* [ articles ](/script/Articles/Latest.aspx)
* [ Browse Topics > ](/script/Content/SiteMap.aspx)
* * [ Latest Articles ](/script/Articles/Latest.aspx)
* [ Top Articles ](/script/Articles/TopArticles.aspx?ta_so=5)
* [ Posting/Update Guidelines ](/info/Submit.aspx)
* [ Article... | |
NET_Methods_Properties/SolutionExecuteNonQu_90_0.txt | [ Go to top ](/Articles/512394/Solution-ExecuteNonQuery-Always-Returning-When-
Cal#_articleTop) | |
NET_Methods_Properties/connectornettutorial_45_0.txt | * [ ]() | |
NET_Methods_Properties/3088_9_0.txt | * Solutions | |
NET_Methods_Properties/87488_17_0.txt | System.Data.OleDb.OleDbException (0x80040E14): Syntax error in INSERT INTO
statement.
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult
hr)
at
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS
dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.Exec... | |
NET_Methods_Properties/SolutionExecuteNonQu_59_0.txt | * [ ](http://twitter.com/home?status=Solution%3a+ExecuteNonQuery\(\)+Always+Returning+-1+When+Calling+a+Stored+Procedure+-+CodeProject+-+https%3a%2f%2fwww.codeproject.com%2fArticles%2f512394%2fSolution-ExecuteNonQuery-Always-Returning-When-Cal)
* [ ](http://www.linkedin.com/shareArticle?mini=true&url=https%3a%2f%2fwww.... | |
NET_Methods_Properties/3088_35_0.txt | To see all available qualifiers, see our [ documentation
](https://docs.github.com/search-github/github-code-search/understanding-
github-code-search-syntax) . | |
NET_Methods_Properties/3088_40_0.txt | {{ message }} | |
NET_Methods_Properties/3088_119_0.txt | var cmd = new NpgsqlCommand(@"
DROP TABLE IF EXISTS testing;
CREATE TABLE testing (guild_id TEXT, mute_role TEXT);
INSERT INTO testing VALUES('466356954865074176', '736816844547031091,336733686529654798');", PreparedStatements.connection);
cmd.ExecuteNonQuery(); | |
NET_Methods_Properties/connectornettutorial_129_0.txt | [ MySQL Connector/NET Developer Guide ](/doc/connector-net/en/) / [ ... ]() /
[ Connector/NET Tutorials ](connector-net-tutorials.html) / [ Tutorial: An
Introduction to Connector/NET Programming ](connector-net-tutorials-
intro.html) / The MySqlCommand Object | |
NET_Methods_Properties/87488_16_0.txt | Here is the error: | |
NET_Methods_Properties/SolutionExecuteNonQu_84_0.txt | Nitesh K Luharuka
Consultant
http://www.niteshluharuka.com | |
NET_Methods_Properties/connectornettutorial_133_0.txt | * ` ExecuteReader ` to query the database. Results are usually returned in a ` MySqlDataReader ` object, created by ` ExecuteReader ` . | |
NET_Methods_Properties/3088_135_0.txt | All reactions | |
NET_Methods_Properties/connectornettutorial_157_0.txt | }
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
} | |
NET_Methods_Properties/connectornettutorial_53_0.txt | [ Handling Date and Time Information in Connector/NET ](connector-net-
programming-datetime.html) | |
NET_Methods_Properties/3088_54_0.txt | [ OoLunar ](/OoLunar) opened this issue Jul 28, 2020 · 10 comments | |
NET_Methods_Properties/NET_Methods_2_9.txt | " & _
"has completed.")
Else
Dim command As SqlCommand
Try
ClearProductInfo()
DisplayStatus("Connecting...")
connection = New SqlConnection(GetConnectionString())
' To emulate ... | |
NET_Methods_Properties/connectornettutorial_153_0.txt | using System;
using System.Data; | |
NET_Methods_Properties/3088_11_0.txt | * [ Enterprise ](https://github.com/enterprise)
* [ Teams ](https://github.com/team)
* [ Startups ](https://github.com/enterprise/startups)
* [ Education ](https://education.github.com) | |
NET_Methods_Properties/connectornettutorial_51_0.txt | * [ Using the Connector/NET Interceptor Classes ](connector-net-interceptors.html) | |
NET_Methods_Properties/3088_132_0.txt | Adding a ToString on the parameter value makes the sample work: | |
NET_Methods_Properties/NET_Methods_3_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_77_0.txt | All reactions | |
NET_Methods_Properties/SolutionExecuteNonQu_45_0.txt | Hope you enjoyed reading this. Cheers! | |
NET_Methods_Properties/3088_147_0.txt | [

](/YohDeadfall) | |
NET_Methods_Properties/connectornettutorial_78_0.txt | [ Tutorial: An Introduction to Connector/NET Programming ](connector-net-
tutorials-intro.html) | |
NET_Methods_Properties/connectornettutorial_61_0.txt | [ Connector/NET Tracing ](connector-net-programming-tracing.html) | |
NET_Methods_Properties/connectornettutorial_68_0.txt | [ Using Connector/NET with Crystal Reports ](connector-net-programming-
crystal.html) | |
NET_Methods_Properties/connectornettutorial_164_0.txt | [ PDF (US Ltr) ](https://downloads.mysql.com/docs/connector-net-en.pdf) \-
1.3Mb
[ PDF (A4) ](https://downloads.mysql.com/docs/connector-net-en.a4.pdf) \-
1.3Mb | |
NET_Methods_Properties/3088_13_0.txt | * [ CI/CD & Automation ](https://github.com/solutions/ci-cd)
* [ DevOps ](https://github.com/solutions/devops)
* [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops) | |
NET_Methods_Properties/connectornettutorial_16_0.txt | * [ Introduction to MySQL Connector/NET ](connector-net-introduction.html) | |
NET_Methods_Properties/connectornettutorial_136_0.txt | After the ` MySqlCommand ` object is created, you can call one of the previous
methods on it to carry out a database operation, such as perform a query. The
results are usually returned into a ` MySqlDataReader ` object, and then
processed. For example, the results might be displayed as the following code
example demon... | |
NET_Methods_Properties/connectornettutorial_135_0.txt | * ` ExecuteScalar ` to return a single value. | |
NET_Methods_Properties/3088_89_0.txt | [ 
](/OoLunar) | |
NET_Methods_Properties/3088_146_0.txt | [ 
](/OoLunar) [ OoLunar ](/OoLunar) closed this as [ completed
](/npgsql/npgsql/issues?q=is%3Aissue+is%3Aclosed+archived%3Afalse+reason%3Acompleted)
Jul 28, 2020 | |
NET_Methods_Properties/connectornettutorial_175_0.txt | [ Privacy ](https://www.oracle.com/legal/privacy/) / [ Do Not Sell My Info
](https://www.oracle.com/legal/privacy/privacy-choices.html) | [ Terms of Use
](https://www.oracle.com/us/legal/terms/index.html) | [ Trademark Policy
](https://www.oracle.com/us/legal/third-party-trademarks/index.html) | | |
NET_Methods_Properties/3088_186_0.txt | [ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2Fnpgsql%2Fnpgsql%2Fissues%2F3088) | |
NET_Methods_Properties/3088_148_0.txt | Copy link | |
NET_Methods_Properties/connectornettutorial_71_0.txt | * [ Displaying the Report ](connector-net-programming-crystal-displaying.html) | |
NET_Methods_Properties/connectornettutorial_65_0.txt | * [ Viewing MySQL Trace Information ](connector-net-programming-tracing-mysql.html) | |
NET_Methods_Properties/NET_Methods_3_11.txt | xceptions in the callback procedure.
If you use [ ExecuteReader
](system.data.sqlclient.sqlcommand.executereader?view=dotnet-plat-ext-8.0) or
[ BeginExecuteReader
](system.data.sqlclient.sqlcommand.beginexecutereader?view=dotnet-plat-
ext-8.0) to access XML data, SQL Server will return any XML results greater
than 2,0... | |
NET_Methods_Properties/3088_134_0.txt |
--- | |
NET_Methods_Properties/connectornettutorial_174_0.txt | [ ](http://www.oracle.com/ "Oracle") [ © 2024 Oracle
](https://www.oracle.com/legal/copyright.html) | |
NET_Methods_Properties/NET_Methods_1_7.txt | }
catch (SqlException ex)
{
Console.WriteLine("Error ({0}): {1}", ex.Number, ex.Message);
}
catch (InvalidOperationException ex)
{
Console.WriteLine("Error: {0}", ex.Message);
}
catch (Exception ex)
... | |
NET_Methods_Properties/NET_Methods_1_6.txt | m?view=dotnet-plat-ext-8.0) ,
[ XmlReader ](system.xml.xmlreader?view=dotnet-plat-ext-8.0) or [ TextReader
](system.io.textreader?view=dotnet-plat-ext-8.0) object during a streaming
operation. For more information about streaming, see [ SqlClient Streaming
Support ](/en-us/dotnet/framework/data/adonet/sqlclient-streami... | |
NET_Methods_Properties/NET_Methods_0_5.txt | -
plat-ext-8.0)
The name/value pair "Asynchronous Processing=true" was not included within the
connection string defining the connection for this [ SqlCommand
](system.data.sqlclient.sqlcommand?view=dotnet-plat-ext-8.0) .
-or-
The [ SqlConnection ](system.data.sqlclient.sqlconnection?view=dotnet-plat-
ext-8.0) clos... | |
NET_Methods_Properties/SolutionExecuteNonQu_52_0.txt | Founder Rebin Infotech | |
NET_Methods_Properties/connectornettutorial_58_0.txt | * [ Handling NULL Dates ](connector-net-programming-datetime-null.html) | |
NET_Methods_Properties/87488_21_0.txt | [ Home page ](/) | [ Privacy policy ](/privacy.do)
© cplusplus.com, 2000-2024 - All rights reserved - _v3.3.3_
[ Spotted an error? contact us
](/contact.do?referrer=cplusplus.com%2Fforum%2Fwindows%2F87488%2F) | |
NET_Methods_Properties/3088_50_0.txt | Already on GitHub? [ Sign in
](/login?return_to=%2Fnpgsql%2Fnpgsql%2Fissues%2Fnew%2Fchoose) to your account | |
NET_Methods_Properties/3088_120_0.txt | var Command = new NpgsqlCommand("SELECT guild_id FROM testing WHERE guild_id=@guildID;", PreparedStatements.connection);
var param = Command.Parameters.Add("guildID", NpgsqlTypes.NpgsqlDbType.Text);
Command.Prepare();
param.Value = 466356954865074176;
foreach (NpgsqlStatement stmt in Command.Statements) System.Console.... | |
NET_Methods_Properties/87488_11_0.txt | I'm always getting this error since i added a couple of column in the
tblapplicants table. NOTE: I'm using ms access and the data type i'm using is
short text (for testing only) | |
NET_Methods_Properties/NET_Properties_4_1.txt | tualproperty/Trademarks/)
* © Microsoft 2024
## Additional resources
### In this article
[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
](https://aka.ms/yourcaliforniaprivacychoices)
Theme
* Light
* Dark
* High contrast
* * [ Previous Versions ](/en-us/previous-versi... | |
NET_Methods_Properties/NET_Methods_1_21.txt | t.
Catch ex As Exception
' Because you are now running code in a separate thread,
' if you do not handle the exception here, none of your other
' code catches the exception. Because there is none of
' your code on the call stack in this ... | |
NET_Methods_Properties/connectornettutorial_35_0.txt | * [ Using GetSchema on a Connection ](connector-net-programming-getschema.html) | |
NET_Methods_Properties/3088_25_0.txt | Clear | |
NET_Methods_Properties/connectornettutorial_158_0.txt | conn.Close();
Console.WriteLine("Done.");
}
} | |
NET_Methods_Properties/connectornettutorial_150_0.txt | conn.Close();
Console.WriteLine("Done.");
}
} | |
NET_Methods_Properties/connectornettutorial_148_0.txt | public class Tutorial3
{
public static void Main()
{
string connStr = "server=localhost;user=root;database=world;port=3306;password=******";
MySqlConnection conn = new MySqlConnection(connStr);
try
{
Console.WriteLine("Connecting to MySQL...");
conn.Open(); | |
NET_Methods_Properties/SolutionExecuteNonQu_41_0.txt | SQL | |
NET_Methods_Properties/SolutionExecuteNonQu_69_0.txt | |  | [ Nitesh Kejriwal ](/script/Membership/View.aspx?mid=6704682) |
24-May-13 5:35
---|---|---|---|---
| | | | | |
NET_Methods_Properties/SolutionExecuteNonQu_64_0.txt | | | | First Prev Next
---|---|---
| |

| [ thanks ](/Messages/4572179/thanks)
 | |
NET_Methods_Properties/connectornettutorial_143_0.txt | When a connection has been created and opened, the code then creates a `
MySqlCommand ` object. Then the SQL query to be executed is passed to the `
MySqlCommand ` constructor. The ` ExecuteReader ` method is then used to
generate a ` MySqlReader ` object. The ` MySqlReader ` object contains the
results generated by th... | |
NET_Methods_Properties/NET_Methods_1_23.txt | tnet-plat-ext-8.0) or
[ BeginExecuteReader
](system.data.sqlclient.sqlcommand.beginexecutereader?view=dotnet-plat-
ext-8.0) to access XML data, SQL Server will return any XML results greater
than 2,033 characters in length in multiple rows of 2,033 characters each. To
avoid this behavior, use [ ExecuteXmlReader
](syste... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.