Recently, SQL Server 2000 Analysis Services was installed to study the data warehouse. However, after being installed, you cannot browse the multi-dimensional dataset of the sample database. The error message is "no error specified "; then I tried
1. Open the SQL query analyzer (t-SQL)
2. Enter the query statement:
Alter database name Modify file (name = original logical file name, newname = new logical file name)Alter database name Modify file (name = original logical file name, newname =
The Table Partitioning technology introduced by SQL Server 2005 allows you to distribute data to different physical disks to improve the parallel processing performance of these disks to Optimize Query performance.
The SQL Server database table
Only part of the page by UI
If the data volume of a query result is huge, the page is displayed when the data query is required, and only one page is returned each time.
Method 1:The idea is to extract two parts of data based on the page number,
Clustered index,The data stored in the table is stored in the order of indexes. the retrieval efficiency is higher than that of normal indexes, but it has a greater impact on the addition, modification, and deletion of data.
Non-clustered
From SQL Server help document
It helps you optimize the query speed!
RecommendedSp_executesqlInstead of using the execute statement to execute a string. Support Parameter replacement not onlySp_executesqlMore common than execute, and also makeSp_
Execute the following SQL
Declare
@ T
Int
Exec
(
'Set
@ T = 1
'
)
Print
(
@ T
)
The following error is reported!Server: Message 137, Level 15, status 2, Row 1Variables must be declared'@ T'.
RelatedArticleData Replication
Advantages compared with DTS1. Ultra-fast replication2. Incremental replication
Notes during preparation
You can set up a server as the distributor or use the source data server as the distributor.
1. When you set
How can I determine whether an SQL Server table exists? If I need to know whether a table exists in the SQL database, what should I do? The following describes how to determine whether an SQL Server table exists. If you are interested in this, take
In the development of PHPProgramYou can use multiple connection methods to access various databases to obtain the required data. Since PhP5, PDO has included all database interfaces as new things, providing developers with a convenient and fast way
SQL Server tool for writing stored proceduresFunction: creates an update stored procedure for a given table.Syntax: sp_genupdate
Table
Name
>
,
Primary
Key
>
,
Stored
Procedure name
>
Take the northwind database as an
SQL Server tool for writing stored proceduresThe following are the source code of the two stored procedures:/* ===================================================== ======================================Syntax: sp_geninsert
Table
Name
>
,
Such as table
-------------------------------------------------
Table1 | Table2 |
-------------------------------------------------
ID name | ID score |
1 Lee | 1 90 |
2 Zhang | 2 100 |
4 Wang | 3 70 |
------------------------------------------------
ArticleDirectory
Syntax
Example 1
Example 2
Definition and usage
The datediff () function returns the number of days between two dates. Syntax
Datediff (Datepart,Startdate,Enddate)
StartdateAndEnddateA parameter is a valid
Continue with the previous article and SQL Server INDEX OPTIMIZATION practices. This article discusses index coverage-SQL Server mainly uses indexes to query the data you need. When the index contains all the fields you requested to query, SQL
Recursive usage of Database User-Defined Functions
First look
There is such a tree structure table,
For example:
The C18 digital camera is under the C12 digital product category While
C12 digital products are in the C2 IT product category again!
In SQL Server Analysis Service, dimension is a very important concept. Generally, a dimension contains multiple attributes, each of which is an object (such as customer and product). In this way, all possible values are listed for specific
Sample Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> -- Create Test Database Create Database Test Go Use Test Go -- Create test table Create Table Test(ID
The default datetime format of the Chinese version of SQL Server is yyyy-mm-dd Thh: mm: ss. mmm.For example:Select getdate ()11:06:08. 177I sorted out the date format conversion methods that may be frequently used in SQL Server:Example:Select
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.