1. Command to Restore Database form Bak File.
RESTORE DATABASE [MyDB] FROM DISK = N'D:\Backup\DBBackup\ MyDB .bak' WITH FILE = 1, NOUNLOAD, REPLACE, STATS = 10
GO
2. Thank for Reading this Blog.
our new blog site : http://blog.hintechnology.com
Split Example in C#
using System; public class SplitExample { public void SplitExample() { string words = "This is split example. Testing User in SharePoint 2010 "+ "user with Domain\\username "; string [] split = words.Split(new Char [] {' ', ',', '.', ':', '\t' }); foreach (string s in split) { if (s.Trim() != "") Response.Write(s); } } } // This will display following output:// This// is// split // example// Testing// User// in// SharePoint// 2010// user// with// Domain// username
Thank you for Reading This Posts.