I have a stored procedure which uses a table valued parameter (tvp). In my application, I use a datatable as a SqlParameter to match the tvp structure ...
I have a stored procedure which uses a table valued parameter (tvp). In my application, I use a datatable as a SqlParameter to match the tvp structure ...
In C#, for Table-valued parameter I add a SqlParameter with 'SqlDbType' as 'Structured' and 'Value' as a C# DataTable. I want to extract this data lat ...
I have a use case where I need to create 2 stored procedures (Insert data, update records) for Audit Table. First SP inserts 6 out of 12 columns of d ...
Let's say that I have a transact-SQL query that does something like this: Is there a way to make this work? Can you escape the local transact-sql v ...
all. I am a new VB.NET beginner. I am facing the issue of how to pass the dynamic SQL parameter values from the dynamic textboxes to search the data. ...
I am trying to use parameters for my project but somehow it does not return an output. Please see my code below. SqlCommand zSqlComm = new SqlCommand ...
Hi I hope got my problem solved ... I have a listview which contains 2 dropdownlists, it works well in show data but when insert button clicked I got ...
According to the following solution (https://stackoverflow.com/a/42976399/2825284): My code: How I can send null values in Geography field if al ...
I have a shell script which calls some SQL like so Then in mysqlfile.sql, I define properties like this: Later in the file, I call another SQL s ...
I have a situation where I need to store the multi value parameter to a local parameter in sql query. In the SSRS report builder I have created two mu ...
I am having issue to use SqlClient to call some sql query with parameter declared but not assigned. The query I want to run is similar to below How ...
I'm new to SQL Server and I wonder: I have built some tables that display the documents that produced in my program. I need to write a stored procedu ...
this is my first question, hopefully I do things correctly. Also to preface, I'm a programming noob tasked with developing and fixing some code where ...
Need to manipulate the asp.net web-service web method inputs before it getting executed. For example: I have one web method called web1(string inp1) ...
Regarding a question and its related answer, I'm trying to create a new table type using SQL queries and run a join query on data which are of this ta ...
I have a read query (not a stored procedure) within my Perl script for choosing the latest TestHistoryID value for a Test against the TestID. A Test ( ...
I am using SQL Server 2016 and want to reuse an existing stored procedure (let's call it ESP) by calling it from a newly-written stored procedure (let ...
This code works for a query parameter that is a single value: What's the equivalent for an array or list of values? In case it's not clear, I'm ...
I am implementing a stored procedure in SQL Server 2014, with two parameters: @CLIENTID and @CONTRACTID. One of the parameters is optional, so, when t ...
We have a legacy C# application where we have a lot of inline SQL queries that are being executed against the input that was passed by the user. So, o ...