Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
mrtupperware10-Aug-09 6:08
mrtupperware10-Aug-09 6:08 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
Luc Pattyn10-Aug-09 6:24
sitebuilderLuc Pattyn10-Aug-09 6:24 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
mrtupperware10-Aug-09 6:39
mrtupperware10-Aug-09 6:39 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
Luc Pattyn10-Aug-09 6:40
sitebuilderLuc Pattyn10-Aug-09 6:40 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
mrtupperware10-Aug-09 6:48
mrtupperware10-Aug-09 6:48 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
Luc Pattyn10-Aug-09 6:54
sitebuilderLuc Pattyn10-Aug-09 6:54 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
mrtupperware10-Aug-09 7:06
mrtupperware10-Aug-09 7:06 
GeneralRe: Deleting a Database Record when DeletedDate is XX Days Old Pin
Gideon Engelberth10-Aug-09 10:01
Gideon Engelberth10-Aug-09 10:01 
The comment Luc is trying to make is that "stuff" & date.now.date & "more stuff" will call the default ToString method of the Date object returned by Date.Now. More than likely, the string output by the default is confusing the database engine because it is expecting a different order. You should look into the overloads of ToString that take an format string argument and determine the format expected by the database.

Alternatively, you could use a parameterized query. I'm not big on the syntax, but it believe it would be something like 'DELETE your stuff WHERE DateToCompare < @date'. The actual syntax varies from database to database. Then you could use the OdbcCommand (or SqlCommand, or whichever version applies to your database) along with the Parameter class to go with your command. The OdbcParameter MSDN page has a good example of this.
GeneralThe ANSWER - Deleting a Database Record when DeletedDate is XX Days Old Pin
mrtupperware12-Aug-09 10:21
mrtupperware12-Aug-09 10:21 
QuestionAuto Increasing VARCHAR data type column in SQL SERVER 2005 Pin
Dambod10-Aug-09 2:59
Dambod10-Aug-09 2:59 
AnswerRe: Auto Increasing VARCHAR data type column in SQL SERVER 2005 Pin
Luc Pattyn10-Aug-09 3:32
sitebuilderLuc Pattyn10-Aug-09 3:32 
GeneralRe: Auto Increasing VARCHAR data type column in SQL SERVER 2005 Pin
Dambod10-Aug-09 3:56
Dambod10-Aug-09 3:56 
QuestionDependency for MSchrt20.ocx in VB.NET Pin
Nanda_MR10-Aug-09 1:30
Nanda_MR10-Aug-09 1:30 
AnswerRe: Dependency for MSchrt20.ocx in VB.NET Pin
Dave Kreskowiak10-Aug-09 4:18
mveDave Kreskowiak10-Aug-09 4:18 
QuestionHow to Get Current Login User Name Pin
Anubhava Dimri10-Aug-09 0:02
Anubhava Dimri10-Aug-09 0:02 
AnswerRe: How to Get Current Login User Name Pin
Luc Pattyn10-Aug-09 1:05
sitebuilderLuc Pattyn10-Aug-09 1:05 
GeneralRe: How to Get Current Login User Name Pin
Anubhava Dimri10-Aug-09 2:07
Anubhava Dimri10-Aug-09 2:07 
GeneralRe: How to Get Current Login User Name Pin
Dave Kreskowiak10-Aug-09 4:07
mveDave Kreskowiak10-Aug-09 4:07 
GeneralRe: How to Get Current Login User Name Pin
Anubhava Dimri10-Aug-09 18:03
Anubhava Dimri10-Aug-09 18:03 
GeneralRe: How to Get Current Login User Name Pin
Dave Kreskowiak10-Aug-09 18:25
mveDave Kreskowiak10-Aug-09 18:25 
GeneralRe: How to Get Current Login User Name Pin
Anubhava Dimri10-Aug-09 18:29
Anubhava Dimri10-Aug-09 18:29 
AnswerRe: How to Get Current Login User Name Pin
Muhammad Mazhar10-Aug-09 1:29
Muhammad Mazhar10-Aug-09 1:29 
GeneralRe: How to Get Current Login User Name Pin
Anubhava Dimri10-Aug-09 2:09
Anubhava Dimri10-Aug-09 2:09 
Questioncode for visual basic 6.0 Pin
Asad Saeed Khan9-Aug-09 19:44
Asad Saeed Khan9-Aug-09 19:44 
AnswerRe: code for visual basic 6.0 Pin
Vimalsoft(Pty) Ltd9-Aug-09 22:18
professionalVimalsoft(Pty) Ltd9-Aug-09 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.