Skip to main content
-1 votes
1 answer
108 views

What could be the reason for the report file I designed in FastReport and loaded in my Windows Forms application being empty? In that file, my query is a simple join with only one int column, and no ...
setare ab's user avatar
-1 votes
1 answer
72 views

I want to update a column in SQL Server by keeping its original value and appending new value separated by comma. It can be done like this: string sql = "UPDATE Table SET Column = Column + ', ...
Frank Martin's user avatar
  • 3,469
0 votes
1 answer
92 views

Can SqlParameter only be used with SqlCommand? I would like to use parameters within the DataTable.Compute() function, but I'm not sure exactly how to do that correctly. Here is my partial function: ...
Amy 's user avatar
  • 29
0 votes
0 answers
69 views

I'm facing a problem where I was prompted that I'm passing too many parameters even though I defined it to both stored proc (SQL Server) and VB.NET: ERROR: System.Runtime.InteropServices.COMException:...
huck's user avatar
  • 1
1 vote
1 answer
118 views

I'm trying to automate inserting values from a CSV into a table in a SQL database. Everything is getting transferred into the database just fine with exception of any names with apostrophes. I tried ...
Avarsiral's user avatar
-1 votes
1 answer
2k views

I need to build a raw SQL query and I am using the new EF Core 8. But when it executes the query, it seems that the parameters are not getting replaced. private static FormattableString ...
Wasyster's user avatar
  • 2,585
1 vote
2 answers
377 views

I have an old C# application that stopped working when updating the database using SqlCommand. I pull in a user object and update the values in a MSSQL database. The error I'm receiving is below ...
afandre's user avatar
  • 11
-1 votes
1 answer
444 views

I have a stored procedure call in C#. It uses ADO.NET to call the stored procedure that is on my SQL Server. Despite knowing that one of the parameters of the stored procedure on the server is VARCHAR(...
J. Mini's user avatar
  • 1,766
0 votes
1 answer
153 views

This article warns of the performance pitfalls of using parametrised queries rather than stored procedures. The basic idea is that the server has to guess the data type of your parameters and its ...
J. Mini's user avatar
  • 1,766
0 votes
1 answer
263 views

Several answers give you warnings about AddWithValue. These two links are commonly given. The impression that I get is that it's dangerous because AddWithValue has to guess the SQL type of your C# ...
J. Mini's user avatar
  • 1,766
0 votes
0 answers
56 views

How can I filter multiple combo boxes value in vb.net with SQL server query? All the comboboxes are user input. Example: I have cboName.text, cboAge.text, cboAddress.text SELECT name, age, address ...
Yerry Antonius's user avatar
0 votes
1 answer
766 views

I have the following script which works perfectly fine in SQL Server, but fails in Azure. declare @comm nvarchar(max) declare @table table(comm nvarchar(max)) set @comm=' select '' ALTER TABLE '' ...
Bogdan Balcan's user avatar
0 votes
0 answers
99 views

The web Api works 100% on windows 10 but as soon as I run it on a windows 11 machine it doesn't work. The error I get. System.Data.SqlClient.SqlException (0x80131904): The parameterized query '(@...
DarthNinja45's user avatar
0 votes
0 answers
76 views

I am trying to pass array of parameter to SQL query as a parameterized query. SELECT D.PATIENTID AS PATIENTID, D.FNAME AS FIRSTTNAME FROM DETAILS D INNER JOIN PATEINT P ON P.PATIENTID=...
user2240189's user avatar
0 votes
1 answer
295 views

I want to check first if the user exists or not so I made a stored procedure in my SQL Server to check that. CREATE PROCEDURE Login @username varchar(20), @password varchar(20), @status ...
Ahmed Haitham's user avatar

15 30 50 per page
1
2 3 4 5
22