Letter from Steve Martin

On June 4, 2010, in Uncategorized, by Jesper Angelo

There’s a reason I love Steve Martin so much

Small Spiceworks Error

On June 3, 2010, in Uncategorized, by Jesper Angelo

I think I’ve found out why the help desk isn’t sending out emails… :-) http://twitpic.com/1tmt6q

Adding SQL server to full disk

On March 31, 2010, in MICROSOFT, SQL 2005, SQL Server, by Jesper Angelo

OK, so you want SQL Server on the box over there with only 587 MB (or whatever) free on the C: drive. The problem is that a full SQL 2005 installation takes up almost 2 GB on the system drive, even if you install all you can on that fresh new 500 GB secondary drive [...]

Fixing MSSQL index in T-SQL

On January 14, 2010, in MICROSOFT, SQL 2005, SQL Server, by Jesper Angelo

Okay, so you have a corrupted index. I know, it never happens in MSSQL, so I guess this is just a proof-of-concept thingie. First let’stake a quick peek at your index, just to make sure this is a complete waste of time: SELECT a.index_id, name, avg_fragmentation_in_percentFROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS aJOIN sys.indexes [...]

SAP B1 – Date Deviates from Permissible Range

On December 9, 2009, in Business One, by Jesper Angelo

End of the year… AH! Okay so you checked and the periods and entering you latest invoices, for instance the one from 12/9-09 with a due date on 1/8-10 should be a piece of cake. But now you get an error: “Date Deviates from Permissible Range [Document Name – Offending Date] [Message 173-11]“. What the…! [...]

PowerShell script to Backup a running DB

On December 3, 2009, in MICROSOFT, SQL 2005, SQL Server, by Jesper Angelo

For accounting, need a script to backup before changing stuff $conn = new-Object System.Data.SqlClient.SqlConnection("Server=nybba0sql;DataBase=Northwind;Integrated Security=SSPI") $conn.Open() | out-null $cmd = new-Object System.Data.SqlClient.SqlCommand("CustOrderHist", $conn) $cmd.CommandType = [System.Data.CommandType]‘StoredProcedure’ # This Parameter Line This will error if Parameters are not accepted by Stored Procedure. $cmd.Parameters.Add("@CustomerID","ANATR") | out-Null $rdr = $cmd.ExecuteReader() While($rdr.Read()){ Write-Host "Product Name: " $rdr['ProductName'] } $conn.Close() [...]

Finding all references to a PONUM in MSSQL

On August 19, 2009, in MICROSOFT, SQL 2005, SQL Server, by Jesper Angelo

First get all xtype ‘U’ (TABLES) in database: USE [database]SELECT * FROM sysobjects WHERE type = ‘U’ ‘P’ = Stored Procedures‘V’ = Views Next select all columns that matches: For a list of TABLES, COLUMNS and TRIGGERS… run this query that took mealmost *5 minutes* to write! SELECT O.[NAME] AS ‘TABLE’, C.[NAME] AS ‘COLUMN’, C.[ID] [...]

build a custom thin client

On August 4, 2009, in Linux, by Jesper Angelo

using : ubuntu minimal boot using: Unetinst using bootable USB Links: https://help.ubuntu.com/community/Installation/FromUSBStick http://www.lifehacker.com.au/2009/05/install-a-minimal-ubuntu-desktop/ https://help.ubuntu.com/community/Installation/MinimalCD http://www.howtogeek.com/howto/linux/create-a-bootable-ubuntu-usb-flash-drive-the-easy-way/ http://sourceforge.net/projects/unetbootin/

Merging several calendars into one

On August 4, 2009, in SharePoint, by Jesper Angelo

Using: SPList Using KWiz Scenario:Several subsites having each their department calendar.One main calendar that includes items from deepartment calendars. Main calendar running several calendars, like KWiz. First setup sub calendars to allow tagging for frontpage calendar:http://stsadm.blogspot.com/2008/11/my-new-powershell-cmdlets-for.html install the extention add a boolean column that indicates if it should be on main calendar.: PS C:\DEVELOP> $list [...]

Tool Tip: WinMerge

On August 3, 2009, in Development Tools nono, by Jesper Angelo

If you, like me, used to copy your files to your Linux server just to get access to a decent Diff utility, despair no more. WinMerge is a must have tool in your belt: http://sourceforge.net/projects/winmerge/ Nicely color coded and it allows [ screens ]