Showing posts with the label ado.net

[FIXED] Avoiding SQL Injection in SQL query with Like Operator using parameters?

Issue Taking over some code from my predecessor and I found a query that uses the Like operator: S…

[FIXED] Connection to SQL Server Works Sometimes

Issue An ADO.Net application is only sometimes able to connect to another server on the local netwo…

[FIXED] Can System.Data.DataRow used for SQL injection?

Issue I am aware that for SqlCommand I have to use SqlParameter when passing parameters to the quer…

[FIXED] ADO.NET query returning nothing even if the item available

Issue I am using ADO.NET for querying the SQL Server database. I am trying to get items if present …

[FIXED] How to import Excel file to Database ADO.net

Issue I tried to write code to import an Excel file to a database using C# and ADO.net I finally go…

[FIXED] I have stored procedure created in the database, in my C# code I want to convert the insert query into that stored procedure

Issue Please find the C# code where right now I'm inserting as a normal query, but I have creat…