15,921,156 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 Member 11621437 (Top 7 by date)
Member 11621437
21-Apr-15 2:47am
View
I'll try to use the SQLServer "Convert" function
Member 11621437
21-Apr-15 2:39am
View
This works fine when directly executed in SQLServerManager, but always not from my VB.Net App. But I think your solution is the right way to resolve my problem. I my VB.Net Code, the line when the SQLAdapter fill the DataTable throws an exception for 'Invalid Date Format'. I have the local culture set to French in VB.Net an set to English in SQLServer. That's why I first try to give the dates to SQLServer only in numeric format
Member 11621437
20-Apr-15 8:51am
View
And, like I'vealready said, no query works when CommandType is set to "StoredProcedure"
Member 11621437
20-Apr-15 8:50am
View
Value of the query is :
<pre lang="SQL">
exec dbo.[DocumentFiltresOptime] N'Doc.TypeDocument in (2) and (Doc.DateCreation > ''2015/04/09'')';
</pre>
The SQL stored procedure accept as argument a filter as a nvarchar(256)
The filter is : N'Doc.TypeDocument in (2) and (Doc.DateCreation > ''2015/04/09'')'
The problem appears only when I use dates in the filter, never when I use simple strings
Member 11621437
20-Apr-15 8:49am
View
It doesn't work at all when I set the CommandType to StoredProcedure
Member 11621437
20-Apr-15 8:14am
View
No.
Is it absolutely essential ?
Member 11621437
20-Apr-15 7:46am
View
Value of the query is :
Hide Copy Code
exec dbo.[DocumentFiltresOptime] N'Doc.TypeDocument in (2) and (Doc.DateCreation > ''2015/04/09'')';
The SQL stored procedure accept as argument a filter as a nvarchar(256)
The filter is : N'Doc.TypeDocument in (2) and (Doc.DateCreation > ''2015/04/09'')'
The problem appears only when I use dates in the filter, never when I use simple strings
Show More