Select sysobjects. Name as [Table], sysproperties. [value] As table description,
Syscolumns. Name as field, properties. [value] As field description, policypes. Name as type,
Syscolumns. length, isnull (columnproperty (syscolumns. ID, syscolumns.
This SQL statement invalidates the Foreign keys of all tables in the current database. Note that it is not deleted. In addition, it is double quotation marks, not single quotation marks
Exec sp_msforeachtable "alter table? Nocheck constraint all"
I got an error message when I try to connect SQL Server 2005 Analysis Service:
Cannot connect to ericz \ sqldev.------------------------------Additional information:A connection cannot be made to redirector. Ensure that 'SQL browser' service is
Declare @ chrname varchar (30)Declare @ chryhm varchar (30)
Declare dw_only1 cursor for -- set the cursor to retrieve the record set for operationSelect chrname, chryhm from gzry where chrzw> = 5 order by chrzw DESC, intpxh -- select the position
SELECT Table name = Case When. colorder = 1 Then D. name Else ''end, table description = Case When. colorder = 1 Then isnull (F. value, '') Else'' End, FIELD No. =. colorder, field name =. name, field description = isnull (G. [value], ''), id = Case
Functions of system tables in SQL Server
Sysaltfiles: files stored in the database in the master database
Syscharsets primary database character set and sorting order
Sysconfigures master database configuration options
Current configuration
/* -- Change the password *//*--Exec sp_password null, 'AA', sa -- set the SA password to AAA regardless of the old password-- Check whether a password is correctDeclare @ A varchar (20)Set @ A = 'aaa'Select pwdcompare (@ A, password, Case xstatus &
1. display the first day of the month
SELECT DATEADD(mm,DATEDIFF(mm,0,getdate()),0)
select convert(datetime,convert(varchar(8),getdate(),
120)+'01',120)
The SQL Server Agent is a task scheduler and alarm manager. In actual applications and environments, you can define periodic activities as a task, with the help of the SQL Server Agent, you can use the SQL Server Agent to automatically run SQL
Does SQL Server regularly execute SQL statements to update databases?I have encountered such a problem, for example.When a user registers for a website, the user's registration date is recorded in the database table, and the table also has a field
1. About the inability to restore the xxx Database
Create two files XXX. MDF, XXX. LDF, and specify
2. SQL Sever restores XXX. MDF, XXX. LDF, which is attached by the database.
3. Use the COM component to export data to excel:
To use excel in C #,
The tadoconnection and tadostoreproc components should be used to execute the SQL Server Remote Storage Process in BCB. The tadoconnection component serves as the Connection database, and the tadostoreproc component serves as the running storage
You can determine what version SQL Server is running by running
Select @@version
@ Version is a system level variable that holds the current version. On my computer this returns
SQL Server Versions
@ Version
SQL Server Version
Create an index
Suppose you want to find a sentence in this book. You can search one page by one, but it takes a lot of time. By using the index of this book, you can quickly find the topic you want to search.
The index of a table is very similar to
The basic objects of SQL mainly include constants, delimiters, and reserved keywords.1. ConstantsA constant is a hexadecimal or numeric constant that contains text and numbers. A String constant contains one or more characters in the single
When a database is used, it will increase log files, degrade database performance, and occupy a large amount of disk space. All SQL Server databases have log files, which record users' operations on Database modifications. You can clear database
Sort out the basic content related to SQL Server Memory and AWE.
1. Basic concepts of SQL Server MemoryThere are several important terms involved in SQL Server Memory:
Buffer Pool (BPool)SQL Server uses several scattered address spaces for internal
In fact, we already have a simple data analysis system, but it was previously done by people who did not use the sqlserver2005 BI platform, but directly wrote the winform program. The original data extraction is an excel file provided by the main
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.