Monthly Archives: July 2013

quick script for new files

new files for old, new files for old.  But how many are new? $counter = 0 #not necessary especially if i declare counter as [int] get-childitems T:\* -recurse| # the pipe means i don’t need a           … Continue reading

Posted in Uncategorized

powershell blank function

I want to create a function. In powershell. Easy: function NAME { }#end function What name should i use? As a hint, try get-verb name to get a list of ‘approved’ verbs similar to name. Otherwise, use get-name or set-name or … Continue reading

Posted in Uncategorized

SQL Notes: indexes

If you create a table, it is a heap.   If you put an index (non-clustered) on a table, a copy of the contents of some column(s) in the table is created, put into order, and a pointer to the … Continue reading

Posted in Uncategorized

SQL Notes: the scheduler and 4 milliseconds

4 millseconds is how long a thread can occupy a processor in MS SQL Server.  It will be there a shorter time if it completes its operation, or it needs a resource.  Completion is trival – it goes away, or … Continue reading

Posted in Uncategorized

Powershell adminstrators book on Packt

PackT is an interesting place.  It is not quite self-publishing and i am not sure how the publishing model works, but you can find a lot of work that is very specific – maybe too specific to a general publisher, … Continue reading

Posted in Uncategorized

Mongodb

I have had some experience with Mongodb and using it for logging.  Once it is setup (which is trival) and you have gotten the proper drivers (i used a c# driver with powershell), it is easy to post json documents … Continue reading

Posted in Uncategorized