15,886,362 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by
Meysam Toluie
(Top 101 by date)
Meysam Toluie
8-Mar-22 6:56am
View
CXPACKET wait types occurs when SQL use parallelism component. Increase Cost Threshold for Parallelism in server setting. To avoid these wait type.
Meysam Toluie
24-Feb-22 11:33am
View
your expected result is not a json format. Under Items can be array of object but any object must includes key-value pair. Still if you want produce that kind of output you must play with string values.
Meysam Toluie
24-Feb-22 11:30am
View
Add some example of data and your expected result to clear up your goal.
Meysam Toluie
16-Jul-21 16:14pm
View
Update your question in order to make it more clear. For example explain, what your expected result is.
Meysam Toluie
27-Nov-20 11:42am
View
tSQLt does not work like this!
Meysam Toluie
27-Nov-20 6:14am
View
I use no transaction. The algorithm I have wrote will executed in tSQLt test, and tSQLt will begin a transaction automatically and at the end it will be rollback.
Meysam Toluie
23-Jul-19 7:07am
View
Instead of Join, you can use Left Join; Then with the help of ISNULL function you can change null values to ZERO
Meysam Toluie
17-Sep-18 7:35am
View
But youngest child is 18 not 25!
Meysam Toluie
2-Jul-16 0:56am
View
I am changing a project which I didn't created myself. the developer had some terrible implementation on this project. specifically he put the contentplaceHolder of master page in an updatePanel so I can not use PostBackTrigger. Is there another solution?
Meysam Toluie
17-May-16 0:12am
View
How to change the line brush?
Meysam Toluie
30-Jul-15 21:08pm
View
the ID columns is Identity and I am using disconnected architecture. did you see?
Meysam Toluie
3-Aug-14 3:59am
View
Are you looking for someone to write your homework? Here is the wrong place!
Meysam Toluie
20-May-14 5:42am
View
Do you need the whole row or an specific cell of it?
Meysam Toluie
20-May-14 5:40am
View
I thing dataGridView1.CurrentRow was enough. He asked for current Row null cell.
Meysam Toluie
18-May-14 1:28am
View
Does DataGridView Databinded?
Meysam Toluie
18-May-14 0:31am
View
Hi Sir.
I have added a solution but I can not see that myself. Can you see any solution here?
Its reputation also added to my reputation.
Meysam Toluie
18-May-14 0:29am
View
And What column should be update? And How?
Meysam Toluie
15-May-14 4:36am
View
Somehow you reply yourself in the question.
Meysam Toluie
14-May-14 23:52pm
View
The solution Explorer of VS?
Meysam Toluie
9-May-14 7:17am
View
+5
Meysam Toluie
9-May-14 7:04am
View
If you have any question use 'Have a Question or Comment?' button!
Meysam Toluie
6-May-14 1:32am
View
+5!
Meysam Toluie
3-May-14 4:50am
View
sorry It was my mistake to post wrong question. See the updates.
Meysam Toluie
1-May-14 3:35am
View
So do it!
Best wishes for you.
Meysam Toluie
29-Apr-14 14:37pm
View
+5
Meysam Toluie
26-Apr-14 4:43am
View
I executed this code:
DECLARE @cmd VARCHAR(255)
SET @cmd = 'bcp "Select Distinct Loan.ManagedFundAccNo1 From Account.Loan.Loan" queryout "D:\test.xls" -U sa -P 123 -c'
Exec xp_cmdshell @cmd
Then the following errors came as result.
output
SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Server Native Client 10.0]Named Pipes Provider: Could not open a connection to SQL Server [2].
SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Server Native Client 10.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is config
ured to allow remote connections. For more information see SQL Server Books Online.
SQLState = S1T00, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Login timeout expired
NULL
Meysam Toluie
26-Apr-14 4:18am
View
What's the use of
SqlDataAdapter adp = new SqlDataAdapter(command);
Meysam Toluie
24-Apr-14 0:17am
View
And where is the code you set updated row in dataGridView?
Meysam Toluie
22-Apr-14 1:01am
View
What is the platform? WinForm , Asp.Net, ... ?
Meysam Toluie
22-Apr-14 0:56am
View
See the update.
I hope you get what you want!
Meysam Toluie
19-Apr-14 4:16am
View
+5
Meysam Toluie
16-Apr-14 4:53am
View
See my solution.
Meysam Toluie
15-Apr-14 2:55am
View
I know the cause of the error is simple. What is not simple is the answer.
Meysam Toluie
15-Apr-14 2:55am
View
Deleted
I know the cause of the error is simple. What is not simple is the answer.
Meysam Toluie
15-Apr-14 2:53am
View
I had tried this one too; The same exception.
Meysam Toluie
15-Apr-14 2:20am
View
I am sure you mean V[1].Length for single string size; because string is not List it's an array.
Meysam Toluie
13-Apr-14 4:32am
View
Why do you want to show ComboBox?
Why don't you just change the value of the specified cell?
Meysam Toluie
12-Apr-14 4:28am
View
ProcessThread.Id and Thread.ManagedThreadId are different.
We can not match these two like that!
Meysam Toluie
10-Apr-14 1:29am
View
Before asking these basic question, please google it! you will be surprise of many answer more faster.
Meysam Toluie
31-Mar-14 5:59am
View
Can you put the codes of CitiesCountriesDAL class?
Meysam Toluie
31-Mar-14 5:35am
View
Solution 1 didn't solve your problem?
Meysam Toluie
31-Mar-14 5:00am
View
If specifying the line which cause the exception is hard to you I suggest to leave coding as soon as possible.
How can I fix the code when I do not know where exception occurs?!
Meysam Toluie
31-Mar-14 4:46am
View
Still you didn't specify where the exception occurs.
Anyway when I was reviewing your code, I see another mistake; And that is:
The final block will execute anyway. So you do not need to rewrite its code in try block!
You rewrite
citCountr.CloseConnnection();
several times.
Meysam Toluie
31-Mar-14 2:25am
View
It will be more efficient if you put the part of code which cause the error.
Meysam Toluie
26-Mar-14 4:25am
View
Deleted
Invalid column name 'Owner'
This is the error I have got.
Meysam Toluie
19-Mar-14 4:25am
View
See the answer and tell me if it helped!
Meysam Toluie
19-Mar-14 4:21am
View
Deleted
See the answer and tell me if it helped!
Meysam Toluie
19-Mar-14 4:09am
View
Have you checked that your table is not empty?
Meysam Toluie
19-Mar-14 4:06am
View
Maybe you are getting errors but you must change your code in a way that Abhinav has been mentioned.
Meysam Toluie
19-Mar-14 4:00am
View
What kind of errors occur?
Meysam Toluie
18-Mar-14 3:32am
View
So are you going to accept it formally or not?
Meysam Toluie
16-Mar-14 2:14am
View
See the answer update please.
Meysam Toluie
10-Mar-14 1:23am
View
Being long is less important than being messy.
Meysam Toluie
9-Mar-14 4:50am
View
I think LaTex will be good.
Meysam Toluie
9-Mar-14 1:18am
View
I am looking for some easiest way.
See: http://stackoverflow.com/questions/15042334/how-to-add-superscript-power-operators-in-c-sharp-winforms
Meysam Toluie
7-Mar-14 14:05pm
View
I prefer to create my own control.
I will be thankful if you have any suggestion.
Meysam Toluie
7-Mar-14 14:05pm
View
I prefer to create my own control.
I will be thankful if you have any suggestion.
Meysam Toluie
19-Dec-13 4:32am
View
Please read the question and the sample of result carefully.
Pay attention to Client_ID column and Sum Column.
Meysam Toluie
19-Dec-13 4:20am
View
Your first mistake is (A.PayDate < B.PayDate) And the second is you do not read the question caredully. Pay attention to the ClientID and sum column again.
Meysam Toluie
19-Dec-13 1:23am
View
Please tell me how to fix it. I can not use subquery, because the function is really complex and its not single select.
So what are the other way to solve it?
Thank you.
Meysam Toluie
18-Dec-13 23:54pm
View
I am kind of beginner but I think starting lots of threads will not helping me even with BackgroundWorker. In Addition I had experience with BackgroundWorker.
Meysam Toluie
18-Dec-13 23:49pm
View
The method SaveOutput is not a method which only saves the data; It also prepares data.
Meanwhile I am writing an text file.
Meysam Toluie
17-Dec-13 6:20am
View
The function is table-value.
I am using function because the function body is very long some other reasons.
Meysam Toluie
17-Dec-13 5:57am
View
The best way to understand is tracing the program and find out what is null in line which error occur.
Meysam Toluie
16-Dec-13 0:02am
View
In fact I used row_number to get the maximum of it for each message.
Meysam Toluie
15-Dec-13 15:24pm
View
The below query gave me this:
Title Content RowNumber ID
----------------------------------------------------
first firstContent 1 1
first firstContent 2 4
first firstContent 3 5
second secondContent 1 9
second secondContent 2 2
But I need this:
Title Content Count
-------------------------------------------
first firstContent 3
second secondContent 2
Meysam Toluie
15-Dec-13 15:20pm
View
With CTE As
( Select Row_Number() Over(Partition By [Log].Message_ID Order By [Log].ID) As RowNumber,
Message.Title,
Message.Content,
[Log].ID
From [Log]
Left Outer Join
Message
On Message.ID = [Log].Message_ID
) Select Title,
Content,
RowNumber,
ID
From CTE As A
Meysam Toluie
15-Dec-13 12:58pm
View
Thank you for your time.
What if I want to get the message content from the table 'Message' using inner join and also other columns from the current table?
The error message:
Column 'column1' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Meysam Toluie
3-Dec-13 0:56am
View
The English is not the first language of Many users and I. So take it easy.
Maybe I could use 'Get' or 'gain' or something else which I do not know!
Is there something else which is not clear?
Meysam Toluie
25-Nov-13 8:21am
View
Thank you for your answer. What if I want to remove only the alphabets?
Meysam Toluie
25-Nov-13 7:10am
View
You didn't get my question.
See the accepted answer.
Thank you anyway.
Meysam Toluie
18-Nov-13 15:08pm
View
It is enough when you know what kind of error will occur; anyway thank you for your time.
Meysam Toluie
18-Nov-13 2:41am
View
Thank you for your time.
In your example you handle the error of multiple records; But what about the other errors.
There are many kind of queries that I can not think about all possible errors.
Did you get it?
Meysam Toluie
5-Sep-13 3:21am
View
This was the answer:
body
{
margin: 0;
}
Meysam Toluie
4-Sep-13 5:48am
View
Sorry but no problem solved!
Thank you However.
Meysam Toluie
4-Sep-13 5:15am
View
Nothing happened.
Meysam Toluie
4-Sep-13 5:10am
View
.title
{
color: White;
margin: 0px;
}
Meysam Toluie
4-Sep-13 5:04am
View
Thank you for your time.
What about the first div? There is still an space above that.
Meysam Toluie
3-Sep-13 5:31am
View
But never finding out?
Meysam Toluie
3-Sep-13 3:10am
View
I like the way you answer these type of question.
Thank you.
Meysam Toluie
3-Sep-13 3:08am
View
What kind of question is this?
Meysam Toluie
1-Jul-13 17:52pm
View
You must explain more about your issue to gain the best solution.
Meysam Toluie
1-Jul-13 17:50pm
View
I think you didn't read the question carefully. vijay79041384 didn't ask a solution for hiding a TabPage, but the TabPage's header. did S/He?
Meysam Toluie
28-May-13 2:55am
View
I have already found a class named "Win32_ScheduledJob" but I couldn't use it. can this class help me?
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394399(v=vs.85).aspx
Meysam Toluie
28-May-13 2:53am
View
I have already found a class named "Win32_ScheduledJob" but I couldn't use it. can this class help me?
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394399(v=vs.85).aspx
Meysam Toluie
26-May-13 4:52am
View
I do not want to use these typical ways that you named. As Windows can do this so I want to find a way to access the windows setting. I will find it some how. I just want help to do it as soon as possible! So what do you think now?
Meysam Toluie
26-May-13 4:37am
View
I forgot what?
Meysam Toluie
1-May-13 4:43am
View
My Problem is more complicated. The WebBrowser in my windows application doesn't fire any javascript even when I click on the link using webBrowser UI.
Meysam Toluie
1-May-13 4:32am
View
Thank you anyway!
Meysam Toluie
30-Apr-13 4:11am
View
I think you are miss understanding. The web site is not mine! and of course its my fault to not explaining well.
My Project is Windows Application.
I am trying to invoke a javascript in a website using WebBrowser.
Meysam Toluie
30-Apr-13 1:50am
View
Deleted
The same problem occurs in my new application version but this time DocumentCompleted event didn't help me!
Meysam Toluie
17-Apr-13 0:25am
View
Have you ever tried the above code yourself?
Meysam Toluie
16-Apr-13 9:14am
View
Yes, the solution accepted.
Meysam Toluie
16-Apr-13 7:36am
View
I handled the DocumentCompleted but i put NO CODE in the handler method and it just updates.
Meysam Toluie
16-Apr-13 3:06am
View
The above code is not the exact code. It is for explanation.
Yes, I did.
Meysam Toluie
22-Feb-13 23:55pm
View
See my reply to Sergey.
Meysam Toluie
22-Feb-13 23:54pm
View
Deleted
See my reply to Sergey.
Meysam Toluie
22-Feb-13 23:53pm
View
I am creating many procedures in a Db one by one. For managing what procedure is being created or not I had made a DB with a single Table; Now I want to automatically update the progress table when creating the target Db procedures.
At first I thought the sys.etc kind of metadata are tables which can support triggers; Now I am looking for more sufficient ideas.
Meysam Toluie
22-Feb-13 13:50pm
View
As you can see I commented that the statement continues.'.
The purpose is not important yet. For now my problem is to create the trigger.
Meysam Toluie
22-Feb-13 13:47pm
View
First of all you could answer "Am I right?", didn't you?
After that you can see my problem, so if you can suggest something to solve it, please help me; otherwise do not look for a question.
Meysam Toluie
1-Feb-13 4:11am
View
Of course, Inner join slows down store procedures.
For suggesting you a solution I need to see your code.
Show More