Home Tags Privacy About

All posts tagged with "MSSQL"

MSSQL is a SQL relational database system developed by Microsoft

← Newer Posts Page 2 of 3 Older Posts →

C# Dapper - How to execute a select statement using a list of Ids with an IN clause in MSSQL

Using Dapper you can easily map results of a query to an object or a list of objects. Sometimes you want to select a list of »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Dapper, MSSQL 17 June 2022

C# Dapper - How to make select, insert, update and delete statements

Dapper makes it easy to "Execute a query and map the results - if any - to a strongly typed List". This post demonstrates »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, MSSQL, Dapper 13 June 2022

C# Dapper - Return inserted identity

This post describes two ways to get the generated identity of a newly inserted row. We will use the following table simple table with an Id »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, MSSQL, Dapper 12 June 2022

C# - How to connect to a MSSQL database using a SqlConnection

You can use the SqlConnection class to connect to a MSSQL server. If we have a database called MyDb with a simple table called MyEntities: CREATE »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, MSSQL 01 June 2022

Entity framework - How to add static data using data seeding

I am not sure that the correct term is "static" data - it seems to be known as seeding, which is the term I »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Entity Framework, C#, MSSQL 10 April 2022

Entity framework - How to set the connection string of the DbContext

It seems that every guide I find on Entity framework, the database connectionString is fetched from the config file magically. I wanted to inject it instead »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Entity Framework, MSSQL 09 April 2022

Entity framework - Unable to create an object of type <type>. For the different patterns supported at design time see <link>

Today I was trying to make an initial migration using Entity framework. I encountered an error when calling dotnet ef migrations add InitialCreate: C:\Users\peter\ »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Entity Framework, C#, MSSQL 05 April 2022

MSSQL - A network-related or instance-specific error occurred

I have witnessed this error quite a few times in my career. I see it every time there is something wrong with the network in a »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on MSSQL 20 February 2022

MSSQL - How to select JSON values from a column and parse them to decimals or integers using JSON_VALUE

In this post I show how to select and cast values from a column containing JSON so that you can work with the fields as you »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on MSSQL 06 March 2021

MSSQL - How to force MSSQL to use a specific index for a query using an index hint

It is quite easy to give SQL a hint on which index to use for a query, but we should start with a warning: this is »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on MSSQL 15 August 2020
← Newer Posts Page 2 of 3 Older Posts →
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2025 Privacy policy