Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

sql

Unable to access data in an ASP.NET MVC web application using Entity Framework and SQL Server database

September 3, 2022 by Magenaut

In an ASP.NET MVC web application, I have created the following entity:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, sql, sql-server Leave a comment

SQL connection string is not recognised and throws and exception in C#

September 3, 2022 by Magenaut

CONTEXT: I am writing a WPF app. It works with a SQL Server database in which I put some data, concretely the strings Titulo and Descripcion, the int XP and the string fotoMision. When I click a button the program is supposed to save this data in the database.

Categories ASP.NET, Q&A Tags asp.net, c#, sql, sql-server, wpf Leave a comment

How can I enhance my SQL Statement using the SUM function?

September 3, 2022 by Magenaut

I am trying to SUM my UNUSED column (named UNUSED). The challenging part in this context here is, I have a COUNT function. The results are calculated correctly. But how can I add a SUM function in this statement? Appreciate any kind advice.

Categories ASP.NET, Q&A Tags asp.net, c#, database, sql Leave a comment

ASP.NET Tree View out of Sql Binding

September 3, 2022 by Magenaut

I got a Categorie Table with a column for the Tree View in my Database which I want to display as a Tree View.

Categories ASP.NET, Q&A Tags asp.net, c#, sql, treeview Leave a comment

Select all distinct last records of column1 and order by column2 in Linq (Not Working Accordingly)

September 3, 2022 by Magenaut

So I have a table like this:

Categories ASP.NET, Q&A Tags asp.net, c#, database, linq, sql Leave a comment

Is there a good LINQ way to do a cartesian product?

September 3, 2022 by Magenaut

I have a class structure like so:

Categories ASP.NET, Q&A Tags asp.net, c#, cartesian-product, linq, sql Leave a comment

Read SQL Table into C# DataTable

September 3, 2022 by Magenaut

I’ve read a lot of posts about inserting a DataTable into a SQL table, but is there an easy way to pull a SQL table into a .NET DataTable?

Categories ASP.NET, Q&A Tags .net, asp.net, c#, datatable, sql Leave a comment

Pass table valued parameter using ADO.NET

September 3, 2022 by Magenaut

How to pass table valued parameter to stored procedure using ADO.NET?

Categories ASP.NET, Q&A Tags ado.net, asp.net, c#, sql Leave a comment

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints

September 3, 2022 by Magenaut

I make an outer join and executed successfully in the informix database but I get the following exception in my code:

Categories ASP.NET, Q&A Tags asp.net, c#, database, informix, sql Leave a comment

Are Parameters really enough to prevent Sql injections?

September 3, 2022 by Magenaut

I’ve been preaching both to my colleagues and here on SO about the goodness of using parameters in SQL queries, especially in .NET applications. I’ve even gone so far as to promise them as giving immunity against SQL injection attacks.

Categories ASP.NET, Q&A Tags asp.net, database, sql, sql-injection Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page22 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress