Monday, March 21, 2011

Execute .SQL Script

If you want to execute a sql script without SQL Management Studio, you can use SQLCMD.exe.

"C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\sqlcmd.exe" -i MySQLScript.sql

This allowed me to write a deploy.bat file which creates and fills all my required databases.

Monday, March 14, 2011

Find out Macbook Screen Model

If you have to find out your Macbook (Pro) Screen Model Number (because it is broken and you have to buy a new one on ebay), just enter
ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*
in Terminal.

It will give you something like this:
LTN154BT
Color LCD