Click here to Skip to main content
15,881,709 members

Articles by Wendelius (Articles: 29, Technical Blogs: 2, Tip/Tricks: 38, Reference: 1)

Articles: 29, Technical Blogs: 2, Tip/Tricks: 38, Reference: 1

RSS Feed

Average article rating: 4.89

Database Development
SQL Server
2 Dec 2008   Updated: 2 Dec 2008   Rating: 4.92/5    Votes: 31   Popularity: 7.11
Licence: CPOL    Views: 140,518     Bookmarked: 89   Downloaded: 1,154
Please Sign up or sign in to vote.
How to pass multiple records to a Stored Procedure in a single roundtrip.
20 Feb 2011   Updated: 25 Feb 2011   Rating: 4.85/5    Votes: 18   Popularity: 6.08
Licence: CPOL    Views: 95,551     Bookmarked: 33   Downloaded: 227
Please Sign up or sign in to vote.
This article describes the pseudo column to identify the unique physical location of a single row.
17 Mar 2011   Updated: 26 Mar 2011   Rating: 4.95/5    Votes: 24   Popularity: 6.84
Licence: CPOL    Views: 92,888     Bookmarked: 41   Downloaded: 572
Please Sign up or sign in to vote.
SQL Server not having the aggregates you need? Why not build your own.
10 Mar 2011   Updated: 6 Aug 2011   Rating: 4.92/5    Votes: 51   Popularity: 8.27
Licence: CPOL    Views: 587,354     Bookmarked: 65   Downloaded: 1,225
Please Sign up or sign in to vote.
This article shows few examples for using Table-Valued Functions.
19 Sep 2011   Updated: 20 Sep 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 36,553     Bookmarked: 4   Downloaded: 93
Please Sign up or sign in to vote.
This article describes how to mimic the null-safe equal to operator using an UDF in SQL Server.
27 Dec 2011   Updated: 27 Dec 2011   Rating: 4.91/5    Votes: 16   Popularity: 5.78
Licence: CPOL    Views: 272,836     Bookmarked: 27   Downloaded: 1,341
Please Sign up or sign in to vote.
This article describes a few techniques for how multiple SQL statements can be executed with one SqlCommand.
20 May 2012   Updated: 20 May 2012   Rating: 4.90/5    Votes: 7   Popularity: 4.14
Licence: CPOL    Views: 19,580     Bookmarked: 10   Downloaded: 118
Please Sign up or sign in to vote.
This article describes a mechanism how trigger actions bypassed based on database user information
7 May 2012   Updated: 9 Aug 2012   Rating: 4.55/5    Votes: 8   Popularity: 4.11
Licence: CPOL    Views: 72,751     Bookmarked: 25   Downloaded: 0
Please Sign up or sign in to vote.
Article describes basic information about transaction log behavior and truncation of the log.
15 Dec 2011   Updated: 12 Dec 2014   Rating: 4.90/5    Votes: 40   Popularity: 7.86
Licence: CPOL    Views: 403,475     Bookmarked: 50   Downloaded: 1,005
Please Sign up or sign in to vote.
Some simple scenarios to calculate running totals in SQL Server.
19 Jan 2015   Updated: 21 Feb 2015   Rating: 4.94/5    Votes: 30   Popularity: 7.23
Licence: CPOL    Views: 52,844     Bookmarked: 39   Downloaded: 264
Please Sign up or sign in to vote.
How to log information into a table from inside a transaction, even if the transaction is rolled back.
11 Feb 2011   Updated: 12 Jul 2016   Rating: 4.97/5    Votes: 17   Popularity: 6.11
Licence: CPOL    Views: 53,673     Bookmarked: 16   Downloaded: 62
Please Sign up or sign in to vote.
When considering to use NOLOCK hint, there are a few things that should be kept in mind.
3 Jan 2009   Updated: 11 Dec 2016   Rating: 4.87/5    Votes: 44   Popularity: 7.95
Licence: CPOL    Views: 221,743     Bookmarked: 91   Downloaded: 5,289
Please Sign up or sign in to vote.
Desribes how to store and fetch binary data to a filestream column compared to a varbinary column.
2 Apr 2017   Updated: 2 Apr 2017   Rating: 4.95/5    Votes: 4   Popularity: 2.98
Licence: CPOL    Views: 10,161     Bookmarked: 0   Downloaded: 93
Please Sign up or sign in to vote.
This is an alternative for "What You See Is What You Update"
23 Mar 2017   Updated: 30 Apr 2017   Rating: 4.91/5    Votes: 16   Popularity: 5.78
Licence: CPOL    Views: 23,731     Bookmarked: 17   Downloaded: 520
Please Sign up or sign in to vote.
This article explains the problem, when another transaction (concurrent or not) accidentally overwrites previously modified data and how to prevent this from happening.
19 Aug 2015   Updated: 10 Jul 2017   Rating: 4.91/5    Votes: 40   Popularity: 7.70
Licence: CPOL    Views: 54,028     Bookmarked: 60   Downloaded: 887
Please Sign up or sign in to vote.
This article discusses some basic requirements for successful database operations such as error handling, use of parameters and transactions.
26 Dec 2018   Updated: 26 Dec 2018   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 8,383     Bookmarked: 4   Downloaded: 112
Please Sign up or sign in to vote.
This article shows a custom SQL Server function to split a string delimited by a character or a set of characters. The function also contains a few handy enhancements.
13 Oct 2016   Updated: 18 Oct 2016   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 18,273     Bookmarked: 12   Downloaded: 398
Please Sign up or sign in to vote.
Discussion and a few approaches to restrict logging into SQL Server using a logon trigger or into a database by using a specific procedure
2 Oct 2016   Updated: 4 Nov 2016   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 25,325     Bookmarked: 21   Downloaded: 572
Please Sign up or sign in to vote.
Few CLR procedure concepts to write into a file from SQL Server database
11 Oct 2008   Updated: 7 Feb 2018   Rating: 4.34/5    Votes: 23   Popularity: 5.91
Licence: CPOL    Views: 66,443     Bookmarked: 35   Downloaded: 198
Please Sign up or sign in to vote.
Enable SQL Server internal row versioning to achieve greater concurrency in OLTP systems using Snapshots
Desktop Programming
ATL
13 Sep 2012   Updated: 13 Sep 2012   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: CPOL    Views: 77,902     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "SQL Server: Query to find upcoming birthdays for the current week"
WPF
10 Feb 2015   Updated: 17 Feb 2015   Rating: 4.92/5    Votes: 47   Popularity: 8.13
Licence: CPOL    Views: 66,155     Bookmarked: 96   Downloaded: 3,505
Please Sign up or sign in to vote.
This article shows how to build a responsive directory size browser application utilizing threading. The source code includes both C# and VB.Net
Programming Languages
F#
22 May 2016   Updated: 15 Aug 2017   Rating: 4.97/5    Votes: 14   Popularity: 5.53
Licence: CPOL    Views: 58,701     Bookmarked: 31   Downloaded: 2,035
Please Sign up or sign in to vote.
Simple linear trend calculation with different types for X values implemented in C#, VB, and F#
SQL
19 Mar 2011   Updated: 19 Mar 2011   Rating: 4.91/5    Votes: 8   Popularity: 4.43
Licence: CPOL    Views: 38,004     Bookmarked: 10   Downloaded: 154
Please Sign up or sign in to vote.
How to create custom aggregates in Oracle using PL/SQL
14 Sep 2011   Updated: 14 Sep 2011   Rating: 4.72/5    Votes: 11   Popularity: 4.92
Licence: CPOL    Views: 193,722     Bookmarked: 24   Downloaded: 0
Please Sign up or sign in to vote.
This article briefly describes basic information about installing the Oracle 11g XE database on Windows and few Developer tools such as SQL Developer
8 Jan 2012   Updated: 8 Jan 2012   Rating: 4.94/5    Votes: 5   Popularity: 3.45
Licence: CPOL    Views: 51,714     Bookmarked: 7   Downloaded: 312
Please Sign up or sign in to vote.
This article describes how to use a sequence to mimic the SQL Server identity column in Oracle.
13 Mar 2011   Updated: 1 Apr 2012   Rating: 4.75/5    Votes: 11   Popularity: 4.75
Licence: CPOL    Views: 165,704     Bookmarked: 13   Downloaded: 1,014
Please Sign up or sign in to vote.
The article starts with building a simple toolkit package using basic PL/SQL but also covers some more advanced techniques, such as pipeline.
30 Apr 2012   Updated: 30 Apr 2012   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 37,227     Bookmarked: 8   Downloaded: 293
Please Sign up or sign in to vote.
This article describes techniques such as autonomous transactions and action information that can be used when logging information about operations in Oracle database.
Visual Basic
22 Apr 2012   Updated: 5 May 2012   Rating: 4.93/5    Votes: 48   Popularity: 8.24
Licence: CPOL    Views: 282,559     Bookmarked: 111   Downloaded: 20,395
Please Sign up or sign in to vote.
This article describes how to create a basic Excel workbook using Open XML.
9 Sep 2012   Updated: 21 Aug 2015   Rating: 4.98/5    Votes: 49   Popularity: 8.37
Licence: CPOL    Views: 123,743     Bookmarked: 127   Downloaded: 4,842
Please Sign up or sign in to vote.
Article describes how to encrypt a dataset using AES. Optionally the dataset is compressed before the encryption.

