Multiple Datasets in One SSRS [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I cannot use First() because I have multiple data to return.
I cannot use Lookup() because I don't know what data to look for.
Any other workaround? or the only way is I have to change my query?

Your question is very unclear. But since you mention First() you are probably trying to include a data from dataset1(with multiple data) to a table where that table is using dataset2(with multiple data). First() here is not possible since it will only take the first data.
If your data(multiple data) is just numbers you could use
=SUM(Fields!Field.Value, "dataset1")
to sum your data from another dataset but if your data is not a number I advice you create another query to handle your data output. Its much easier to join tables in there. Then create new dataset for that query. This will make your life easier.

Related

When searching Azure table storage, can I sort the results (using paging)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I am writing a C# application that uses Azure table storage. I would like to search through an Azure table and order the results by the values of one column (in my case this column contains a timestamp in integer format). The table might contain many records, so I need to be able to return one page of results at a time.
It is important to note that sorting the results in memory is not good enough. I want to be able to get results one page at a time and have elements sorted across all pages.
I have been using the Azure.Data.Tables NuGet, and it does not appear to support this. I can give it an OData filter expression but not an orderby expression.
Can I achieve this another way?
This SO thread suggests that it is not possible, but it is more than 10 years old, so it is possible that something has changed since then.

C# 9.0 create a record from a class [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I would like to initialize a record from a class. For example, I read in a bunch of objects from a ReST call. These objects should be immutable, so the record type would fit the bill nicely, but I want to write a bunch of code to convert them to records.
Suggestions?
I'm assuming you don't have write access to the API that creates the classes? Because, honestly, it would probably better just to rewrite that.
There are libraries available such as AutoMapper (https://github.com/AutoMapper/AutoMapper).
Beyond that, there are no casts you can use, and unless the classes are highly regular, you need to write custom conversions for each class.

DBMS.OUTPUT_PUT.LINE in C# using MSSql [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
How do I put this DBMS.OUTPUT_PUT.LINE in a database, and is it also allowed to put it on listbox, datagridview or label?
example: [Time]: "NAME" has inserted a data.
If you are trying to get additional text data from an operation to be returned from a SQL operation similar to how DBMS_OUTPUT.PUT_LINE works, then PRINT allows that. Since you mention C#, you should note that to consume PRINT data you need to subscribe to the SqlConnection.InfoMessage event, as described here.
However, in most cases it is more suitable / pragmatic to SELECT (perhaps via OUTPUT-clause in the case of INSERT/DELETE operations) something that informs the UI - perhaps the rows, perhaps the ##ROWCOUNT, perhaps the SCOPE_IDENTITY(). PRINT is usually a bad option for anything other than tool scripts.

Sample queries for c# and RDLC Report [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would like to ask for any sample queries that used to retrieve multiple field from table to do maths calculation?
Another thing is, should I do the calculation in the rdlc report by using Expression, or using queries?
I don't understand your first question. But I will gladly answer your second one from my point of view:
I try to do most calculations on the Database. Because thats what a database should do and complex expressions are not very good and easy to maintain.
You will have to use Expressions on top of that alle the time (in complex reports) so I prefer to do all on the Database that can be done there.
But only as long as your SQL Queries are maintainable and fast.

how to use a sql database table for 2 difference cases? (C#) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
in C# ::I need to use a table for 2 school classes, i am using a table for one now, but i need to use a table same as this, for another school class. how can i do this?
how many DataAdapter, DataSet or SqlConnection do I need?
Not knowing the exact structure of your database surely don't help to answer precisely to your question but considering the info you provided, if you use the same database engine for both of your tables, you can use one SqlConnection and as many DataAdapter, DataSet as you wish.
But you should establish a correct design of your database first and submit it would help everybody to give you a better answer than this one:-)

Categories

Resources