web| Backup | recovery | data
The ability to implement tape backup data is difficult in two ways: first, the overall backup and recovery capabilities of the database provided by MS SQL Server do not directly meet the data rolling backups required by
Recently in the forum to see someone asked, how to quickly generate 1 million of the 8-bit repeat number, for this problem, there are several points to note:1. How to generate 8-bit random numbers, the more random the number of generated, the
Usually, you need to get the current date and calculate some other date, for example, your program may need to judge the first or last day of one months. Most of you probably know how to split dates (year, month, day, etc.), and then just use the
If you like native SQL statements, and you like the simplicity of ORM, you'll love the dapper rom. Click to download Dapper advantages:
1,dapper is a lightweight ORM class. Code on a SqlMapper.cs file, compiled on a very small DLL for 40K.
SQL Server Common built-in functions and usage
Select cast (' 2012/02/03 ' as DateTime);
Select CONVERT (varchar, GETDATE (), 120);--Convert to date type
Select Case when ID =1 THEN ' A0 ' ELSE ' TT ' "from Demo1;--case '
Select Len (' SSA
Server
In the actual multi-user concurrent access production environment, we often have to keep the data consistent as much as possible. And among themThe most typical example is that we read the data from the table, check the validation, modify
drag | effects | pages | Show the JavaScript script provided in this article, in conjunction with the Dreamweaver layer and behavior, you can display a beautifully dragged monthly calendar on the page.
The specific production steps are as follows:
1.
This code can format the time 3 days ago, 5 seconds ago, 2 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 The
"//convert a date into a string that tells H ow long ago//That date is ... eg:2 days ago, 3
The development of commonly used, recorded down, provided to the need for reference friends!
--1 at the end of the month.
DECLARE @startdate datetime
Select @startdate =dateadd (Dd,-datepart (Dd,getdate ()) +1,getdate ())
Select SUBSTRING
cookie| Beginners
[Translator Note: Copy the last sample code of this article to a text file, rename the file to homepage.htm format file, run in a browser, this article explains the example code
Brief introduction
===================================
A detailed explanation of the date and time function of PHP date ()Introduces the simple use of the PHP date-time function, which will introduce more functions to enrich our application.
checkdate ($month, $date, $year)
If the value that is
This article gives you a summary of JavaScript format date time of the five common methods, individuals on the fifth personalized output time is more interested, basically as long as the project can use the fifth, recommended to the small partners.
Asp.net|server
With the release of. NET 2.0, Web applications built with ASP.net 2.0来 will be made easier. With ASP.net 2.0 and SQL Server 2005, it will be easier to build a multi-tier architecture Web application than asp.net 1.1. In this article,
A few days ago also encountered a large log file problem, the actual size of the database is 600M, the actual size of the log file is 33M, but the log files occupy a space of 2.8G!!!
Try a variety of ways, Shirnk DATABASE, TRUNCATE LOG file, there
Server|sqlserver in the development of database applications, often encounter problems of processing time, such as query the specified time records. Here are some common questions to combine with some of your own experience and discuss these issues
JS Get page address parameters
The code is as follows:
function Geturlpara (paraname)
{
var surl = location.href;
var sreg = "(?:/ /?| & {1} "+ Paraname +" = ([^&]*)
var re = new RegExp (Sreg, "GI");
Re.exec (sURL);
return regexp.$1;
}
In the use of the process, we often encounter a very large database log, here are two ways to deal with ...
Method One
In general, the contraction of the SQL database does not greatly reduce the size of the database, its primary role is to shrink
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service