Average blogs rating: 4.72

Database Development
SQL Server
7 Oct 2012   Updated: 19 Oct 2012   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 14,760     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
System.IO.Packaging namespace in WindowsBase may cause problems when trying to create a CLR procedure.
Programming Languages
SQL
23 Aug 2015   Updated: 25 Aug 2015   Rating: 4.72/5    Votes: 6   Popularity: 3.68
Licence: CPOL    Views: 18,450     Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
This post discusses about how to add checks into a SQL statement in order to prevent wrong results in case of possible future changes.

Average tips rating: 4.84

Database Development
SQL Server
20 Feb 2011   Updated: 20 Feb 2011   Rating: 4.95/5    Votes: 12   Popularity: 5.34
Licence: CPOL    Views: 106,748     Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
This tip describes how to delete duplicate rows from a table that doesn't have a key.
5 May 2012   Updated: 6 May 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 25,411     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "List SQL Server table column name as rows".
14 May 2012   Updated: 14 May 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 9,880     Bookmarked: 3   Downloaded: 33
Please Sign up or sign in to vote.
This is an alternative for "Applying Running Total to a Result set"
19 May 2012   Updated: 19 May 2012   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 7,290     Bookmarked: 2   Downloaded: 24
Please Sign up or sign in to vote.
This tip describes how to guarantee a fixed amount of rows in a table by using triggers
20 Feb 2011   Updated: 20 Dec 2012   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 34,150     Bookmarked: 16   Downloaded: 0
Please Sign up or sign in to vote.
This tip describes how to delete duplicate rows from a table that doesn't have a key.
27 Dec 2012   Updated: 17 Jan 2013   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 31,248     Bookmarked: 5   Downloaded: 48
Please Sign up or sign in to vote.
This tip describes how to calculate an aggregate for dynamically defined columns using UNPIVOT clause.
18 Dec 2012   Updated: 19 Jan 2013   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 39,763     Bookmarked: 5   Downloaded: 38
Please Sign up or sign in to vote.
This tip shows how to get rows from a table where a field contains a number that is a power of 2 using LOG function.
26 Aug 2014   Updated: 26 Aug 2014   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 53,740     Bookmarked: 7   Downloaded: 191
Please Sign up or sign in to vote.
Generate a set of random numbers by using CTE
26 Aug 2014   Updated: 28 Aug 2014   Rating: 4.83/5    Votes: 10   Popularity: 4.83
Licence: CPOL    Views: 44,085     Bookmarked: 7   Downloaded: 104
Please Sign up or sign in to vote.
Generate Fibonacci numbers using CTE
27 Jul 2011   Updated: 31 Aug 2014   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 28,752     Bookmarked: 11   Downloaded: 70
Please Sign up or sign in to vote.
This tip demonstrates the use of LAG and LEAD functions in SQL Server.
10 Sep 2014   Updated: 10 Sep 2014   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 8,830     Bookmarked: 4   Downloaded: 24
Please Sign up or sign in to vote.
The tip shows how to intentionally cause an error in a situation where a non-existing reference would be updated.
13 Sep 2014   Updated: 13 Sep 2014   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 12,782     Bookmarked: 2   Downloaded: 58
Please Sign up or sign in to vote.
This tip describes how to fetch the first or the last occurrence of given day of week within a month by using a single SQL statement.
26 Aug 2014   Updated: 16 Sep 2014   Rating: 4.64/5    Votes: 5   Popularity: 3.24
Licence: CPOL    Views: 63,054     Bookmarked: 10   Downloaded: 93
Please Sign up or sign in to vote.
How to generate desired amount of rows in SQL Server using CTE
18 Sep 2015   Updated: 18 Sep 2015   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 104,300     Bookmarked: 6   Downloaded: 198
Please Sign up or sign in to vote.
This tip shows how to calculate a difference between two datetime values and to express the difference in years, days, hours, minutes and so on.
26 Sep 2016   Updated: 30 Sep 2016   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 11,350     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
TrimChar function which removes occurences of the desired character from both ends of a string.
4 Oct 2016   Updated: 4 Oct 2016   Rating: 4.56/5    Votes: 6   Popularity: 3.54
Licence: CPOL    Views: 25,421     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Few tips for connecting to an SQL Server instance using DAC
13 Oct 2016   Updated: 13 Oct 2016   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 13,604     Bookmarked: 6   Downloaded: 36
Please Sign up or sign in to vote.
A little tip on how to format repeating values in SQL output using LAG function
7 Dec 2016   Updated: 7 Dec 2016   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 10,310     Bookmarked: 2   Downloaded: 29
Please Sign up or sign in to vote.
This tip demonstrates how to select valid records from a table that contains validity date limits.
28 Dec 2019   Updated: 28 Dec 2019   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 16,367     Bookmarked: 1   Downloaded: 19
Please Sign up or sign in to vote.
How to overcome the error message "Types don't match between the anchor and the recursive part in column..." for varchar columns in a recursive CTE query
10 Aug 2011   Updated: 10 Aug 2011   Rating: 4.60/5    Votes: 3   Popularity: 2.19
Licence: CPOL    Views: 7,770     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Or simply:exec msdb..sp_help_jobsp_help_job (Transact-SQL)[^]
Desktop Programming
Windows Forms
26 Aug 2012   Updated: 26 Aug 2012   Rating: 5.00/5    Votes: 10   Popularity: 4.77
Licence: CPOL    Views: 52,675     Bookmarked: 9   Downloaded: 694
Please Sign up or sign in to vote.
The tip shows one way to resolve if a user control is in design mode.
WPF
5 Apr 2021   Updated: 5 Apr 2021   Rating: 4.53/5    Votes: 6   Popularity: 3.52
Licence: CPOL    Views: 7,865     Bookmarked: 6   Downloaded: 76
Please Sign up or sign in to vote.
When a string longer that 65536 is shown using a message box, the result might be unexpected.
Oracle
21 Feb 2011   Updated: 26 Jul 2015   Rating: 4.86/5    Votes: 4   Popularity: 2.92
Licence: CPOL    Views: 18,350     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
This alternative is created to correct few mistakes in the original tip. Most importantly: Never update system tables.
Programming Languages
C#
29 Feb 2020   Updated: 29 Feb 2020   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 14,770     Bookmarked: 0   Downloaded: 75
Please Sign up or sign in to vote.
Toggle mouse button swapping between on and off
17 Nov 2012   Updated: 17 Nov 2012   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 8,920     Bookmarked: 7   Downloaded: 52
Please Sign up or sign in to vote.
The tip shows an example for using multiple partial classes to define a single class.
26 Jul 2012   Updated: 26 Jul 2012   Rating: 4.72/5    Votes: 4   Popularity: 2.84
Licence: CPOL    Views: 28,611     Bookmarked: 4   Downloaded: 100
Please Sign up or sign in to vote.
This tip describes few examples how ro cumulate values using an extension method with LINQ
20 Jul 2012   Updated: 10 Aug 2012   Rating: 4.64/5    Votes: 10   Popularity: 4.64
Licence: CPOL    Views: 63,739     Bookmarked: 16   Downloaded: 114
Please Sign up or sign in to vote.
This tip describes how to use an existing enum to define a new, for example a context specific enum.
26 Jul 2015   Updated: 26 Jul 2015   Rating: 4.60/5    Votes: 3   Popularity: 2.19
Licence: CPOL    Views: 10,311     Bookmarked: 5   Downloaded: 186
Please Sign up or sign in to vote.
This tip shows how to extract images from an Office document saved in Office Open XML format.
7 Nov 2012   Updated: 7 Nov 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 26,503     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Manipulating a string array using a Lambda Expression"
27 Mar 2012   Updated: 27 Mar 2012   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 20,211     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
This tip describes a way to get publishing information for a ClickOnce deployed application
SQL
19 May 2012   Updated: 19 May 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 11,741     Bookmarked: 1   Downloaded: 22
Please Sign up or sign in to vote.
This tip describes how to guarantee a fixed amount of rows in a table by using triggers in Oracle.
31 Aug 2014   Updated: 31 Aug 2014   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 16,943     Bookmarked: 1   Downloaded: 35
Please Sign up or sign in to vote.
Two ways of generating desired amount of rows in Oracle by using a single SQL statement.
5 Sep 2014   Updated: 5 Sep 2014   Rating: 4.20/5    Votes: 2   Popularity: 1.26
Licence: CPOL    Views: 25,864     Bookmarked: 5   Downloaded: 56
Please Sign up or sign in to vote.
This tip shows two ways of generating Fibonacci numbers in a single SQL statement
22 Feb 2011   Updated: 26 Jul 2015   Rating: 4.82/5    Votes: 6   Popularity: 3.75
Licence: CPOL    Views: 25,261     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
This tip demonstrates the use of LAG and LEAD functions in Oracle.
13 Jul 2017   Updated: 13 Jul 2017   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 178,125     Bookmarked: 1   Downloaded: 52
Please Sign up or sign in to vote.
This is an alternative for "What’s the Difference between a Full Index Scan and a Fast Full Index Scan in Oracle?"
16 May 2021   Updated: 1 Jun 2021   Rating: 3.43/5    Votes: 3   Popularity: 1.64
Licence: CPOL    Views: 7,551     Bookmarked: 2   Downloaded: 53
Please Sign up or sign in to vote.
How to prevent insert for record when maximum number of rows has been reached
Visual Basic
28 Jul 2012   Updated: 27 Jul 2012   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 10,910     Bookmarked: 1   Downloaded: 20
Please Sign up or sign in to vote.
This is an alternative for "Cumulating values with LINQ"
5 Oct 2015   Updated: 5 Oct 2015   Rating: 4.93/5    Votes: 11   Popularity: 5.13
Licence: CPOL    Views: 21,253     Bookmarked: 20   Downloaded: 579
Please Sign up or sign in to vote.
This tip shows one way to query hierarchical data from a DataTable by using an AsTree() method.
25 Nov 2011   Updated: 24 Dec 2011   Rating: 4.73/5    Votes: 6   Popularity: 3.68
Licence: CPOL    Views: 24,011     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
As a general rule of thumb, I'd suggest browsing http://www.connectionstrings.com/[^] for connection strings against popular data sources.
1 Apr 2012   Updated: 1 Apr 2012   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 14,710     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Getting publishing information for a ClickOnce deployment"

Average reference rating: 4.92

5 Nov 2013   Updated: 4 Aug 2017   Rating: 4.92/5    Votes: 50   Popularity: 8.27
Licence: CPOL    Views: 295,322     Bookmarked: 213   Downloaded: 0
Please Sign up or sign in to vote.
A list of useful development tools edited by members of CodeProject

Average project rating:

No projects have been posted.
Architect
Europe Europe
Biography provided