Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/sgreimer/stevenreimer.com/includes/utilities/library.php on line 660

Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/sgreimer/stevenreimer.com/includes/Page.class.php on line 574
StevenReimer.com :: Home

Here's a tip for copying a database in SQL Server 2008 (maybe other versions) via the Copy Database wizard.

When I initially tried the wizard it failed with Message: Access to the path 'E:DataMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLDATANEWDATABASENAME.mdf' is denied.

In this case the NETWORK SERVICE was not able to create the new MDF file. I had to do add this user with FULL CONTROL to the MSSQLDATA directory and the wizard ran with no complications.

  1. Navigate to data folder
  2. Right click -> Properties
  3. Click the Security tab
  4. Click the Edit button to change permissions
  5. Click the Add button to add a new group or user
  6. Search for "NETWORK SERVICE" and click Add
  7. Click the Full Control checkbox for the newly added user

In case you're trying to find the wizard, right click the database, pick tasks, then Copy Database.

I want to switch accounts on my Galaxy Note 10.1, so my wife can use it on a trip she's taking, but I want to re-install the same apps. Since it's not rooted at the moment, I have to reset to factory defaults to switch Google accounts which would erase everything I have installed

In order to restore my installed apps and data after resetting, I'm using ADB (Android Debug Bridge) to backup my device. The backup command looks like this: adb backup -apk -shared -all -f galaxynote.ab For this particular device, if I didn't enter a password it would create an empty backup file.

Once this is done, I can reset the tablet and then run: adb restore galaxynote.ab And my apps are back but using a different Google account.

My plan is to eventually flash the Note 10.1 with Android 4.2 so we can have multi-users but that will have to wait for another day.

Debian Static IP
02 January 2013

I am working with a small debian linux server and was trying to set eth0 to a static IP address but it was getting reset after boot. I turns out, there's a daemon called ifplugd that automatically configures specified interfaces in which eth0 was specified.

To resolve this, remove all references to the interface from /etc/default/ifplugd

Quick Trip
28 June 2012

Tomorrow Abby and I are making the drive to Manitoba. Julene and Joel are staying back since Julene isn't up for travelling right now. Abby is really good at entertaining herself, plus, she can watch movies while driving - not me. She's excited to eat at a McDonalds, I'll have to find one for lunch and/or supper.

It has been a long time since I've done all the driving myself. But since we'll only be driving during the day it should be ok.