🍪 Privacy & Transparency

We and our partners use cookies to Store and/or access information on a device. We and our partners use data for Personalised ads and content, ad and content measurement, audience insights and product development. An example of data being processed may be a unique identifier stored in a cookie. Some of our partners may process your data as a part of their legitimate business interest without asking for consent. To view the purposes they believe they have legitimate interest for, or to object to this data processing use the vendor list link below. The consent submitted will only be used for data processing originating from this website. If you would like to change your settings or withdraw consent at any time, the link to do so is in our privacy policy accessible from our home page..

Vendor List | Privacy Policy
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 →

MSSQL - ALTER TABLE only allows new columns which are nullable or have a DEFAULT value specified

If you are on this page you likely got an error like the following: Msg 4901, Level 16, State 1, Line 8 ALTER TABLE only allows »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on MSSQL 15 July 2022

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 how to »

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 will use. »

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
← 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 © 2023 Privacy policy