15,914,642 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 shailesh_pujara (Top 13 by date)
shailesh_pujara
4-Nov-14 9:53am
View
Actually I realize final statement is worthless - because I return empty or filled datatable if no exception arise and nothing in case of exception. So final has no impact in the code. Actually code should be
Dim dt as new datatable '' will be empty - nothing
Try
fill table
Catch
Finally
dispose connection, command objects
end try
return dt ( empty in case of no rows return or exception arise)
But this way also, the datatable is empty as cmd.executereader() return no row.
shailesh_pujara
4-Nov-14 9:46am
View
yes - datatable get filled only when datareader.hasrows - I set debug point there and checked - datareader.hasrows = false. In any case if it is success full - datatable return before the final statement hits.
shailesh_pujara
4-Nov-14 6:14am
View
but before going to finally - dr.hasrows is false.
shailesh_pujara
3-Nov-14 23:56pm
View
The code should works as it works in SSMS. But not works at my end. I thought, it might be my mistake at SQL Server - but database correctly collated and the query and even stored procedure call works fine in SSMS. Just it do not works when I do the same thing from ADO.Net.
shailesh_pujara
3-Nov-14 23:52pm
View
in any way result dr.hasrows = false
shailesh_pujara
3-Nov-14 23:51pm
View
Actual password is in encrypted mode only. Just for simplification I have given here the plain text password.
shailesh_pujara
3-Nov-14 23:50pm
View
The parameter should be NVARCHAR as i am using unicode characters.
shailesh_pujara
3-Nov-14 23:49pm
View
The original code is in SP only. For simplification I have mentioned the same in query.
shailesh_pujara
3-Nov-14 23:46pm
View
You are right- c# is case sensitive language - the code was originally in vb.net but C# community is large - the same question with vb.net not yet replied - while i got 3 feedback instantly here. What I have done is just converted the code to C# and asked the question again.
shailesh_pujara
3-Nov-14 23:46pm
View
You are right- c# is case sensitive language - the code was originally in vb.net but C# community is large - the same question with vb.net not yet replied - while i got 3 feedback instantly here. What I have done is just converted the code to C# and asked the question again.
shailesh_pujara
3-Nov-14 23:42pm
View
you are right - parameter version is not working - the original code was in Stored procedure only. for simplification I have given as query.
shailesh_pujara
3-Nov-14 23:41pm
View
parameter version is not working - the original code was in Stored procedure only. for simplification I have given as query.
shailesh_pujara
3-Nov-14 23:41pm
View
you are right - parameter version is not working - the original code was in Stored procedure only. for simplification I have given as query.
Show More