Hi,
I am extracting data from an operational system in order to maintain a mirror that can be used for reporting.
I have two means of filling this database:
1) A stored procedure which truncates all tables and rebuilds everything from scratch. This takes about an hour and will be run periodically.
2) A stored procedure that updates my database with the previous days activity which will be...
User Profile
Collapse
-
Best way to index a mostly static database
-
binary data in char field
Hi,
I am trying to extract data from a legacy system. For reasons best known to themselves, the developers have stored what looks like binary data in a char(6) field. Within SQL Management Studio the field looks like a line of small squares.
How can I go about displaying this as a hexadecimal string?
(I have attached a screenshot)
Many thanks.... -
Ignore exceptions when parsing XML
Hi,
I am using C# to parse some XML which has been generated by another system.
Have loaded data into an XmlDocument and am then using GetElementsByTa gName and SelectSingleNod e to get the XmlNodes I need.
My problem comes when I try to access an empty xml node like this <Field /> (instead of <Field>Some Data Here</Field>).
When getting the data using xmlnode.SelectS ingleNode("Fiel d").FirstChild. Value... -
Hi,
Have tried using a hashtable as suggested.
Currently looks like this (and seems to work)
Code:Hashtable sessions = new Hashtable(); while (dReader.Read()) { DateTime date = DateTime.Parse(dReader[0].ToString()); sessions[date] = (sessions.ContainsKey(date)) ? (int)sessions[date] + 1 : 1; }
-
-
Counting instances in c# (keeping a tally)
Hi,
I am reading a database which is returning a list of dates. I need to count the instances of each date and store in an array or similar.
I don't know how many dates I will be getting, or how many different ones.
In Perl I would so something like this
for(`getdata`){
$array{$1}++;
}
need something that looks like this:
while (dReader.Read() )
...
No activity results to display
Show More
Leave a comment: