Detailed description of SQL Server database status and file status, SQL Server
Database status (database states)
Query the current status of the database:
1. query the status of all databases by using the state_desc column in the sys. databases directory View
user mastergoselect state_desc ,[name] from sys.databasesgo
Php supports connection to the SQL server database and SQL server
1. Software Configuration
Win7 64 + wampserver2.2d-x32 + SQL Server 2008 R2 database. The php version in wamp2.2 is 5.3.10.
The Php environment can also be changed
Common Data Types in SQL Server: SQL Server Data Types
To http://www.cnblogs.com/andy_tigger/archive/2011/08/21/2147745.html
Bit integerThe bit data type is an integer, and its value can only be 0, 1, or null. This data type is used to store data with only two possible values, such as Yes, No, True, False, On, or Off.
SQL Server concurrent processing, update solution discussion, SQL Server
Preface
In this section, we will talk about the most common situation of concurrency, that is, update. If no row record exists in concurrency, insert it. At this time, it is very easy to insert duplicate keys, this article describes the seven solu
SQL Server row-to-column parsing, SQL Server
For more information, see the code:
/* SELECT
The above is all the content of this article. I hope this article will help you in your study or work. I also hope to provide more support to the customer's home!
SQL Server enables or disables auto-growth, SQL Server
When adding a row to a database table, you need to insert a specific value for the auto-increment column. This function is very useful. For example, the table structure is as follows:
Id | text
1 |
2 | B
4 | d
The id column is a self-contained column. If we w
Example of recursive calling of stored procedures in SQL Server: SQL Server Stored Procedure
Recursion refers to the situation where a code snippet calls itself. The danger lies in how to prevent it from repeatedly calling itself if it calls itself once. That is to say, recursive tests are provided to ensure that exce
SQL Server date function, SQL Server date
Current System Date and Time
Select getdate ()
14:52:27. 123Extract data from date
Day (), month (), year ()
Select getdate ();-14:52:27. 123Select YEAR (getdate ();-2015Select MONTH (getdate ();-6Select day (getdate ();-18
Date Format ConversionCONVERT
Select convert (
Common SQL Server statements and SQL Server statements
Select * into A -- automatically generate Table A. The structure data of Table A is the same as that of Table B.From BInsert into A -- A must be created in advanceSelect * from B
Insert into A (Field 1, Field 2 ,...)
Values
(Value 1, value 2 ,...)
Inse
SQL Server loop statement insert, SQL Server loop statement
There is a table tt
Description:
Q (PK, int, not null) w (nchar (10), not null) e (int, not null) r (int, not null) t (int, not null) y (int, not null) u (int, not null) I (int, not null) o (int, not null) p (int, not null)
The circular insert statement
SQL Server checks whether tasks are not submitted, stops the progress, and removes the table deadlock. the SQL Server process is deadlocked.
If there are uncommitted tasks in the data warehouse, the related tables will remain in the dead warehouse, affects the query of other processes (unless with (nolock) is used in
@filename =replace (
@filename, ' $ ', ') set @filename =replace (@filename, ' ', ')--filter These special characters, replace the new file name Set @newFilePath =dbo. Getdirectorypath (@filePath) + ' \ ' + @filename--New path name ( Gets the file directory dbo according to the path. Getdirectorypath method --=============================================
--Author: Paul Griffin
--Create Date: January -
Description: Returns The path without the file name
SQL Server database table writing operations (database creation, table creation, and statement modification), SQL Server database creation
Learning points:
SQL-SQL statements. The head should have courage, and the head should have
Comparison of JDBC connection to SQL server and ADO. NET connection to SQL Server1. JDBC connection to SQL server1) Currently, many java drivers can drive the connection to SQL servernet.There are two mainstream sourceforge. jtds. jdbc. Driver and JDBC.2) the code is as foll
SQL Server quickly generates SQL addition, deletion, modification, and query statements, and SQL addition and DeletionAre you still coding to generate SQL statements? Are you still speechless for SQL statements that are sloppy? Ar
Yesterday's SQL Server query performance optimization-index creation principle (I) mainly introduced the principle. today are some of the main principles and checks the created indexes.
Iii. indexing principles
In general, building indexes depends on the data usage scenarios. In other words, which SQL statements are commonly used to access data? Are these stateme
1. View the version of the database
SELECT @ @version
Several common SQL Server patched version numbers:
8.00.194 Microsoft SQL Server 2000
8.00.384 Microsoft SQL Server SP1
8.00.532 Microsoft
SQL Server trigger and SQL Server triggerSQL Server triggers
A trigger is a special type of stored procedure, which is different from the stored procedure we introduced earlier. A trigger is triggered by an event and automatically called for execution. The stored procedure c
Tags: win enter ips image display nbsp Account login Check1) First, enter the server with Windows authentication.2) Next Find security, click Enter, locate the login named SA, and then right-click Properties.3) Locate the general in the attribute, then check your account and password, and change the status to Enabled in the State, otherwise the disabled state is not operational.4) Next, click on the server
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.