I get this error when I run the code. The records are inserted into the table, but the program stops at the error. The parameterized query '(@EmpN ...
I get this error when I run the code. The records are inserted into the table, but the program stops at the error. The parameterized query '(@EmpN ...
When I click on insert button, calling ExecuteNonquery throws the error shown. Why does this error happen, and how to solve it? This the code of inse ...
I want to update existing database data. But when I try it, I get an error on the ExecuteNonQuery call. Kindly check this error and let me know how t ...
I am trying to get some data in my MS SQL Database, but unfortunately, the ExecuteNonQuery function causes an "Error" or more accurately an Exception ...
I have 500 stored procedures and want to compile all and if error comes it should write in file using c#. if anybody has similar example code help ...
I'm trying to insert into a table in a C# program. I have this insert command: And then I've got many lines adding in the parameters like so: Wh ...
I wrote a SQL script that provides result from the same table through the ID. I need to use this script in PowerShell to extract a result for a purpos ...
I have some code like this: and my command is: Finally these are the methods: The problem is that all this throws an exception ExecuteNon ...
I'm trying to insert data to data base, first i used tray catch and debugging. there was no error but data didn't insert. then i remove try catch and ...
I found this SQLHelper online that I would like to run a SQL query with. But the helper wants an list instead of an string. and I cannot seem to figur ...
I have a function in which i pass through some SQL and attempt to execute it against a database. The function completes fine and a SQL trace shows me ...
I'm using Serenity C# to develop a website. When I click on a button it should run a SQL command, which starts a stored procedure. My code public L ...
I'm using the following function to calculate sum qty value of given item code(VB.NET, SQL Server, SQL). I do not get any errors but the returned valu ...
Using VB.NET and SQL Server: I have a table [Item_List]. When I add a new item from a Windows form, I want to insert the record into the Item_List tab ...
i have an sql insert query in my website,which inserts a few strings and ints, and a datetime in "dd/MM/yyyy HH:mm:ss", and until today it worked grea ...
I'm building a WinForms project in C# using a PostgreSQL database and the Npgsql framework. For inserting a record, I need to return the ID of the ne ...
I have a SQL function defined as such: I tested in SQL Developer and it works fine: I have the following C# code: Command.CommandText = funcNam ...
Hello I am trying to create a #temp table using SqlCommand.ExecuteNonQuery. When I execute the non query no error occurs, but also no table is created ...
The following code executes a BULK INSERT which succeeds, but it does not return the number of rows affected. When I do a 'SELECT count(*) ...' to con ...
Expected behavior: Have a PS script that browses a file directory and grabs all the directory details (working) Write those details back to a SQ ...