DBMS.OUTPUT_PUT.LINE in C# using MSSql [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 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.

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.

Passing of value from one separate application to another [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 4 years ago.
Improve this question
I'm looking for advice and experiences about proper way to create outputs from one separate application to other independent application which must take this value for own implementation conditions. to make it clearer in primitive way for example output application writes some undated value to the text file, and another running application with available path to this file reads it in time loop and if value is found makes some implementation. But I'm trying to find what is more correct way to do the same to pass it from one application directly to another
Message Queing is certainly what you are looking for.
It will let some applications put messages on the queue and some others (or not actually) consume these messages.
https://msdn.microsoft.com/en-us/library/ms711472(v=vs.85).aspx

C# and access trying to order and change order [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 7 years ago.
Improve this question
I have a Access Database that i manipulate though a c# program.
i am trying to get a order of items that satisfy certain conditions.and be able to change the order.
my idea is to copy the unique key in to another field then order by that field and have a button that moves up and a button that moves down.is this the right way to go about this ?
a separate column in a table called Order for example makes sense, as does allowing a user to re-order the items and save it back to the database. Maybe drag/drop or something for re-ordering would be a bit less clunky than buttons, but I guess it depends if your c# application is winforms, wpf, web, etc. as to how easy that is.

Razor in winforms [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 8 years ago.
Improve this question
For my job i have to make many small projects that require to send different mails and set up some html. I usually make these forms in Winforms. Now at this moment whenever i need to fill my html I take the string replace some values and have functions that write hardcoded table rows.
To make my job a little easier I was wondering if it was possible to import the razor engine(not sure if it's the right word choice) in my winforms project and simply pass a model to a CSHTML file which returns me the HTML in a string so i can mail it to coworkers.
If this is possible, instructions on how to do it are welcome.
Kind Regards Roxas

does it make sense to use datagridview just for one record? [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 9 years ago.
Improve this question
If I need to show some info on the page and use lot of labels for this, does it make sense to use datagridview and show info as one record?
This is going to depend heavily on the specifics of your situation. If the tablized view of the data is perfect for your situation, then it might make perfect sense. On the other hand, you allow a lot more formatting adjustments and specificity if you use labels and divs and the like to support more detailed css.
A FormView is more recommended in such cases. It's a control that displays data for a single record. In the end of the day whichever control you use will work, but FormView makes it easier to format the data you want to display (in this specific case).

Categories

Resources