what does this return?
DateTime.TryParseExact(stringArray[columnNum], "yyyy/MM/dd", dateTimeFormatterProvider, DateTimeStyles.None, out date) when the value is 1999/02/23?
false
why? because its not a standard format?
the answer : use CultureInfo.InvariantCulture
Thursday, October 25, 2012
Monday, October 22, 2012
Warnings in SSIS
apparently fail a package in run time, as opposed to , for e.g. , management studio which just shows a warning
Wednesday, October 17, 2012
DeletedRowInaccessibleException & linq
I was receiving this even though in the where clause I excluded deleted rows
i had to do this
i had to do this
//to
avoid DeletedRowInaccessibleException errors AcceptChanges
blah.AcceptChanges();
submitdisabledcontrols
submitdisabledcontrols="true" in the form tag will not help for when the server disables the control
Tuesday, October 16, 2012
simple c# function for stripping non-numeric
public static string
stripNonNumeric(string str)
{
Regex
digitsOnly = new Regex(@"[^\d]");
return
digitsOnly.Replace(str, "");
}
Great idea for builds
keep a separate workspace for builds and get the latest :this way you wont create a build from code not checked in.
Monday, October 15, 2012
Using Linq with datatables
you need a reference to datasetextensions.
the interesting thing was that was enough to bring up "where" and "order by"clauses but not group by - for that I needed a using system.linq
the interesting thing was that was enough to bring up "where" and "order by"clauses but not group by - for that I needed a using system.linq
Subscribe to:
Comments (Atom)