15,898,723 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 Naga Sindhura (Top 88 by date)
Naga Sindhura
29-Aug-18 3:58am
View
LEFT JOIN t_wfl_process_execution pe ON pe.tdesc_name='t_sup_supplier' AND pe.x_id=CAST(s.sup_id AS varchar(128))
what is the datatype of pe.x_id column int/varchar. If it is int then why you are converting and then comparing it with s.sup_id(CAST(s.sup_id AS varchar(128))).
or some where in the data, you trying to convert varchar data which contains some sort of characters and you are converting that data to int.
Naga Sindhura
8-Aug-18 1:59am
View
left outer gives poor performance when you have the bulk data. try this
SELECT TS.ID, TS.ENAME, TS.SAL - SUM(ISNULL(TA.ADVANCE,0)) 'remainin_SAL'
FROM #tempSaldetail TS
LEFT JOIN #tempAdvance TA On TA.Id = TS.id
group by TS.ID, TS.ENAME, TS.SAL
ORDER by TS.ID
Naga Sindhura
3-Aug-18 4:57am
View
output nagesh is not there in the Emp_table then how you are expecting nagesh in the result(output). Could you please update the problem statement correctly.
Naga Sindhura
1-Aug-18 5:29am
View
too many when statements, its better to go with table variable syntax. What do you think?
Naga Sindhura
1-Aug-18 5:27am
View
where you actually referring this column, is it in table select part?/ are you trying to store it in a variable? can you post the complete solution if possible. And, also the error details.
WHEN 'vorne rechts' THEN '2 -- what does it mean exactly. 'vorne rechts' refers to column name and 2 refers to column position?
Naga Sindhura
1-Aug-18 3:31am
View
check for other constraints exists in BTU_MISReport table. because above solution perfectly works for altering a table column datatype as follows
ALTER TABLE BTU_MISReport
ALTER COLUMN ADDRESS NVARCHAR(MAX);
syntax errors will always points to staring line of the code base. check-it once again.
Naga Sindhura
1-Aug-18 3:23am
View
use alias name to select the column and will avoid Ambiguous column errors.
like - kolicina exists in AllTables table the change your select as AT.kolicina : to SUM (cast(AT.kolicina AS float)) AS 'Prodata kolicina'
Naga Sindhura
1-Aug-18 3:18am
View
it worked in the way he asked but small suggestion MAX(COALESCE(age,1)) needs to be replaced with MAX(COALESCE(age,0)). I know that that up to the business requirement. What do you think?
Naga Sindhura
1-Aug-18 3:06am
View
if you need one more entry like mentioned in Solution 4. Please refer that solution
Naga Sindhura
1-Aug-18 3:03am
View
syntax error in the select statement. So try this:
DECLARE @testdata TABLE (belowthen2 INT, between2and5 INT, above5 INT)
INSERT INTO @testdata(belowthen2, between2and5, above5)
SELECT 1,3,6 UNION
SELECT 3,3,6 UNION
SELECT 1,6,6
select belowthen2, between2and5, above5,CASE WHEN (belowthen2 < 2 and (between2and5 between 2 and 5) and above5 >5 ) THEN 'Above' ELSE 'Below' END as STATUS
FROm @testdata
if the issue got fixed this then thats fine otherwise you need to look at your from and where part as well
Naga Sindhura
26-Jul-18 7:29am
View
Agreed.. But small correction ...varchar(10) mentioned in the Problem Statement itself.. I know it is wrong as you mention earlier..
Naga Sindhura
25-Jul-18 9:48am
View
How data in name field stored in?
for 'harsh,suresh, mohan' condition - three different records- one for harsh, other for suresh, And, one more for mohan.
/Or harshsureshmohan /or something else
Please post your comment?
Naga Sindhura
25-Jul-18 9:44am
View
may be her intention is SELECT REPLACE(@emp, ',','') not SELECT REPLACE(@emp, ',','','')
Naga Sindhura
25-Jul-18 9:27am
View
try to change the from part as follows:
from tbl_Stock_Journal SJ
INNER JOIN tbl_item AS i1 ON i1.itemid =SJ.SJItmID
inner JOIN tbl_Stock_Journal_Details AS SJD ON SJ.SJID = SJD.SJID AND SJd.SJdItmID = i1.itemid
If it does work, try to post some sample data.
Naga Sindhura
25-Jul-18 9:16am
View
AT and BT are two fixed vales in ColB? What if you have the following combination? That time will you go for the CT, DT,...? First check other dependencies where you can decide perfect combination like for AA use AT, And, for BB use BT... may be some table to decide this combination at runtime if you don't have fixed combination.
ColA ColB
CC C01
CC C02
CC C03
CC C04
Naga Sindhura
18-Jun-18 8:53am
View
check this one once. It may help you.
https://stackoverflow.com/questions/17571233/how-to-change-schema-of-all-tables-views-and-stored-procedures-in-mssql
Naga Sindhura
13-Jun-18 8:07am
View
Agreed to your Explanation -
Here he/she needs to define/alter the tables structure in the following way:
1. Student table
-StudentID(PK)
-StudentName
2. Class table
-ClassID (PK)
-ClassName/Room Name
3. StudentClass - for Normalization
-StudentID(FK)
-ClassID (FK)
4. Subject - Table
-SubjectID(PK)
-StudentName
5. ClassSubject - Table
-ClassID (FK)
-StudentID(FK)
6. Teacher - Table
-TeacherID(PK)
-TeacherName
7. TeacherSubject - for normalization/mapping
-TeacherID(FK)
-SubjectID(FK)
First insert the records into following Core table:
1. Student
2. Class
3. Subject
4. Teacher
And then insert into the following mapping table:
1. StudentClass
2. ClassSubject
3. TeacherSubject
i.e. core tables first and then add the data into the reference tables.
Naga Sindhura
21-Feb-18 5:32am
View
one more thing master.dbo.spt_values table to repeat the columns for n times
CREATE TABLE RepeatRows (
Id int identity(1,1),
RepeatText varchar(100),
RepeatCount int
)
INSERT INTO RepeatRows SELECT 'Repeat 3 Times', 3
INSERT INTO RepeatRows SELECT 'Repeat 2 Times', 2
INSERT INTO RepeatRows SELECT 'Repeat 4 Times', 4
INSERT INTO RepeatRows SELECT 'Only once', 1
SELECT t1.*, t2.number + 1 RepeatNumber
FROM RepeatRows t1
JOIN master.dbo.spt_values t2 on t2.type = 'P' and t2.number < t1.RepeatCount
Naga Sindhura
21-Feb-18 5:24am
View
try to use auxillary table table mentioned in the following link.
https://stackoverflow.com/questions/33327837/repeat-rows-n-times-according-to-column-value
Naga Sindhura
21-Feb-18 4:58am
View
sys.columns and sys.systypes are tables
Naga Sindhura
21-Feb-18 4:57am
View
under your schema, Try to use to query with sys.columns to extract columns information and sys.systypes for data type. xtype or system_type_id 104 is for bit. I hope this will help you..
Naga Sindhura
28-Dec-17 22:31pm
View
client won't allow us to install new font typesin report servers.
Naga Sindhura
21-May-17 10:51am
View
I applied the following permissionsets, but still I am getting similar error message.
var newPer = new PermissionSet(PermissionState.Unrestricted);
newPer.RemovePermission(typeof(FileIOPermission));
Naga Sindhura
21-May-17 10:08am
View
after removing appDomainSetup,permissionSetup from AppDomain.CreateDomain, dll could create the files where ever I mention like including C:\Users\UserName\Desktop\, its not restricting any paths of my local Machine.
Naga Sindhura
21-May-17 9:57am
View
No Its not. I could not restrict the one which I wants to.
Naga Sindhura
21-May-17 9:26am
View
yes, like C: drive or some other one.
Naga Sindhura
21-May-17 9:17am
View
I have changed my code from var generateFilesAppDomain = AppDomain.CreateDomain(
generateFilesPluginPathName,null,appDomainSetup,permissionSet); to generateFilesAppDomain = AppDomain.CreateDomain(generateFilesPluginPathName), however, I need to restrict the domain execution with some sort of permission like not access with C drive or some sort of sensitive paths. How could I do that one? any suggestions.
Naga Sindhura
21-May-17 8:35am
View
Sure thanks, I will look into it. I have tried to load the dll in AppDomainSample -> Main() method using the following code and is working without any issues, but I could not load it through thrirdPartyDomainLoader instance. Do you think, still is this an issue with permission issue or wrong code.
var assm =
Assembly.LoadFile(
@"D:\DotNetTraining0504\AppDomainSample\GenerateFilesPlugin\bin\Debug\GenerateFilesPlugin.dll")
.GetType("GenerateFilesPlugin.GenerateFiles");
Naga Sindhura
21-May-17 8:17am
View
Hi Kornfeld Eliyahu Peterб
Yes you are true, I don't have local admin permissions and even switching user is also not possible. However, I have added the following lines in my app.config but I could see the similar error message like earlier.
<system.web>
<trust level="Full"/>
Naga Sindhura
1-May-17 7:39am
View
"xmlns="http://library.by/catalog" is in Russian language. Will it effect my code?
Naga Sindhura
1-May-17 7:38am
View
Hi FranzBe,
When I serialize the declared object and then Deserialize then it is working as expected. However, I have modified the code as follows but still I am getting the same error @ "return (T)serializer.Deserialize(myStream);" line.
string path = @"C:\temp\books.xml";
StreamReader reader = new StreamReader(path);
string s = reader.ReadToEnd();
reader.Close();
Catalog deserializedCatalog1 = Catalog.XMLDeserialize(s);
Along with that I have corrected the Genre property to XMLElement.
Naga Sindhura
24-Mar-17 12:01pm
View
Is there any alternative to achieve this? or is possile with NEWSEQUENTIALID if we alter the table?
Naga Sindhura
17-Feb-17 10:45am
View
I am not a stupid to ask silly questions like you feel. I struggling to implement edit/update operation in boilerplate from 1 week. If can able to answer it please do post it. If not please delete the comments posted by you so that it won't give wrong direction to the people if they really wants to.
Naga Sindhura
17-Feb-17 10:40am
View
Hi, you are not understanding my question at all. My question is about ASP.NET MVC5 boilerplate? Please keep your words before posting anything.
Naga Sindhura
17-Feb-17 9:42am
View
Yes your point is correct. I am not able to find proper documentation that why I posted this question. I have gone through the so many articles no one gave sample example to do edit function. Along with that, I have gone through the entire documentation of the boilerplate even there they didn't mention proper flow to develop for edit example.
Naga Sindhura
17-Feb-17 9:42am
View
Deleted
Yes your point is correct. I am not able to find proper documentation that why I posted this question. I have gone through the so many articles no one gave sample example to do edit function. Along with that, I have gone through the entire documentation of the boilerplate even there they didn't mention proper flow to develop for edit example.
Naga Sindhura
17-Feb-17 9:41am
View
Deleted
Yes your point is correct. I am not able to find proper documentation that why I posted this question. I have gone through the so many articles no one gave sample example to do edit function. Along with that, I have gone through the entire documentation of the boilerplate even there they didn't mention proper flow to develop for edit example.
Naga Sindhura
31-Jan-17 7:13am
View
select SKU,PRODUCTNAME,PRODUCTVARIANT from tbl_product where product in(SELECT * FROM STRING_SPLIT('ewew,slk,ewew',','))
STRING_SPLIT only works when you have SQL SERVER 2016
Naga Sindhura
27-Jan-17 5:53am
View
UsrMain table is in LEFT JOIN. However you have used UsrMain.id= 'T89387' is in the where clause which means the code internally treat that as INNER JOIN/ JOIN and one reason is CssRplOutboundPackageInfo.WorkState='Initial' don't have any records if this is the case then you need rewrite the code to by marking CssRplOutboundPackageInfo in left join.
Naga Sindhura
7-Jul-14 9:49am
View
I am using IE9 for my testing purpose. Can please suggest any imageslider, that should support by the all the browsers.
Naga Sindhura
17-Jun-14 1:00am
View
Hi Nirav, Here is my code,
<head runat="server">
<title></title>
<script type="text/javascript">
function settext(valueData) {
document.getElementById('<%=Label6.ClientID%>').innerHTML = valueData;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<p>text </p>
<asp:textbox id="txtbox1" runat="server" onkeypress="settext(this.value)" >
<asp:Label ID="Label6" runat="server">
</div>
</form>
</body>
</html>
Naga Sindhura
16-Jun-14 3:33am
View
Sorryy to ask now,
The output i am getting here is one char back,
like if I enter "Hello", In my label it is displaying as "Hell".
How can I solve this.
Naga Sindhura
25-Apr-14 6:47am
View
Hi Sarah, Please mention your requirement exactly with Expected output.
Naga Sindhura
24-Apr-14 5:37am
View
I am ok with your point. However for same application with less records that is fine right. Alternatively we can use indexes on columns if there are many records.
Naga Sindhura
24-Apr-14 4:50am
View
Deleted
Are you using deliveryDate DataType AS Date?. If you change the that to DateTime. then you will get exact result.
Naga Sindhura
22-Apr-14 7:34am
View
please try to do debug, then you will know exact reason. However whatever you saying is correct.
Naga Sindhura
22-Apr-14 6:56am
View
getdate()is not a problem that is working fine for me.
Naga Sindhura
22-Apr-14 6:02am
View
Hi, As per understanding you are getting error, please try to debug your code and identify the error. Check your password length because you are convert it to hash and then you are saving. Your code is Working for me.. :)
Naga Sindhura
27-Feb-14 4:33am
View
Deleted
tel me
Naga Sindhura
27-Feb-14 2:24am
View
Deleted
hi SambasivaRaoG
Naga Sindhura
13-Feb-14 13:27pm
View
Hi Richard MacCutchan,
Initially i tried with the code,
lblQues.Text = String.Concat("What is my <a name ='test' id='lnkMe' runat="server" href='#' >anchor name?");
here I am not able to get the control. so tried to add HtmlAnchor tag(both on page load).
I tied in this way that is not working or me. Is there any alternative to get the id's of all anchor tag.
Naga Sindhura
13-Feb-14 13:19pm
View
Actually I assigned Id as 'anchor' to htmlAnchor. while getting that id i got an error at c.ID.
Naga Sindhura
13-Feb-14 13:08pm
View
Hi Richard MacCutchan, i tried to get id name of all htmlAnchor using Type. Actually that is not required.
Naga Sindhura
13-Feb-14 13:02pm
View
Hi Richard, I initialized a vale for string ids,still i am getting an error.
Naga Sindhura
13-Feb-14 12:55pm
View
hi, globally i created variable for ids as string. i am getting an error because of c.ID.
Naga Sindhura
13-Feb-14 12:47pm
View
hi, i am getting an error (ids = ids + " " + c.ID;) because o c.ID) could you help me for this
Naga Sindhura
13-Feb-14 12:45pm
View
here ids reers to htmlAnchor.ID = "anchor"; that means all htmlAnchor id's
Naga Sindhura
11-Feb-14 8:59am
View
Thankyou SambasivaRaoG
Naga Sindhura
11-Feb-14 5:54am
View
code ni use chesi get chesukovali nenu direct ga kadu. and na output "lnkMe" ani ravali
Naga Sindhura
11-Feb-14 5:47am
View
u r correct. Miru chepina code naku work avuthundhi, kani naku anchor tag id ni get chesukovali adi ela?
Naga Sindhura
11-Feb-14 3:39am
View
vachu. na question enti ante oka label lo anchor tag undi. button click chesinappudu a anchor tag id result ga ravali.
Naga Sindhura
11-Feb-14 2:20am
View
Hi,i am not able to solve my solution.
Naga Sindhura
10-Feb-14 9:53am
View
Hi SambasivaRaoG,
In my problem i need to get id of anchor tag. No need to assign assign any thing.
from the first label i need to get id and that id should display second label on button click. Please help me for this.
Naga Sindhura
10-Feb-14 9:50am
View
Hi SambasivaRaoG,
I am not able to get the id of my anchor tag.
Naga Sindhura
10-Feb-14 8:27am
View
Hi SambasivaRaoG,
I need to implement this code Using Labels and my output is id of the anchor tag.
Naga Sindhura
3-Feb-14 9:27am
View
Hi Richard,
You are Correct.
Actually my problem is, implement a basic Calculator program using design patterns. i am new to design patterns. i don't know how to proceed.
I implemented code to develop the Calculator with the help of this link( http://code.msdn.microsoft.com/windowsdesktop/Simple-Calculator-54ec8e4a ).
Please suggest how to proceed.
Naga Sindhura
23-Jan-14 9:51am
View
Hi BillWoodruff,
No Parameters passing from or to WhoIsCallingMe() method.
Naga Sindhura
23-Jan-14 0:20am
View
Hi navin,
Your Query is working fine in webapplication, i want to same result from my Console Application. Is there any way to proceed?
Naga Sindhura
20-Sep-13 1:18am
View
i am not getting any error
Naga Sindhura
18-Sep-13 9:45am
View
thank you Tadit.
Naga Sindhura
18-Sep-13 8:49am
View
Hi Tadit, it's really helpful to me. I worked with this functionality it working fine in IE. The bottom right corner icon is showing outside of the div, Is the there any alternative showing slashes inside the div?
Naga Sindhura
18-Sep-13 6:28am
View
thank you, and sure Tadit Dash
Naga Sindhura
18-Sep-13 6:14am
View
Hi Tadit, thanks for your reply. the textarea showing browser compatibility issue with IE. When user trying to drag textarea using bottom right corner icon it showing in chrome and other browsers not in IE(it showing vertical scroll bar). what i have to add resolve browser compatibility issue with textarea?
Naga Sindhura
5-Sep-13 1:36am
View
yes, about the code.
Naga Sindhura
29-Aug-13 21:46pm
View
Hi ridoy i am getting data from my database, however i don't have null values in my database.
Naga Sindhura
29-Aug-13 11:06am
View
through trirand it's working. However i have to implement with the freeware.
I am getting data from DataBase. properbinding is not hapening ,it is displaying empty data.
Iam getting problem with Request.InputStream. showing null values
Naga Sindhura
29-Aug-13 6:13am
View
Hi Roshith,
i am getting problem with Dictionary<string,> dict = jser.Deserialize<dictionary><string,>>(json); especially second argument. How can i resolve it. Is there any alternative be add?
Naga Sindhura
28-Aug-13 2:12am
View
Hi, how to apply same property on tabs ?
Naga Sindhura
26-Aug-13 5:13am
View
Hi when i trying to get jqgrid ID, i am geeting like 1 1,2 1,2,3 ... like that
using var containerId = jQuery("#list").jqGrid('getDataIDs'); code.
how can i get individual row ids like 1 2 3 .. on each iteration .
Naga Sindhura
26-Aug-13 3:15am
View
I need to implement these things with out commercial websites(like free ware).
Naga Sindhura
19-Aug-13 9:01am
View
hi Sampath,
Thank you for sharing that link. For the custom colors it working fine.
However when i am trying to edit the date using "http://www.trirand.net/examples/grid/editing_data/custom_edit_buttons/default.aspx" i am not getting any hyperlink for edit, save and cancel. i am not able to under stand exact problem. One thing i know is, in JQGrid1_CellBinding i am getting underline for edit, save and cancel. i don't think it make sence in my problem. Can you suggest anything about this problem?
Naga Sindhura
16-Aug-13 12:49pm
View
correct, can you same implementation using asp.net web application/website
Naga Sindhura
16-Aug-13 12:21pm
View
i tried to implement grid with help trirand. Here i am unable to customize the colors of jqgrid.
Naga Sindhura
7-Aug-13 9:39am
View
for this requirement not needed.
Naga Sindhura
7-Aug-13 8:47am
View
i wanted to implement this one using c# or dos command.
Naga Sindhura
7-Aug-13 7:49am
View
Hi, through command prompt it's working fine, however i wanted to restrict some files like .exe from source to target. How can we do this using robocopy.
Naga Sindhura
6-Aug-13 2:03am
View
Reason for my vote of 5 \n the way of implementation is useful to me, but i am getting confusion like "why to implement a jquery grid without using GridView?".
Naga Sindhura
23-Jul-13 16:28pm
View
Hi ridoy,
i have implemented using asp.net web site not using web form.
can you clarify for this also.
Show More