9,868,710 members (30,701 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
5,750 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 115
Page Size:
10
·
25
·
50
Author filtered by: Mika Wendelius
[x]
Counting how many times a letter appears in a string
by
Mika Wendelius
Tip/Trick
11 May 2013
license:
CPOL
LINQ based alternative for "Counting how many times a letter appears in a string"
Languages
»
C#
»
Beginners
C#
.NET
Architect
Dev
QA
Beginner
.NET
Decryption
.NET4
Re: Thoughts
by
Mika Wendelius
Forum Message
10 May 2013
If they were consultants, I bet they were protecting their future income. First time they solved performance bottlenecks and next time they'll solve data issues :)
General Discussions
»
Article "With (Nolock) Example"
Re: OriginalGriff
by
Mika Wendelius
Forum Message
10 May 2013
Nice!!!
General Discussions
»
The Lounge
Thoughts
by
Mika Wendelius
Forum Message
10 May 2013
There are few things you should correct before making this public: Spelling mistakes, there are quite a few of them so please go through the text and make necessary modifications. You
General Discussions
»
Article "With (Nolock) Example"
Re: Formatting.
by
Mika Wendelius
Forum Message
22 Apr 2013
The version that is pending for approval seems unformatted. The formatting should be done by the author, before publishing.
General Discussions
»
Tip/Trick ".Net Reporting Tool Tutorial - 3"
Re: Unambiguously Ambiguous
by
Mika Wendelius
Forum Message
10 Apr 2013
Or does it refer only to the comment which is technically finished but proper explanation isn't implemented :)
General Discussions
»
The Weird And The Wonderful
My vote of 5
by
Mika Wendelius
Forum Message
10 Apr 2013
Thoroughly written and very informative!
General Discussions
»
Article "D3.Js Crash Course - Part2"
Question
by
Mika Wendelius
Forum Message
4 Apr 2013
Hi, While I understand your point that using a sequence may feel clumsy I don't quite understand why sequences promote poor code? Wasn't the example in your blog a situation where a developer d
General Discussions
»
Technical Blog "Oracle Sequence Promotes Poorly Maintainable Code"
Incorrect type and formatting
by
Mika Wendelius
Forum Message
27 Mar 2013
This would be more appropriate as a tip than a full length article. Also before publishing as a tip: - the formatting needs to be corrected. - some explanations for the code would be required.
General Discussions
»
Article "Number To Words In C#, Sql Server And Crystal Report"
Location and size of the download
by
Mika Wendelius
Forum Message
25 Mar 2013
The download link seems to point outside Code Project (http://www.bkelly.ws/irig/vs_project_asyncsocket.zip). All the images and donwnload should be hosted here so that they are available when the art
General Discussions
»
Article "Asyncsocket Part 4: The Client"
A tip
by
Mika Wendelius
Forum Message
15 Mar 2013
Currently this could qualify as a tip, but not as a full length article. The formatting of the code blocks should also be corrected. You can use the article editor to change the type.
General Discussions
»
Article "Extension Methods In Linq"
My vote of 5
by
Mika Wendelius
Forum Message
15 Mar 2013
Well done, looks really good and helpful. Actually quite similar to a tool I'm currently building :)
General Discussions
»
Article "Dbtool For Oracle - Part 1"
Re: Not an article
by
Mika Wendelius
Forum Message
26 Feb 2013
Agree, and even if posted as a tip, it needs at least some additions and explanation about the code. Currently the Entity as well as EntityCollection classes could be anything, AccountRecords is un
General Discussions
»
Article "Convert Entitycollection To Datatable"
Taken from
by
Mika Wendelius
Forum Message
10 Feb 2013
http://www.programcall.com/24/csnet/method-overloading-in-csnet.aspx[
General Discussions
»
Tip/Trick "Opps Concept"
Re: I haven't been able to go to martial arts class for a week now...
by
Mika Wendelius
Forum Message
4 Feb 2013
Glad you didn't get kicked out :)
General Discussions
»
The Soapbox
Downloads should be hosted on Code Project
by
Mika Wendelius
Forum Message
2 Feb 2013
In order for them to be available when the tip is read.
General Discussions
»
Tip/Trick "How To Record Sound Using Xna"
Re: My vote of 5
by
Mika Wendelius
Forum Message
1 Feb 2013
Thanks :) The need to optimize rises from a bad design.My articles[
General Discussions
»
Article "Custom Aggregates In Sql Server"
Missing picture
by
Mika Wendelius
Forum Message
1 Feb 2013
For some reason the picture isn't showing. Also even though this is a tip I would really like to see a bit more explanation of the code.
General Discussions
»
Tip/Trick "C# .Net Hangman"
Re: Chris'isms
by
Mika Wendelius
Forum Message
30 Jan 2013
There's no Escape on Chris' keyboard. Also delete and backspace buttons are untouched.
General Discussions
»
The Lounge
Not sure about this
by
Mika Wendelius
Forum Message
30 Jan 2013
The same tip has already been posted several times. For example, have a look at Select a column in a co
General Discussions
»
Tip/Trick "Return Comma Separated String Using Sql"
Re: The code
by
Mika Wendelius
Forum Message
29 Jan 2013
Okay, if you explain the internal implementation in there "Using the code" then the heading is a bit misleading, but I noticed that you have changed the heading for that section. Currently this loo
General Discussions
»
Article "Custom Checkbox Tree Control"
The code
by
Mika Wendelius
Forum Message
29 Jan 2013
With a quick look, it looks like interesting, but I would like to see more explanations how the control is actually done, not just how it's being used.
General Discussions
»
Article "Custom Checkbox Tree Control"
T-SQL Where Not Equal to 2 Integers?
by
Mika Wendelius
Answer
29 Jan 2013
license:
CPOL
The conditions basically look just fine. With a quick look possible problems may be:- you haven't used table aliases in front of field names. In order to avoid ambiquity, always define the table alias where the field is taken from- if either of the columns may contain a NULL value, you have...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
SQL-Server
SQL2008
T-SQL
Re: Who's who...
by
Mika Wendelius
Forum Message
28 Jan 2013
:~ Who is ... :~ I tried... I really tried :)
General Discussions
»
Site Bugs / Suggestions
Few layout related issues
by
Mika Wendelius
Forum Message
28 Jan 2013
For some reason the picture isn't showing. Have you uploaded it properly? Also the download is typically included in the beginning of an article/tip. Currently you have placed the download in the e
General Discussions
»
Tip/Trick "Write To Excel Sheet Through Matlab"
Re: Who's who...
by
Mika Wendelius
Forum Message
28 Jan 2013
Who are you (you must have seen this coming) :)
General Discussions
»
Site Bugs / Suggestions
Re: My vote of 3
by
Mika Wendelius
Forum Message
22 Jan 2013
Thanks :) The need to optimize rises from a bad design.My articles[
General Discussions
»
Tip/Trick "Get Powers Of 2 With Sql Server 2012"
Now you have two separate versions
by
Mika Wendelius
Forum Message
21 Jan 2013
It seems that you have two separate versions of this tip. When making modifications, just edit the tip instead of posting a new one.
General Discussions
»
Tip/Trick "Grouping And Row Detail Grid"
Re: My vote of 5
by
Mika Wendelius
Forum Message
19 Jan 2013
Thank you :)
General Discussions
»
Tip/Trick "Get Powers Of 2 With Sql Server 2012"
Check if a number is a power of 2 with Sql Server 2012
by
Mika Wendelius
Tip/Trick
19 Jan 2013
license:
CPOL
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.
Database
»
Database
»
Sql Server
SQL
SQL-Server
Architect
DBA
Dev
Beginner
Calculate aggregates for dynamic columns using UNPIVOT
by
Mika Wendelius
Tip/Trick
17 Jan 2013
license:
CPOL
This tip describes how to calculate an aggregate for dynamically defined columns using UNPIVOT clause.
Database
»
Database
»
Sql Server
SQL
SQL-Server
Architect
DBA
Dev
Design
Intermediate
Export access database file to excel file
by
Mika Wendelius
Answer
13 Jan 2013
license:
CPOL
If you use Access, one quite easy way is to use TransferText[^] method to save the data in a CSV file and then open it using Excel. You can use for example Interop for Access to call appropriate methods.Another way could be to use OleDb and open a connection with OleDbConnection and do a...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Why using loop in array when we use reverse and sort methods
by
Mika Wendelius
Answer
13 Jan 2013
license:
CPOL
If you're wondering the difference between for and foreach, you can think the for as looping a counter whereas foreach loops through elemenents in a collection.Please refer to:- for[^]- foreach[^]About the code block, it's unclear why you have the variable a which stores the length...
General Programming
»
Uncategorised Quick Answers
»
General
.NET
C#
C#4.0
Missing space in INSERT INTO
by
Mika Wendelius
Forum Message
12 Jan 2013
The code block containing INSERT INTO statements seems to be missing spaces between the INSERT and INTO. So instead of INSERTINTO ...
General Discussions
»
Tip/Trick "Creating And Processing Delimited Row"
Suggestions
by
Mika Wendelius
Forum Message
12 Jan 2013
The weight of the file sounds a bit odd. Should you change the title to "size of the file"? Another thing, could you use pow function when you divide the size of the file? So instead of dividing th
General Discussions
»
Article "Calculate File Weight In Php - A Simple Class"
How to get the first line of a multiline text field saved in database?
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
One way is to use CHARINDEX[^] to find the new line and use that to for SUBSTRING[^].So something like SELECT SUBSTRING( MyColumn, 1, CHARINDEX( CHAR(10), MyColumn)) ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
VB
.NET
VB.NET
ms-sql-server
.NET4.5
Convert Column data into Rows through SQL Server 2000
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
Since you're using Sql Server 2000 I think the easiest option is to create a small stored procedure which loops through the rows. For each row you iterate through the values in Tn Used and if you find multiple values separated by a comma, insert each one in a temporary table along with approver...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2000
SQL-Server
Select Last Inserted Record in SQL Server 2008 using VB.net
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
In my opinion the best way would be to use the OUTPUT[^] clause. So you could modify your insert statement and add it to the SQL. Something like:INSERT INTO MyTable (column1, column2) VALUES (...)OUTPUT inserted.CustomersID INTO @customeridJust remember to define a SqlParameter for the...
General Programming
»
Uncategorised Quick Answers
»
General
VB
SQL-Server
SQL2008
VB.NET
TSQL
Getting error in switch statement
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
I think the last break is at wrong level (inside the else), have a try with:string sql_count = string.Format("select count(*) from RegisterMaster where UserId='{0}' and Password='{1}'", TxtUserId.Text, TxtPassword.Text); string sql = string.Format("select count(*) from...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
tored procedure that has output parameter
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
If you use a SELECT statement inside the stored procedure, the result is returned to the calling program. This way the result is handled as a result set, not as output parameters.For example have a look at http://www.sqlteam.com/article/stored-procedures-returning-data[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Error: System.IndexOutOfRangeException: There is no row at position 0.
by
Mika Wendelius
Answer
12 Jan 2013
license:
CPOL
You didn't post any code, but based on the stack trace, have a look at the line 175 in the Page_Load method:Csharp.klientiprov.Page_Load(Object sender, EventArgs e) in C:\Users\User\Documents\Visual Studio 2010\Projects\Csharp\Csharp\klientiprov.aspx.cs:175
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
other control for vb.net windows based development
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
You mean you want to have different control vendors. Like:- ComponentOne[^]- Infragistics[^]- Telerik[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
DevExpress
how to create cursor in ms sql server and my sql like oracle
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
The cursor is quite similar in other systems. In Sql Server, have a look at DECLARE CURSOR[^]So your cursor definition would look something like:DECLARE c CURSOR FOR SELECT * FROM tbinstrument;In MySql, have a look at Cursor DECLARE Syntax[^]
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
MySQL
Oracle
Problem in Sql Transaction
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
Based on the description, it sounds like you're having either a lock collision or even a deadlock.Try investigating from SSMS what the halted session is waiting for. For this you can use either activity monitor or query sys.dm_tran_locks[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
how to load image in crystal Report
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
Depending on the data source you use, you can include the image in the data. For example if you use a dataset as the data source, why not include the image inside a data column.For example, have a look at Image in Crystal Reports[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Re: Benefit of using BinaryReader
by
Mika Wendelius
Forum Message
11 Jan 2013
Yep, looks better now :thumbsup: The need to optimize rises from a bad design.
General Discussions
»
Tip/Trick "Fast Csv Row Count Using Binary Reader"
Remove file under directory
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
Not sure if I understood the question correctly, but to delete a file, you can use File.Delete[^] method.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Benefit of using BinaryReader
by
Mika Wendelius
Forum Message
11 Jan 2013
What's the benefit of using a BinaryReader on a text file? I think the obvious question you should answer in the tip is why not just use
General Discussions
»
Tip/Trick "Fast Csv Row Count Using Binary Reader"
substitute of datagrid
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
There are lot's of third party tools you can buy. To name few:- DevExpress[^]- ComponentOne[^]- Infragistics[^]They all have their own kinds of grids to show the data. Depending on the technology you use you may want to investigate different packages of the vendors (ASP, WPF, Forms and...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Resetting an Identity column error
by
Mika Wendelius
Answer
11 Jan 2013
license:
CPOL
Have a try with a bit different syntaxDBCC CHECKIDENT ("product", RESEED, 999);GOAlso make sure that you have the sufficient privileges, namely one of these:- sysadmin - db_owner- db_ddladmin
General Programming
»
Uncategorised Quick Answers
»
General
SQL-CE
SQL-Server
Webmatrix
Page 1 of 115
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid