-- General SQL Server database recovery steps after doubt-- 1. Recovery steps:-- A. Back up the smlog_log.ldf file to another directory;-- B. Rename the smlog_log.ldf file in the source directory to smlog_log_bak.ldf;-- C. Execute the following
Add the same columns to each table in the database, for example, "Creation Time"
If each table is modified, database operations on hundreds of tables are cumbersome.
In a more efficient way, we can use sp_msforeachtable of SQL Server to
Requirements:1. The starting point of the discussion is not the technical research, but the reasons for choice.2 Based on ASP. NETQuestions:In a pattern like MVC or enterprise architecture, taking petshop provided by MS as an example, SQL databases
Author: Zheng Zuo
Date: 2006-9-30
Paging of database data on the UI is a common problem. It is easy to find various "General Stored Procedures" on the Internet"CodeIn addition, some custom query conditions make it easy to use. I plan to use this
Windows Vista Enterprise Edition, Ultimate Edition, or business edition must be used.
You can install any of the following SQL Server 2005 versions: Developer Edition, Standard Edition, workgroup edition, evaluation edition, or express edition
Table structure. The data is as follows:ID value
--
---------
1
AA
1
Bb
2
Aaa
2
Bbb
2
CCC Expected results:IDValues-----------------1AA, BB2Aaa, BBB, CCCThat is:Group ByID, calculate the sum of values (string addition) 1
(Ref: http://weblogs.asp.net/achang/archive/2004/04/15/113866.aspx)
Recently, in our consideration to make the production server environment more secure, one of the things we looked into was securing the database connection information between the
SQL Server storage-level data for unlimited Classification
Because the data stored in the database is stored in a plane, most of the forums and otherProgramIt uses recursion to display hierarchical data. If the classification level is very deep,
For example, if you limit the Log Size of a database to 500 mb, when the database uses up MB of space, logs will be recorded every time the database is connected.
The log content is as follows:
2008-07-25 09:50:01. 23 spid104 error: 9002,
1. Insert data
SQL provides the INSERT command in the form of 4 and the select/into command as the main method to insert data. The INSERT command is in the following format:
1> insert/values: Insert a row of data, which is usually used to insert
the list of styles that can be applied are:
SQL style id
SQL style
example
0 or 100
Mon dd yyyy hh: miam (or pm)
Jan 15 2008 pm
101
Mm/DD/yy
01/15/2008
102
YY. Mm. dd
Recently, when I want to connect another computer to my database in the LAN, the following error always occurs:
Title: connect to the server------------------------------
Cannot connect to sjq-PC.
------------------------------Other
Create an image storage database table in SQL Server. imagedata column is the binary data storage field of the image, and imagecontenttype column is the record field of the image file type, imagedescription column is the description field of the
I. Insert trigger ----------------
Create trigger tr_commissioninfo_insert on commission_info _For insertAsBeginDeclare @ commissionid varchar (20), @ date datetimeSet @ commissionid = (select ID _ from inserted)Set @ date = getdate ()Insert into
Today, we will start with a basic article on the database.ArticleBecause I recently met several SQL developer jobs, I took this opportunity to pick up everything I learned from my school. All right, let's get started.
First, what is view used?
In the past, the user's system was well used and suddenly said that the login homepage was visible, but he could not enter the system.
The SQL Server cannot be accessed, and the user name and password have not been changed.
Open the SQL Server
Software English name isqlwebChinese software name web edition SQL Server ManagerSoftware Version V1.0ASP. NET 2.0Software author carbon elementAuthor QQ 191458000/Files/zhouyou96/isqlweb.zip
This software is a tool used to manage SQL server. It
SQL Server basic knowledge (strongly recommended)
SQL-Structured Query Language
-- (Enable SQL Service: Net start MSSQLServer)
-- (Enter the 'sqlwb 'command in the command line to open the SQL manager)
-- (If you want to execute one of
SQL is different from other
Programming Language Processing is the most obvious feature
Code . In programming languages with large numbers, the code is processed in the encoding order, but in SQL, the first clause to be processed is the from
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.