15,898,134 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 chints786 (Top 28 by date)
chints786
12-Feb-20 9:41am
View
I did try it,and that is the point I am trying to understand.
A when matched to 'Aa,B,C' must give 'N/A' in exact match column and only 'A' in the similar match column.
Another example would be
'Brush' when matched to 'Brush On';'Bru On' then the exact match would be 'N/A' but the Similar match would be 'Brush'.
Once you get a exact match of the current value we won't need to find a similar match for it.
chints786
12-Feb-20 9:17am
View
Thanks Maciej Los, however there is a gap in this.
When the current value is A we will need to check each value in the corresponding MasterList of values and check if we get the actual 'A' in it. In this case we wont get because it has 'Aa' in it. So the exact match is false or NA.
However when we traverse for Similar match kind of like clause 'A' will match with 'Aa' and hence similar match must have 'A' in it i.e. Partial match.
Similarly for the other values.
Hope you understand.
chints786
12-Feb-20 5:13am
View
Hi,
B and C is similar match because they are one of the values in the MasterListof Values column. With respect to A the MasterListValue consists of Aa hence it is not a perfect match, but it should be under Similar match and the value over there should be A.
Here is the function :-
CREATE FUNCTION [dbo].[SplitString]
(
@List NVARCHAR(MAX),
@Delimiter NVARCHAR(255)
)
RETURNS TABLE
WITH SCHEMABINDING AS
RETURN
WITH E1(N) AS ( SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1
UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1
UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1),
E2(N) AS (SELECT 1 FROM E1 a, E1 b),
E4(N) AS (SELECT 1 FROM E2 a, E2 b),
E42(N) AS (SELECT 1 FROM E4 a, E2 b),
cteTally(N) AS (SELECT 0 UNION ALL SELECT TOP (DATALENGTH(ISNULL(@List,1)))
ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) FROM E42),
cteStart(N1) AS (SELECT t.N+1 FROM cteTally t
WHERE (SUBSTRING(@List,t.N,1) = @Delimiter OR t.N = 0))
SELECT Item = SUBSTRING(@List, s.N1, ISNULL(NULLIF(CHARINDEX(@Delimiter,@List,s.N1),0)-s.N1,8000))
FROM cteStart s;
GO
cross apply with the data table I would be getting the split values of Msater column one below the other to get the exact match.
chints786
9-Dec-19 5:11am
View
Not working
chints786
5-Nov-19 6:03am
View
There is no MYSQL statement which I am using ... I am pushing data from SQL SERVER table to MYSQL table using SSIS package i.e. OLEDB Source to ADO NET Destination
chints786
16-Oct-19 4:25am
View
I will not serve my purpose because i want the identity column to work and generate the identity number.
The readonly property is not an issue because it is set to off:
read_buffer_size 262144
read_only OFF
read_rnd_buffer_size 524288
chints786
9-Oct-19 7:40am
View
I did this one too and set the variable to some value and yes it did populate rv.value=test.
chints786
25-Jul-19 2:45am
View
Thanks Richard.
I did go through the links and I was able to read a simple pdf.
however i am getting error when i am trying to install textract. I am using the command pip install textract. but it throws me the below error:-
ERROR: Failed building wheel for pocketsphinx
I have installed Anaconda and i am using it on windows 10
chints786
23-Jul-19 0:16am
View
I haven't asked for complete code out here. A guidance to the question was required.
Also dont jump to conclusions as to I am getting paid or it is my grade. If you cannot help then there is no problem.
chints786
22-Jul-19 13:10pm
View
apology for the delay. yes you are right. but after getting the desired result i had copied to excel and then I had a macro created which transposed the data as per my need.
chints786
19-Jun-19 0:08am
View
Thanks CHiLL60 and apologies for the late response.
I was able to get the result using unionall
SELECT TOP 1 'itemid', [Att Name 1], [Att Name 2], [Att Name 3]
from TEST
UNION ALL
SELECT [itemid], [Att Value 1], [Att Value 2], [Att Value 3]
from TEST
Thanks a lot for your help!!!
chints786
11-Jun-19 6:01am
View
Can you write the code and give?
chints786
11-Jun-19 5:39am
View
how is it possible with case?
chints786
24-Apr-19 5:40am
View
Thanks Santosh!! Can you please let me know what if I have data in fraction say
Col1
1/2
2/3
4/5
0.123
0.345
0.222
I want only the fraction part i.e
Col1
1/2
2/3
4/5
Col1
1/2
2/3
4/5
chints786
5-Apr-19 13:23pm
View
Done.
Thanks once again!!
chints786
2-Apr-19 7:58am
View
Thanks a ton Maciej. I was able to do the necessary changes. Once again thanks for your help!!!
chints786
25-Mar-19 10:49am
View
Probably i tried changing some code based on your comments but i may be wrong.
'you need to change a code-context!
'read below comments
Set srcWsh = Sheet1 'refers to first worksheet in a workbook - source worksheet
Set dstWsh = sheet2 'refers to second worksheet in a workbook - destination worksheet
dstWsh.Cells.Delete xlShiftUp 'clean up first!
With dstWsh.Range("A1")
.Value = "ID"
.Font.Bold = True
.Interior.Color = vbGreen
End With
was this which was required?
chints786
25-Mar-19 10:33am
View
Hi Maciej,
I am getting error "subscript out of range"
chints786
25-Mar-19 6:17am
View
Richard i want to create a macro, I haven't created it anytime
so please help me to create it.
chints786
25-Mar-19 6:17am
View
I havent created a macro yet. so I dont know how it is made.
On internet i found the below code
Option Explicit
Sub ATransProd()
Application.ScreenUpdating = False
Dim s1 As Worksheet, s2 As Worksheet
Set s1 = Sheets("Input")
Set s2 = Sheets("OutputX")
s2.Range("A1") = s1.Range("A1")
s2.Range("B1") = "Producto"
s2.Range("C1") = "Unidad"
s1.Range("L1:N1").Copy s2.Range("D1")
Dim lr As Long, lr2 As Long, i As Long
lr = s1.Range("A" & Rows.Count).End(xlUp).Row
With s1
For i = 2 To lr
lr2 = s2.Range("B" & Rows.Count).End(xlUp).Row
.Range("A" & i).Copy s2.Range("A" & lr2 + 1)
.Range("B" & i & ":F" & i).Copy
s2.Range("B" & lr2 + 1).PasteSpecial xlPasteValues, , , True
.Range("G" & i & ":K" & i).Copy
s2.Range("C" & lr2 + 1).PasteSpecial xlPasteValues, , , True
.Range("L" & i & ":N" & i).Copy s2.Range("D" & lr2 + 1)
Next i
End With
Application.CutCopyMode = False
lr2 = s2.Range("B" & Rows.Count).End(xlUp).Row
For i = lr2 To 2 Step -1
If s2.Range("C" & i) = "" Then
s2.Range("C" & i).EntireRow.Delete
End If
Next i
With s2
For i = 3 To lr2
If .Range("A" & i) = "" Then
.Range("A" & i) = .Range("A" & i - 1)
.Range("D" & i) = .Range("D" & i - 1)
.Range("E" & i) = .Range("E" & i - 1)
.Range("F" & i) = .Range("F" & i - 1)
End If
Next i
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
MsgBox "completed"
End Sub
chints786
14-Jun-18 0:18am
View
@Richard:- Thanks a lot for the solution. However there is a small fight with this solution and I should have mentioned in the beginning that my SQL Server 2008 R2 is what I am using right now and the built in function (DateFromParts) is applicable from 2012.
Will be helpful if you could share replacement solution for this function.
chints786
1-Jun-17 14:18pm
View
yes Tsql only
chints786
1-Jun-17 14:07pm
View
I have included the flags in table a and table b . the confusion is say for eg if initially the record came in first file is Ryan and the updateidentifier is N, then both the tables will have that record.. but in the second file if the name comes as ryandev and update identifier U i need to update the same record and increement the flag variable to 1...how can i achieve that
chints786
1-Jun-17 14:01pm
View
can you help me with the code to implement?
chints786
1-Feb-17 11:03am
View
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/799ecbe6-306d-4cdc-8e41-35b65a8c1d9c/ssrs-2008-inconsistency-with-excel-export-functionality?forum=sqlreportingservices
The same issue i am facing.
chints786
1-Feb-17 10:53am
View
The thing is that the same sp was used to fetch the data till 24th jan and the report was getting downloaded completely. Now also the report gets downloaded but only for a month. The moment the data range is increased from one month to 2 months i get that error. That is the precise error msg which I receive.
Please share your email address i will share the screenshot as well.
chints786
1-Feb-17 10:39am
View
Hi Chilli60,
Apology for not responding properly. The SP works fine becoz data gets populated on the SSRS report and also on SSMS. The code consists of select statement pulling columns from multiple tables based on join.
The error msg is below:-
The reportname.xls download was interrupted.
chints786
31-Jan-17 13:17pm
View
Hi CHilli60
The report takes 2 parameters start date and end date. So I pass those 2 paramters and click on view report.
An sp gets called based on which the report populates the data.
while exporting the data for a month it works fine, but the moment i change the date range from one month to 2 months say december 01 2016 to 31st Jan 2017 the reports loads with the data but throws the error while exporting in excel.
Show More