select col.name as 'ColumName',typ.name as 'DataType' from sys.columns col left join sys.types typ on col.system_type_id=typ.system_type_id where object_id=object_id('login')
That will show you the result as below:
Programming Tips and Tricks - Daily coding tips and tricks regarding C#, .NET, ASP.NET, SQL
select col.name as 'ColumName',typ.name as 'DataType' from sys.columns col left join sys.types typ on col.system_type_id=typ.system_type_id where object_id=object_id('login')
XDocument document = XDocument.Parse(response, LoadOptions.None); var query = from e in document.Root.Descendants("status") select new UserStatus { UserName = e.Element("user").Element("name").Value, ProfileImage = e.Element("user").Element("profile_image_url").Value, Status = HttpUtility.HtmlDecode(e.Element("text").Value), StatusDate = (e.Element("created_at").Value.ParseDateTime()) };
public static class StringExtensions { public static DateTime ParseDateTime(this string date) { string dayOfWeek = date.Substring(0, 3).Trim(); string month = date.Substring(4, 3).Trim(); string dayInMonth = date.Substring(8, 2).Trim(); string time = date.Substring(11, 9).Trim(); string offset = date.Substring(20, 5).Trim(); string year = date.Substring(25, 5).Trim(); string dateTime = string.Format("{0}-{1}-{2} {3}", dayInMonth, month, year, time); DateTime ret = DateTime.Parse(dateTime); return ret; } }