15,891,033 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 Goutam Patra (Top 83 by date)
Goutam Patra
24-Jan-11 8:08am
View
Simple,
CREATE TABLE SALARY (EMPCODE VARCHAR(10), SALARY MONEY)
INSERT INTO SALARY VALUES('A1', 15000)
INSERT INTO SALARY VALUES('A2', 20000)
INSERT INTO SALARY VALUES('A3', 25000)
INSERT INTO SALARY VALUES('A4', 30000)
INSERT INTO SALARY VALUES('A5', 35000)
SELECT * FROM (
SELECT EMPCODE, SALARY,
RANK() OVER (ORDER BY SALARY DESC) AS MYRANK
FROM SALARY
) AS A
WHERE MYRANK = 4
This will fetch 4th highest salary.
wont that. Please reply if it does.
Goutam Patra
24-Jan-11 7:58am
View
Like
SELECT * FROM (
SELECT CODE, AMOUNT AS AMT,
RANK() OVER (PARTITION BY CODE ORDER BY AMOUNT) AS MYRANK
FROM CBJDETAIL
) AS A
WHERE MYRANK = 4
Goutam Patra
27-Dec-10 5:38am
View
I didnt downvoted you.
Goutam Patra
27-Dec-10 5:37am
View
Deleted
But WHERE Name like '%@Name%' will search names stared with [%@Name%], not the value inside @Name var. Will it? just asking.
Goutam Patra
27-Dec-10 5:24am
View
Check the updated answer
Goutam Patra
11-Dec-10 3:12am
View
[i tried to change extension]: What? Did you really? awful.
Goutam Patra
11-Dec-10 2:31am
View
It wont. So you are trying to search using (username + ' ' + usertype) = 'avinash Admin'? Take a look at the edited part of my answer.
Goutam Patra
10-Dec-10 5:49am
View
To [hopingToCode]: Take a look at the question again. Dont you think OP needs a very simple solution? I hope you understand what i mean.
Goutam Patra
10-Dec-10 1:42am
View
What you have asked for just a beginin. You have to go a long way to get the actual data. Actually you are not trying. Try youself. Map those structures as per the document. thats all i can help you.
Goutam Patra
9-Dec-10 1:58am
View
Dont post your email address to avoid spam. If anyone replies then you will get a email notification.
Goutam Patra
8-Dec-10 6:16am
View
Post a new question and ask for twiddling. Someone will help you out in that regard or may be i will be ther.
Goutam Patra
8-Dec-10 2:51am
View
See my Edited answer.
Goutam Patra
7-Dec-10 8:33am
View
[did you mean NYSE?] NSE->National Stock Exchange (India)
Goutam Patra
4-Dec-10 7:31am
View
See my edited answer.
Goutam Patra
1-Dec-10 7:18am
View
It should, at least its working for me for last 10 yrs.
Goutam Patra
1-Dec-10 5:32am
View
Check my answer modified.
Goutam Patra
30-Nov-10 7:34am
View
Good link
Goutam Patra
29-Nov-10 2:21am
View
Repost
Goutam Patra
26-Nov-10 3:57am
View
Check my answer again i have edited the same.
Goutam Patra
19-Nov-10 3:13am
View
First dont push answer to add a comment. Use add comment instead. Now as per your requirment see my answer. I have edited the same.
Goutam Patra
19-Nov-10 2:15am
View
Deleted
Nobody can.
Goutam Patra
18-Nov-10 8:15am
View
VB6 is history.
Goutam Patra
17-Nov-10 3:13am
View
Is this a AD of the site?
Goutam Patra
17-Nov-10 1:51am
View
Will you care to use your head and some googling? This was a suggestion how you can do it. Just putting the error message shows that you have not worked anything out.
Goutam Patra
12-Nov-10 0:32am
View
Why don't you try yourself
create table STUPIDTEST ( FIELD1 INT IDENTITY(0, 1), FIELD2 VARCHAR(10) NOT NULL)
GO
INSERT INTO STUPIDTEST(FIELD2) VALUES('TEST1')
SELECT @@IDENTITY
GO
INSERT INTO STUPIDTEST(FIELD2) VALUES(NULL)
SELECT @@IDENTITY
GO
INSERT INTO STUPIDTEST(FIELD2) VALUES('TEST3')
SELECT @@IDENTITY
GO
and try google for more
Goutam Patra
26-Oct-10 9:43am
View
What you are trying to do? Reading a Word document as text?
Goutam Patra
22-Oct-10 8:52am
View
Thats a new window link
Goutam Patra
22-Oct-10 6:48am
View
In India? Google for sms service providers in india
Goutam Patra
22-Oct-10 6:26am
View
Dont push answer. Use Add comment instead. And for query there are no provider who are going to provide some service for free and any case. You need to pay.
Goutam Patra
21-Oct-10 7:09am
View
Remove one field from your query and try to execute it. If does not run correctly then remove another field and try again. This way you will find the exact field where you are getting the error.
Goutam Patra
11-Oct-10 4:06am
View
[We want video recording using IP cameras through c#.net] Why so demanding? What SQL tag is doing here? Who are WE? Try yourself.
Goutam Patra
9-Oct-10 7:57am
View
Yes, I have edited the answer, Please check it. And moreover SelectedText gives the Text of the Highlighted Selection ie the text you select by pressing Shift key.
Goutam Patra
9-Oct-10 7:04am
View
Google for A generic error occurred in GDI+, You will find reasons for the error.
Goutam Patra
9-Oct-10 6:13am
View
Dont push answer to update your question use the improve button and edit your original question. Like OriginalGriff said [Edit your question]
Goutam Patra
9-Oct-10 4:33am
View
OK I didnt notice that one. Take a look at this link below may be useful.
http://msdn.microsoft.com/en-us/library/ms913863.aspx
Goutam Patra
8-Oct-10 7:38am
View
Update your question to show what coding have you done for that so that some one can help you to find out what wrong with your code.
Goutam Patra
8-Oct-10 1:51am
View
Thank you Ankur for your comment and vote. I am not at all worried about any point. But a correct answer doesnt deserve a downvote. Its odd. and have a 5 from me.
Goutam Patra
7-Oct-10 8:56am
View
Dont push answer. Add comment to reply a specific answer or update your original question.
Goutam Patra
7-Oct-10 8:46am
View
Exactly, someone randomly downvoted all the answers. Even when all the answers are correct.
Goutam Patra
7-Oct-10 5:16am
View
Dont push answer to reply a specific answer. Use add comment instead.
Anyway check those links
http://www.dbforums.com/microsoft-sql-server/1633187-translate-pivot-query-into-sql-server-2000-compatible-query.html
http://www.ozgrid.com/forum/showthread.php?t=77395&page=1
http://stackoverflow.com/questions/312861/pivot-using-sql-server-2000
or try google.
Goutam Patra
6-Oct-10 9:36am
View
So, what’s your problem?
Goutam Patra
6-Oct-10 9:18am
View
It would be better if you use a meaningful subject of your question.
Goutam Patra
6-Oct-10 6:16am
View
You will get help if you give a proper subject of your question.
Goutam Patra
5-Oct-10 9:43am
View
Urgent to you may be
Goutam Patra
5-Oct-10 5:24am
View
You are so lazy that you cannot even write a question.
Goutam Patra
5-Oct-10 2:43am
View
Dont puch answer. Use add comment link to reply to a specific answer.
Goutam Patra
2-Oct-10 2:07am
View
You should change your table structure.
Goutam Patra
1-Oct-10 9:17am
View
Does Access support stored procedures?
Goutam Patra
1-Oct-10 7:48am
View
Homework, no effort.
Goutam Patra
30-Sep-10 8:33am
View
The in condition will not work.
Goutam Patra
28-Sep-10 8:33am
View
I am not very sure sut take a look at
http://stackoverflow.com/questions/649802/how-to-pivot-a-mysql-entity-attribute-value-schema
http://search.mysql.com/search/query/search?q=pivot&group=refman-50
http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html
Goutam Patra
24-Sep-10 8:49am
View
You dont need to pass a parameter. "Load the application by clicking [OpenWith]" display the "Environment.CommandLine" using a message box and your find the answer yourself.
Goutam Patra
17-Sep-10 6:53am
View
I think OP forgot the sum operation :)
Goutam Patra
6-Sep-10 2:11am
View
I said WebRequest. System.Net.WebRequest. I think this will solve your purpose. Just go through the link specified.
Goutam Patra
3-Sep-10 3:42am
View
See this link http://www.adobe.com/devnet/pdf/pdfs/PDFReference16.pdf
Goutam Patra
30-Aug-10 9:28am
View
Duplicate of http://www.codeproject.com/Questions/105810/want-to-help-for-crystal-report.aspx
Goutam Patra
27-Aug-10 3:54am
View
In which part do you want help? Loop through the grid or saving it into text file?
Goutam Patra
26-Aug-10 3:51am
View
<has been="" insane="" enough="" to="" split="" data="" between="" two="" databases="">
Thats right. I was just trying to answer the question. I really don’t bother about OP’s DB design
I only use this to import data from Access, Excel files.
Goutam Patra
18-Aug-10 8:00am
View
Try adding a valid Subject
Goutam Patra
14-Aug-10 2:32am
View
VB5/6 is history. If you cannt upgrade your VB version why do you want to upgrade the Windows version. Use Windows 95,98.
Goutam Patra
13-Aug-10 6:44am
View
No just joking....
Goutam Patra
13-Aug-10 6:44am
View
No, I was just joking that time, everybody in here replies in there spare time voluntarily. So don’t expect anyone to do your job here ever.
Goutam Patra
13-Aug-10 2:39am
View
Never post your email address to aviod spam
Goutam Patra
13-Aug-10 2:07am
View
Does it make any sense?
Goutam Patra
11-Aug-10 1:37am
View
You are so lazy even you can’t put some effort to explain your question.
Goutam Patra
11-Aug-10 1:30am
View
OK, I overlooked the situation. Its because you are using the same list for the both combobox.
Goutam Patra
10-Aug-10 7:33am
View
It would be better if you change your user name. Remove your mail address.
Goutam Patra
9-Aug-10 7:59am
View
Edited for Code block and link
Goutam Patra
6-Aug-10 7:53am
View
Its better you read some books on crystal report and google for "crystal report for beginner"
Goutam Patra
22-Jul-10 3:59am
View
Its just a error of missing Field. Type the fieldnames correctly.
Goutam Patra
21-Jul-10 7:27am
View
Good, then go for it
Goutam Patra
19-Jul-10 8:13am
View
Is there a MyEFAdapter.TLB file in your Debug Folder
Then You need to register it also
You can do it manually using
REGASM /unregister <dllname> /tlb <tlbname> in the command prompt
REGASM /register <dllname> /tlb <tlbname> in the command prompt
And then you can add referrence to your VB6 Project of that TLB file.
Hope this will help
Goutam Patra
8-Jul-10 1:59am
View
Is all columns have identical values? If so then you cant.
Goutam Patra
3-Jul-10 2:18am
View
Next time Add comment to reply a specific answer instead of adding a new answer.
Goutam Patra
3-Jul-10 2:09am
View
Is your Schemes field contains "AG015#AX004#BB037"
If so then it will not work this way
Do it this way
Declare @Qry VARCHAR(1000)
Declare @Cond VARCHAR(1000)
SET @Cond = (SELECT '''' + replace(cast(Schemes as varchar(1000)),'#',''',''') + '''' FROM JM_DSS_Sets WHERE SetName = 'Institutional')
SET @Qry = '' +
'select shortname from scheme_info where sch_code in (' +
@Cond +
') Order by shortname'
exec (@Qry )
Goutam Patra
1-Jul-10 7:02am
View
Clarify with more detail or put some code and the exact problem (like How you are printing and what layout). It should be the problem in your code. Same code does not give different output
Goutam Patra
30-Jun-10 9:33am
View
Nuts, Its in the Strings Class
Public Function Chr(ByVal CharCode As Integer) As Char
Member of: Microsoft.VisualBasic.Strings
Summary:
Returns the character associated with the specified character code.
Parameters:
CharCode: Required. An Integer expression representing the code point, or character code, for the character. If CharCode is outside the valid range, an System.ArgumentException error occurs. The valid range for Chr is 0 through 255, and the valid range for ChrW is -32768 through 65535.
Return Values:
Returns the character associated with the specified character code.
Find the same and reply
Goutam Patra
29-Jun-10 3:27am
View
No you dont need to purchase SQL Server lic cause it has been already purchased by your space provider
Goutam Patra
14-Jun-10 7:54am
View
There are only 2 things you need to ckeck
1. Have you created the Report using the XML File as data source instead of setting it directly from server.
2. The name of the data set should be exactly the same specified in XSD file
<xs:element name="ACCLIST">
Data set name should be changed after feching data
ds.Tables(0).TableName = "ACCLIST"
If you did those 2 things there should not be any error.
It seems you created the report(RPT fle) setting database object directly.
Goutam Patra
14-Jun-10 4:46am
View
Check in you server machines Task manager. There must be a Excel.Exe in your application tab.
Alernatively try
Dim ExcelApp As Object
ExcelApp = createobject("Excel.Application")
ExcelWorkbook = ExcelApp.Workbooks.Add();
and let me know
Goutam Patra
14-Jun-10 4:40am
View
I did not understand your purpose of the while loop.
If i am not mistaking you are fetching data in a datareader object and copy it into a Dataset. Why dont you just fetch the data in a dataset may be like
Public Function FetchData(ByVal V_QRY As String) As DataSet
Dim oCon As OracleConnection
Dim ds As New DataSet
Try
Dim cmdData As New OracleCommand(V_QRY)
cmdData.CommandType = CommandType.Text
oCon = New OracleConnection(ConString)
oCon.Open()
cmdData.Connection = oCon
cmdData.ExecuteNonQuery()
Dim da As OracleDataAdapter = New OracleDataAdapter(cmdData)
da.SelectCommand = cmdData
da.Fill(ds)
da.Dispose()
cmdData.Dispose()
oCon.Dispose()
Return ds
Catch ex As Exception
Return AddError(ex.Source, 0, ex.Message)
End Try
Return ds
End Function
You can try it once
Goutam Patra
12-Jun-10 7:56am
View
He has the problem to set diff db source in crystal report. In this Solution he dont need to worry about the diff data sorce for crystal report. He has to fetch the data in his main program only using diff data source. That he can control in his .Net code. Crystal report will work with pre-fetched data only. Thats how it will help him. i hope this will explain how it will help.
Goutam Patra
17-May-10 8:07am
View
Nope not at all
Show More