id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
NET_Methods_Properties/connectornettutorial_102_0.txt
* [ ]()
NET_Methods_Properties/3088_29_0.txt
Include my email address so I can be contacted
NET_Methods_Properties/3088_150_0.txt
###
NET_Methods_Properties/SolutionExecuteNonQu_73_0.txt
--- [ Sign in ](https://www.codeproject.com/script/Membership/LogOn.aspx?rp=/Articles/512394/Solution- ExecuteNonQuery-Always-Returning-When-Cal) · [ View Thread ](/Articles/512394/Solution-ExecuteNonQuery-Always-Returning-When- Cal?fid=1822968&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4572179 "View Thread") | [ ![]...
NET_Methods_Properties/3088_163_0.txt
---
NET_Methods_Properties/3088_14_0.txt
Resources
NET_Methods_Properties/3088_52_0.txt
# ExecuteNonQuery freezes with no output in DEBUG output (Possibly due to syntax error?) #3088
NET_Methods_Properties/connectornettutorial_145_0.txt
The procedure for performing an ` ExecuteNonQuery ` method call is simpler, as there is no need to create an object to store results. This is because ` ExecuteNonQuery ` is only used for inserting, updating and deleting data. The following example illustrates a simple update to the ` Country ` table:
NET_Methods_Properties/NET_Methods_0_3.txt
While Not result.IsCompleted Console.WriteLine("Waiting ({0})", count) ' Wait for 1/10 second, so the counter ' does not consume all available resources ' on the main thread. Threading.Thread.Slee...
NET_Methods_Properties/3088_78_0.txt
[ ![@OoLunar](https://avatars.githubusercontent.com/u/46751150?s=40&v=4) ](/OoLunar) [ OoLunar ](/OoLunar) changed the title ~~ExecuteNonQuery freezes with no output in DEBUG output (Possible due to syntax error?)~~ ExecuteNonQuery freezes with no output in DEBUG output (Possibly due to syntax error?) Jul 28, 2020
NET_Methods_Properties/connectornettutorial_87_0.txt
* [ Tutorial: Connector/NET ASP.NET Profile Provider ](connector-net-tutorials-asp-provider-profile.html)
NET_Methods_Properties/3088_173_0.txt
All reactions
NET_Methods_Properties/NET_Methods_2_8.txt
here is nothing // higher up the stack to catch the exception if you do not // handle it here. You can either log the exception or // invoke a delegate (as in the non-error case in this // example) to display the error on the form. In no ca...
NET_Methods_Properties/3088_32_0.txt
## Use saved searches to filter your results more quickly
NET_Methods_Properties/SolutionExecuteNonQu_26_0.txt
![](https://codeproject.freetls.fastly.net/script/Ratings/Images/star-fill- lg.png)
NET_Methods_Properties/3088_75_0.txt
---
NET_Methods_Properties/NET_Properties_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/connectornettutorial_3_0.txt
[ **Contact MySQL** ](https://www.mysql.com/about/contact/) | [ Login ](https://dev.mysql.com/auth/login/?dest=https%3A%2F%2Fdev.mysql.com%2Fdoc%2Fconnector- net%2Fen%2Fconnector-net-tutorials-sql-command.html) | [ Register ](https://dev.mysql.com/auth/register/)
NET_Methods_Properties/3088_195_0.txt
Development
NET_Methods_Properties/NET_Methods_3_4.txt
O, XMLDATA", SqlConn); This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the ` EndExecuteXmlReader ` method attaches the [ XmlReader ](system.xml.xmlreader?view=dotnet-plat- ext-8.0) to the value on the first row, and discards the rest...
NET_Methods_Properties/NET_Methods_1_22.txt
asynchronously executing a Transact-SQL statement or stored procedure that returns rows, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the [ EndExecuteReader ](system.data.sqlclient.sqlcommand.endexecutereader?view=dotnet-plat-ext-8.0)...
NET_Methods_Properties/connectornettutorial_73_0.txt
* [ Binary and Nonbinary Issues ](connector-net-programming-binary-issues.html)
NET_Methods_Properties/connectornettutorial_26_0.txt
* [ ]()
NET_Methods_Properties/connectornettutorial_98_0.txt
* [ Tutorial: Using MySqlScript ](connector-net-tutorials-mysqlscript.html)
NET_Methods_Properties/SolutionExecuteNonQu_21_0.txt
[ VB ](/Tags/VB)
NET_Methods_Properties/NET_Methods_2_2.txt
onnectionString) { // 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 ...
NET_Methods_Properties/3088_170_0.txt
**[ YohDeadfall ](/YohDeadfall) ** commented Jul 28, 2020
NET_Methods_Properties/connectornettutorial_95_0.txt
[ Tutorial: Configuring SSL with Connector/NET ](connector-net-tutorials- ssl.html)
NET_Methods_Properties/3088_43_0.txt
* [ Code ](/npgsql/npgsql) * [ Issues 205 ](/npgsql/npgsql/issues) * [ Pull requests 39 ](/npgsql/npgsql/pulls) * [ Actions ](/npgsql/npgsql/actions) * [ Security ](/npgsql/npgsql/security) * [ Insights ](/npgsql/npgsql/pulse)
NET_Methods_Properties/87488_19_0.txt
Thanks for the help. I hope you'll help me. Thanks Guys.
NET_Methods_Properties/SolutionExecuteNonQu_48_0.txt
This article, along with any associated source code and files, is licensed under [ The Code Project Open License (CPOL) ](http://www.codeproject.com/info/cpol10.aspx)
NET_Methods_Properties/SolutionExecuteNonQu_24_0.txt
[ Nitesh Kejriwal ](/script/Membership/View.aspx?mid=6704682)
NET_Methods_Properties/connectornettutorial_104_0.txt
* [ Creating a Database with Code First in EF Core ](connector-net-entityframework-core-example.html)
NET_Methods_Properties/3088_12_0.txt
By Solution
NET_Methods_Properties/3088_57_0.txt
[ OoLunar ](/OoLunar) opened this issue Jul 28, 2020 · 10 comments
NET_Methods_Properties/SolutionExecuteNonQu_91_0.txt
[ Permalink ](/Articles/512394/Solution-ExecuteNonQuery-Always-Returning-When- Cal) [ Advertise ](http://developermedia.com/) [ Privacy ](/info/privacy.aspx) [ Cookies ](/info/cookie.aspx) [ Terms of Use ](/info/TermsOfUse.aspx)
NET_Methods_Properties/3088_58_0.txt
## Comments
NET_Methods_Properties/3088_22_0.txt
Search or jump to...
NET_Methods_Properties/SolutionExecuteNonQu_7_0.txt
* * *
NET_Methods_Properties/connectornettutorial_115_0.txt
* [ MySql.Data.EntityFramework Namespace ](connector-net-ref-entityframework.html)
NET_Methods_Properties/connectornettutorial_100_0.txt
[ Connector/NET for Entity Framework ](connector-net-entity-framework.html)
NET_Methods_Properties/3088_137_0.txt
[ ![@OoLunar](https://avatars.githubusercontent.com/u/46751150?s=80&v=4) ](/OoLunar)
NET_Methods_Properties/SolutionExecuteNonQu_63_0.txt
Spacing Relaxed Compact Tight Layout Normal Open Topics Open All Thread View Per page 10 25 50
NET_Methods_Properties/connectornettutorial_161_0.txt
[ Related Documentation ]()
NET_Methods_Properties/connectornettutorial_146_0.txt
using System; using System.Data;
NET_Methods_Properties/NET_Methods_0_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/SolutionExecuteNonQu_43_0.txt
The query looks fine and after doing a bit of research, I found that the 1 st line in the Stored procedure is the culprit. From MSDN, placing ` SET NOCOUNT ON; ` in the query sets, prevent extra result sets from SQL server interfering with ` SELECT ` statements.
NET_Methods_Properties/SolutionExecuteNonQu_15_0.txt
[ Articles ](/script/Content/SiteMap.aspx) / [ Programming Languages ](/script/Content/Tag.aspx?tags=Languages) / [ Visual Basic ](/script/Content/Tag.aspx?tags=VB)
NET_Methods_Properties/3088_179_0.txt
**[ OoLunar ](/OoLunar) ** commented Jul 28, 2020
NET_Methods_Properties/3088_203_0.txt
You can’t perform that action at this time.
NET_Methods_Properties/3088_161_0.txt
edited
NET_Methods_Properties/NET_Properties_0_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/SolutionExecuteNonQu_62_0.txt
--- |
NET_Methods_Properties/SolutionExecuteNonQu_89_0.txt
[ ![](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=160x600&c=32624) ](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=160x600&c=32624)
NET_Methods_Properties/3088_4_0.txt
[ Sign in ](/login?return_to=https%3A%2F%2Fgithub.com%2Fnpgsql%2Fnpgsql%2Fissues%2F3088)
NET_Methods_Properties/3088_3_0.txt
[ ](https://github.com/)
NET_Methods_Properties/3088_80_0.txt
Copy link
NET_Methods_Properties/connectornettutorial_42_0.txt
* [ Preparing the MySQL Server ](connector-net-programming-blob-serverprep.html)
NET_Methods_Properties/3088_115_0.txt
Author
NET_Methods_Properties/3088_84_0.txt
Probably you have a lot of records in the table, and there is no index or primary key on ` guild_id ` . In case of invalid query the server will send an error to the client and Npgsql will raise it as an exception.
NET_Methods_Properties/87488_13_0.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
NET_Methods_Properties/NET_Methods_3_2.txt
onnectionString) { // 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 ...
NET_Methods_Properties/connectornettutorial_117_0.txt
* [ MySql.EntityFrameworkCore Namespace ](connector-net-ref-efcore.html)
NET_Methods_Properties/connectornettutorial_168_0.txt
[ ](http://www.facebook.com/mysql "Join us on Facebook") [ ](https://twitter.com/mysql "Follow us on Twitter") [ ](https://www.linkedin.com/company/mysql "Follow us on LinkedIn") [ ](http://www.youtube.com/mysqlchannel "Visit our YouTube channel")
NET_Methods_Properties/3088_127_0.txt
Copy link
NET_Methods_Properties/NET_Properties_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_64_0.txt
[ Using the Connector/NET Trace Source Object ](connector-net-programming- trace-source.html)
NET_Methods_Properties/NET_Methods_1_18.txt
aGridView ](system.windows.forms.datagridview?view=dotnet-plat-ext-8.0) control, and a [ Label ](system.windows.forms.label?view=dotnet-plat-ext-8.0) control on the form (accepting the default name for each control). Add the following code to the form's class, modifying the connection string as needed for your environm...
NET_Methods_Properties/3088_168_0.txt
Contributor
NET_Methods_Properties/3088_122_0.txt
DEBUG Preparing: SELECT guild_id FROM testing WHERE guild_id=@guildID; TRACE Start user action TRACE End user action 466356954865074176 Here 1 TRACE Start user action TRACE End user action
NET_Methods_Properties/connectornettutorial_172_0.txt
* [ Documentation ](https://dev.mysql.com/doc/) * [ MySQL Reference Manual ](https://dev.mysql.com/doc/refman/en/) * [ MySQL Workbench ](https://dev.mysql.com/doc/workbench/en/) * [ MySQL NDB Cluster ](https://dev.mysql.com/doc/index-cluster.html) * [ MySQL Connectors ](https://dev.mysql.com/doc/index-connectors.html) ...
NET_Methods_Properties/3088_67_0.txt
TRACE Start user action TRACE End user action
NET_Methods_Properties/SolutionExecuteNonQu_16_0.txt
[ ![](/App_Themes/CodeProject/Img/print48.png) ](/Articles/512394/Solution- ExecuteNonQuery-Always-Returning-When-Cal?display=Print)
NET_Methods_Properties/3088_28_0.txt
We read every piece of feedback, and take your input very seriously.
NET_Methods_Properties/connectornettutorial_74_0.txt
* [ Character Set Considerations for Connector/NET ](connector-net-using-character-sets.html)
NET_Methods_Properties/3088_83_0.txt
**[ YohDeadfall ](/YohDeadfall) ** commented Jul 28, 2020
NET_Methods_Properties/3088_7_0.txt
Explore
NET_Methods_Properties/SolutionExecuteNonQu_88_0.txt
[ ![](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=300x250&c=876253) ](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=300x250&c=876253)
NET_Methods_Properties/SolutionExecuteNonQu_42_0.txt
CREATE PROC sp_Test_Insert @Email nvarchar(255), @Password nvarchar(20) AS BEGIN SET NOCOUNT ON; INSERT INTO Test_Table(Email, Password) VALUES(@Email, @Password) END
NET_Methods_Properties/connectornettutorial_121_0.txt
* [ Connector/NET Community Support ](connector-net-support-community.html)
NET_Methods_Properties/connectornettutorial_137_0.txt
using System; using System.Data;
NET_Methods_Properties/NET_Methods_2_4.txt
O, XMLDATA", SqlConn); This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the ` EndExecuteXmlReader ` method attaches the [ XmlReader ](system.xml.xmlreader?view=dotnet-plat- ext-8.0) to the value on the first row, and discards the rest...
NET_Methods_Properties/3088_53_0.txt
Closed
NET_Methods_Properties/connectornettutorial_163_0.txt
[ Download this Manual ]()
NET_Methods_Properties/NET_Properties_2_1.txt
view feedback for [ This product ](https://aka.ms/feedback/report?space=61) This page [ View all page feedback ](https://github.com/dotnet/dotnet-api-docs/issues) [ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://aka.ms/yourcaliforniaprivacychoices) Theme * Light * Dark ...
NET_Methods_Properties/connectornettutorial_54_0.txt
* [ Fractional Seconds ](connector-net-programming-datetime-fractional.html)
NET_Methods_Properties/3088_62_0.txt
**[ OoLunar ](/OoLunar) ** commented Jul 28, 2020
NET_Methods_Properties/connectornettutorial_33_0.txt
* [ ]()
NET_Methods_Properties/connectornettutorial_141_0.txt
while (rdr.Read()) { Console.WriteLine(rdr[0]+" -- "+rdr[1]); } rdr.Close(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); }
NET_Methods_Properties/SolutionExecuteNonQu_56_0.txt
[ ![Twitter](/images/twitter-x-48.png) ](https://www.twitter.com/niteshluharuka) [ ![LinkedIn](/images/linkedin-32.png) ](https://www.linkedin.com/profile/view?id=61787199)
NET_Methods_Properties/SolutionExecuteNonQu_8_0.txt
Sign in with [ ![](/script/Membership/Images/octicons_github-lg.png) ](/script/Membership/OAuthLogOn.aspx?auth=GitHub "Sign in using Github") [ ![](/script/Membership/Images/facebook-lg.png) ](/script/Membership/OAuthLogOn.aspx?auth=Facebook "Sign in using Facebook") [ ![](/script/Membership/Images/google-plus-lg.png) ...
NET_Methods_Properties/3088_59_0.txt
[ ![@OoLunar](https://avatars.githubusercontent.com/u/46751150?s=80&v=4) ](/OoLunar)
NET_Methods_Properties/connectornettutorial_31_0.txt
* [ Connector/NET Authentication ](connector-net-authentication.html)
NET_Methods_Properties/3088_68_0.txt
However nothing further is shown. I'm assuming it's a syntax error, as NPGSQL hangs on those as well. I can't check the sql itself in NGPSQL only shows the params and the command. A "current SQL" property would be nice to have.
NET_Methods_Properties/3088_92_0.txt
###
NET_Methods_Properties/3088_154_0.txt
All reactions
NET_Methods_Properties/connectornettutorial_57_0.txt
* [ Handling Invalid Dates ](connector-net-programming-datetime-invalid.html)
NET_Methods_Properties/connectornettutorial_30_0.txt
* [ Handling Connection Errors ](connector-net-connections-errors.html)
NET_Methods_Properties/SolutionExecuteNonQu_10_0.txt
[ ![](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=728x90&c=720157) ](https://pubads.g.doubleclick.net/gampad/jump?iu=/6839/lqm.codeproject.site/Programming- LanguagesVisual-Basic&sz=728x90&c=720157)
NET_Methods_Properties/connectornettutorial_56_0.txt
* [ Restricting Invalid Dates ](connector-net-programming-datetime-restricting.html)