Uploaded August 2012 | Updated September 2026, 2 weeks ago
For more videos on technology, visit Techytube.com
By Jayanth@techytube, techytube.com/author/jayanth-kurup
In this second part of the video series we look at how to restore the backup taken in the first video. We cover some simple concepts on when to use which option of the restore operation and how the restore operation works. The video shows how to restore a full database backup taken in Simple recovery mode and explains the process that goes along with it. Most DBAs will see themselves performing this operation frequently as part of a database migration process however the same operations may also be relevant when performing a disaster recovery as well.
The video is aimed at the novice DBA and will get more and more detailed as we progress through the series. The next series in the video will cover how to take differential backups and restore them. Each video will build on top of previous videos to comprehensively cover the backup and restore options available within MS SQL Server.
For more videos on technology, visit Techytube.com
By Jayanth@techytube, techytube.com/author/jayanth-kurup
In this second part of the video series we look at how to restore the backup taken in the first video. We cover some simple concepts on when to use which option of the restore operation and how the restore operation works. The video shows how to restore a full database backup taken in Simple recovery mode and explains the process that goes along with it. Most DBAs will see themselves performing this operation frequently as part of a database migration process however the same operations may also be relevant when performing a disaster recovery as well.
The video is aimed at the novice DBA and will get more and more detailed as we progress through the series. The next series in the video will cover how to take differential backups and restore them. Each video will build on top of previous videos to comprehensively cover the backup and restore options available within MS SQL Server.






![Reading and writing to files in Objective-C
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
In Objective-C we can easily read and write text files by using the NSString class methods, and the way we do that is as follows:
NSString *fileContent = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
where url is the location of our actual file.
NSUTF8StringEncoding parameter is an Enum values specified by the system and it is widely used for .txt files.
To write strings/text to files we use the following syntax:
[newFileContent writeToURL:
url atomically:YES encoding:NSUTF8StringEncoding error:nil];
where newFileContent is an object of NSString class, atomically:YES means that the system will first create a temporary file, and if everything executes successfully, it will rename that to the file in our url. Reading and writing to files in Objective-C](https://i.ytimg.com/vi/XUHDYwdwX08/mqdefault.jpg)

![Arrays in Objective-C
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
As Objective-C is a super-set of C, we can use the C-style of declaring and using arrays.
The syntax for declaring an using an array in this way is:
int firstArray[5] = { 1, 2, 3, 4, 5 };
NSLog(@The first element is: %d, firstArray[0]);
The Objective-C of declaring, initializing and using arrays is as follows:
NSArray *secondArray = [NSArray arrayWithObjects:
[NSNumber numberWithInt:1],
[NSNumber numberWithInt:2],
[NSNumber numberWithInt:3],
[NSNumber numberWithInt:4],
[NSNumber numberWithInt:5],
nil];
NSLog(@The first element is: %d, [secondArray[0] intValue]);
Arrays in Objective-C are zero-index based, that means the first element will have the index zero, but not one.
The last element in an array should always be nil.
In the example above weve made an immutable array. There is also the mutable version, which is represented by the NSMutableArray class.
Arrays in Objective-C may contain elements of different types, that means we can store a NSNumber object, and a NSString object in the same array, for example. Arrays in Objective-C](https://i.ytimg.com/vi/YoXmVg30A-U/mqdefault.jpg)

