$("#txtDemo").attr("readonly", true);
Tuesday, 17 March 2015
Thursday, 5 March 2015
Select Day from Date in Sql Server
SELECT Day('2015-03-05 23:15:36.710')
Select Month from Date in Sql Server
select MONTH('2015-03-05 23:15:36.710')
-- Result: 3
Select Year from Date in Sql Server
SELECT YEAR('2015-03-05 23:15:36.710')
-- Result: 2015
Monday, 2 March 2015
Drop Down Data Binding in Asp.Net
DataTable data = GetData();
ddrLocationList.DataSource = data;
ddrLocationList.DataTextField = "Name";
ddrLocationList.DataValueField = "ID";
ddrLocationList.DataBind();
Wednesday, 28 January 2015
Get PI value in Sql Server
SELECT PI()
-- Result 3.14159265358979
Monday, 12 May 2014
Round values to N number of Decimal points in sql server
Round (expression , length)
SELECT ROUND(3.1415 , 2) -- 3.14
SELECT ROUND(33.234234234 , 1) -- 33.2
SELECT ROUND(55.6345345 , 0) -- 56
Subscribe to:
Posts (Atom)