15,910,980 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 syedmas (Top 20 by date)
syedmas
5-Jan-15 7:56am
View
it is just copying the folders but it is not copying the files why is it? AM i missing any thing here?
syedmas
5-Jan-15 7:02am
View
i am trying to execute this but its not copying.is it because the plan_begin having subfolders again inside it ? or what i am trying run this in windows 7.
syedmas
5-Jan-15 7:01am
View
Robocopy "D:\Masood_Shared\Masood_Backup\Backend_logs\send 13-14\plan_begin" "D:\Masood_Shared\newfolder05jan14" *.* /MAXAGE:20141231 /MINAGE:20141201
syedmas
5-Jan-15 4:09am
View
sir can you help on this.
syedmas
5-Jan-15 2:42am
View
there is one folder which has 365 files which was generated everyday. now i want to move or copy this file into a folders month wise from jan to dec.
syedmas
5-Jan-15 2:40am
View
its just a text files which gets generated day wise every day. like autologqwj.txt
i want to keep this files in a folder month wise
syedmas
11-Nov-14 23:08pm
View
thanks @PIEBALDconsult
syedmas
11-Nov-14 22:46pm
View
Thank you so much clearing the doubt @RossMw. i was just suprised a bit when i ran both the queries i could see the second query fetching me data such as 'Aadam' and many more.
syedmas
18-Dec-12 4:13am
View
sir i have a small question can i use the above query for updation ?? i want to update my table with these count ?? if no then what would be the alternate way to update ???
syedmas
18-Dec-12 4:07am
View
Thank you it worked !!!!!!! Thank you so much sir!!!
syedmas
14-Dec-12 7:17am
View
Sir what will do if i have add those tables alternatively
syedmas
14-Dec-12 5:55am
View
I just want to add up the rows which are odd in one column as obj1 and even column as obj2
syedmas
14-Dec-12 5:23am
View
This is my code sir which is generating me the Count and comparing the correct response and student response but now i have to add alternative rows and display i tried the Query which u gave but it is still not working.. thank you so much i appreciate your help and time which you are giving towards me. It shall guide me and make me do better in future thank you SO MUCH.. Sir
syedmas
14-Dec-12 5:20am
View
--select * from New_Text_Document
begin
Declare @temp_StuRes as varchar(20)
declare @temp_CorRes as varchar(20)
declare @student_ID as varchar(20)
declare @s_count as int
declare @StuRes as varchar(20)
declare @CorRes as varchar(20)
Declare @count as int
Declare @temp as varchar(100)
DECLARE compare_cursor CURSOR FOR
select Student_ID,CorRes,StuRes from New_Text_Document
Open compare_cursor
FETCH NEXT FROM compare_cursor INTO @student_ID, @temp_CorRes ,@temp_StuRes
WHILE @@FETCH_STATUS = 0
begin
set @CorRes = @temp_CorRes
set @StuRes = @temp_StuRes
set @s_count=0
set @count = 1
set @temp = ''
while(@count <= len(@CorRes))
begin
if(substring(@CorRes,@count,1)=substring(@StuRes,@count,1))
begin
set @temp = @temp + '*'
set @s_count = @s_count+1
end
else
begin
set @temp = @temp + substring(@StuRes, @count, 1);
end
set @count = @count + 1
end
print @s_count
print @student_ID + '-----' + @temp_CorRes + '-----' + @temp_StuRes + '-----' + @temp
update New_Text_Document set Newcol_compare = @temp, correct_answercount = @s_count where Student_ID=@student_ID
--alter table New_Text_Document ADD correct_answercount int
--update New_Text_Document set correct_answercount = @s_count where Student_ID=@student_ID
FETCH NEXT FROM compare_cursor INTO @student_ID, @temp_CorRes ,@temp_StuRes
end
close compare_cursor
Deallocate compare_cursor
end
syedmas
14-Dec-12 5:10am
View
I should include those column in the Query which u have written in above .. am i right sir?? but over here the studentIDs are different then how could it work??
syedmas
14-Dec-12 3:51am
View
thank you so much if my data is like this and i want to implement the same then how will i do it sir..
StudentID Fname Lname Mname DOB Gender Class SchoolID CorRes StuRes New_col_Cmpr CountofCorr Obj1 obj2
102891 Butler Sheila 41591 M 10 3932308 ABACCDACBA ACDCDDBCBC *CD*D*B**C 5 5
102965 Katelyn Cook 41792 F 7 6070957 ABACCDACBA CBCCBDCBBA C*C*B*CB** 5 5
103262 Tran Taylor L 101190 F 7 6070957 ABACCDACBA BBACDABBAA B***DABBA* 4 9
103541 Jonathan Rosa 71493 M 7 6070957 ABACCDACBA ABACDCBABD ****DCBA*D 5 10
103565 Jerewy Vincent 121690 M 11 3932308 ABACCDACBA BADCBDACBD BAD*B****D 5 14
12000475 Hamilton Davon 110593 F 8 3932308 ABACCDACBA ABCDCDBABC **CD**BA*C 5 15
12404003 Dananh Oviedo Lope Phan 12600 F 7 3932308 ABACCDACBA ADCBDBABCD *DCBDB*BCD 2 16
8060004 Sameen Colon 50795 M 7 6070957 ABACCDACBA BADCBADCBA BAD*BAD*** 4 19
77766 Devgan Kajol 120592 F 9 6070957 ABACCDACBA ABCDABCDBA **CDABCD** 4 20
syedmas
8-Dec-12 6:57am
View
NO sir it didnt work for me. Example If in 1st column ABCD is correct answer and in 2nd Column student answer's as CBCA then i want to compare both the column and write result in 3rd column where answer should be like C**A. that is correct answers should become * and wrong answer should remain as it is. so can u please help thank you
syedmas
8-Dec-12 0:40am
View
Thank you sir for your reply. but Over here the wrong answer should be displayed as it is and correct answer should be replaced with *. EXample is : DC** and i want to execute the statement for about some 10 or 20 row how will i do it.. if you could help it my help me in understanding SQL a little more. thank you..sir
syedmas
7-Dec-12 7:54am
View
Thank you sir for your reply. but Over here the wrong answer should be displayed as it is and correct answer should be replaced with *. EXample is : DC** and i want to execute the statement for about some 10 or 20 row how will i do it.. if you could help it my help me in understanding SQL a little more. thank you..sir
syedmas
10-Oct-12 23:48pm
View
Thank you so much carlos.ma for your effort yo answer my question, it is working fine but still i have one small query . Why is it allowing 2 special character. I want it to just allow only one special character and trim of the next special character after alerting the message. i would be thankfull if you help me out with it and give a bit of explaination. thank you so much!!!!!!!
Show More