@Amy I've done an updater for the companies program but they requested me an addition 4 DLLS to comunicate with the data base, and in one of the I need to parse the sql commands
@Amy thre is something called Tsql120 but it doesnt do it directly and I would have to check for all differente clauses like a huge switch case to see if it's a WHERE or an ORDER BY
they suggested me to read the file line by line and create flags for when i entered a comments an left a comment, but reading line by line.... I dont think is the best solution for this, not even remotly
@SteveG [pleb](http://pleb.urbanup.com/500218) Actually defined as a member of a despised social class, a commoner, a member of the plebs of ancient Rome. Also low-born, undisinguished, vulgar, and my personal favourite: vulgar-looking.
Other words with similar meaning: Scrut, Townie, Kappa-Slapper, Rude-Boi, Scum, Greb, Scav, &c.
@SteveG Kappa Slapper Female equivalent of the Nike Pikey. Found all over the British Isles usually congregating in large groups at bus stops and parks. Dresses in sportswear (not just Kappa) drinks cheap cider or supermarket vodka. Constantly smoking fags. Chav scum.
var cutoff = DateTime.Now.AddDays(2);
var allOffers = AppState.CurrentMemberSelectedOffersAll.AsEnumerable();
var endDate = allOffers.Select(x => x.EndDate).ToList();
var offersToShow = allOffers.Where(!(endDate < cutoff)).ToList();
@TomW that it was manually written XD I cant imagine what's in there. I just need to exclude the comments /**/ and -- even if they are in the middle of the statement
@Darth_Wardy they handed me a document with sql commands divided by "/" they asked me to parse it, ignoring the comments such as /**/ and -- and than send the array of commands to another DLL to execute them
@Mr.Toxy but SQL statements can be over multiple lines. Any given line is quite likely not to be a valid statement, so what he said doesn't make any sense
Can I use the eventhandler FileSystemWatcher safely on a FTP server? IE will the changed event be able to check if the files on the FTP server are more recent than the local files? (Sorry if my explanation is bad. I'm still learning C#)
@Darth_WardyI want to grab all offers that are not yet expired OR if they are expired, still grab them if they're expired less than 2 days since their expired date