Отправляет email-рассылки с помощью сервиса Sendsay

MS SQL Server

  Все выпуски  

MS SQL Server - дело тонкое...


Информационный Канал Subscribe.Ru


#191<<  #192

СОДЕРЖАНИЕ

1.СОВЕТЫ
1.1.Введение в SQL Server 2000 Analysis Services: Создание первого куба. Часть 5.
2.ССЫЛКИ НА СТАТЬИ
2.1.Статьи на русском языке
2.1.Новые и обновлённые технические статьи Microsoft
2.2.Англоязычные статьи
3.ФОРУМ SQL.RU
3.1.Самые популярные темы недели
3.2.Вопросы остались без ответа

СОВЕТЫ

Введение в SQL Server 2000 Analysis Services: Создание первого куба. Часть 5.

По материалам статьи William Pearson: Introduction to SQL Server 2000 Analysis Services: Creating Our First Cube

Введение в Analysis Manager
Установка базы данных и источника данных
Проектирование куба
Выбор таблицы фактов и мер для куба
Создание многомерного куба: Определение значимых перспектив куба
Создание измерений в схеме звезда: Одна таблица измерений
Создание измерения по схеме - снежинка: Несколько связанных таблиц измерений
Добавление измерений времени

Сохранение разработанной модели куба

Нажмите в Cube Wizard кнопку Next, после чего Вы увидите представленное ниже сообщение (Иллюстрация 33).


Иллюстрация 33.

Поскольку нам нужно посчитать строки для модели куба, нажмите кнопку Yes, чтобы продолжить работу. Следующее сообщение, которое Вы увидите, сообщение об ошибке (Иллюстрация 34), которое неизбежно появится, если была выполнена вся последовательность шагов, которые автор представил в этой статье. Дело в том, что автор как раз и намеривался проиллюстрировать наиболее типичную у новичков ошибку связей при разработке архитектуры куба.


Иллюстрация 34: Сообщение об ошибке.

Проблемы возникают тогда, когда мастер пытается обработать куб и не находит явных связей (одноимённых ключей у двух таблиц) между указанным измерением и таблицей фактов. Тогда он предупреждает о том, что необходимо определить связи вручную, чтобы его работа могла быть продолжена. Мы так и поступим, но вначале давайте сохраним результаты нашей работы.
Для этого, нужно нажать в окне последнего сообщения кнопку OK, после чего мастер откроет диалоговое окно Finish Cube Wizard, которое показано на Иллюстрации 35. Нужно ввести имя куба (для завершения работы мастера и для сохранения созданной нами модели). Сохранение модели куба произойдёт после нажатия кнопки Finish, после чего мы попадём в окно Cube Editor.


Иллюстрация 35: Диалоговое окно Finish Cube Wizard

В окне Cube Editor мы можем добавить отсутствующие связи, о которых нас предупреждало сообщение об ошибках при сохранении куба (см. Иллюстрацию 34). Нам понадобится добавить отсутствующие связи между пока ещё не связанной ни с чем таблицей Region и таблицей фактов sales_fact_1998, которые показаны вместе с остальными на Иллюстрации 36.


Иллюстрация 36: Окно Cube Editor - где мы добавляем необходимые связи

Обычно добавить связи не сложно. Но для этого мы должны иметь в обеих таблицах соответствующие друг другу ключи (тогда это действительно будет просто), чтобы обеспечить необходимую ассоциацию между связываемыми таблицами. Более детальное рассмотрение показывает, что у таблиц sales_fact_1998 и Region нет никаких общих ключей. Поэтому, мы должны будем соорудить некий мостик или, проще говоря, промежуточную таблицу, чтобы поддержать логическую ассоциацию.
Чтобы это сделать, нужно добавить новую таблицу к уже имеющимся, и в этом нам поможет кнопка Insert Table, которая показана на Иллюстрации 37. После её нажатия, появится диалоговое окно Select Tables, которое ранее нам уже встречалось, и в котором мы должны выбрать из базы необходимую нам таблицу Store (или при необходимости создать новую таблицу, нажав кнопку Add).


Иллюстрация 37: Добавление таблиц в куб

Далее, закрываем окно Select Tables, которое показано на Иллюстрации 38 (его можно оставить открытым, если нужно добавить/создать несколько таблиц). После этого мы видим, что рядом с имевшимися таблицами появилась таблица Store (см. Иллюстрацию 39), с помощью которой мы обеспечим связь между sales_fact_1998 и Region (мастер автоматически распознал необходимую связь между Region и Store). Желательно всегда проверять правильность прорисованных мастером связей, но в нашем случае ассоциация region_id конечно же верна.


Иллюстрация 38: Окно Select Tables


Иллюстрация 39: Законченная схема связей с добавленной таблицей Store

В довершении к добавлению промежуточной таблицы, мы должны связать её с таблицей фактов sales_fact_1998. Для этого, нужно определить наличие пары соответствующих ключей (это просто, т.к. обе таблицы содержат поле store_id), потом выделить мышью поле store_id в таблице Store и переместить указатель на поле store_id в таблице sales_fact_1998, нажав на нём левую кнопку мыши, после чего между таблицами будет протянута линия связи. Если Вы случайно свяжете два неправильных поля, просто удалите неверную связь, выделив её нажатием правой кнопки мыши и выбрав пункт Remove из выпадающего меню. После выбора этого пункта, схема вернётся к предыдущему состоянию.
Закончив схему, можно закрыть Cube Editor, выбрав пункт Exit в меню File. Вы получите запрос на сохранение куба после изменений, который нужно подтвердить, нажав кнопку Yes. Следующим шагом будет запрошена опция оптимизации хранилища, с выводом на экран диалогового окна Design Storage. На этом шаге можно просто сохранить результаты работы и возвратиться к процессингу позже, или приступить к выбору оптимального размера куба, что мы и сделаем, нажав кнопку Yes.

[В начало]

ССЫЛКИ НА СТАТЬИ

Статьи на русском языке

Data Mining – подготовка исходных данных
Алексей Арустамов
Методика анализа с использованием механизмов Data Mining-а базируется на различных алгоритмах извлечения закономерностей из исходных данных, результатом работы которых являются модели. Таких алгоритмов довольно много, но, несмотря на их обилие, использование машинного обучения и т.п., они не способны гарантировать качественное решение. Никакой самый изощренный метод сам по себе не даст хороший результат, т.к. критически важным становится вопрос качества исходных данных. Чаще всего именно качество данных является причиной неудачи
Больше гридов хороших и разных!
Андрей Голубовский
Шестой герой рубрики DelphiPlus Кто есть кто - Дмитрий Большаков, разработчик EhLib - бесплатной для СНГ data-aware библиотеки (с одним из лучших DBGrid'ов)
Объектно-ориентированные базы данных: достижения и проблемы
Сиха Багуи
Разработка систем объектно-ориентированных баз данных началась в середине 80-х годов в связи с необходимостью удовлетворения требований приложений, отличных от тех, которые обслуживались и обслуживаются системами реляционных баз данных. Рассмотрим достижения технологии объектно-ориентированных баз данных, а также проблемы, которые сообществу разработчиков еще предстоит решить для того, чтобы технология объектно-ориентированных баз данных смогла получить такое же широкое распространение, как и технология реляционных баз данных
Навстречу системам хранения неструктурированных данных
Леонид Черняк
Со времен клинописи и поныне, делая короткие записи или создавая многотомные эпопеи, люди и не подозревали, что они создают образцы неструктурированных данных. Для того чтобы данные стали структурированными, потребовалось изобрести компьютер
Семейство алгоритмов ARIES
Сергей Кузнецов, Петр Чардин
К сожалению, ситуация с литературой по системам баз данных в нашей стране такова, что многие важные работы не только не переведены на русский язык, но зачастую не существует даже их русскоязычных обзоров
Различные виды начальных условий
Ицик Бен-Ган
Я уже представлял несколько задач, связанных с распознаванием рядов, имеющих определенные взаимосвязи с другими рядами. В реляционной алгебре задачи, рассмотренные мною, содержат реляционное деление. Используя общий сценарий (заказы-содержание заказов), я показал метод поиска как имеющихся заказов, содержащих одинаковые товары, так и нового заказа, вводимого в систему. В примерах этой статьи я снова использую эти сценарии
Новый взгляд на сквозную детализацию
Рас Уитни
Один из наиболее часто задаваемых мне вопросов звучит так: "Как можно использовать PivotTable (сводные таблицы) и PivotChart (сводные диаграммы) в Microsoft Excel?". Эти компоненты позволяют выполнить несложный анализ в Microsoft Excel или в обычном приложении, работают с любыми источниками OLAP или реляционных данных. Во время работы пользователей с OLAP-источниками данных компонент PivotTable обеспечивает стандартные возможности передвижения по (OLAP) данным. OLAP-возможности компонента PivotTable доступны в Microsoft Office XP или Office 2000, которые есть у большинства пользователей. Компонент PivotTable обычно используется разработчиками в простых аналитических приложениях, которые создаются для анализа деловой информации в организациях. Однако многие пользователи, начиная работать с PivotTable в аналитическом приложении, быстро обнаруживают ограничения компонентов: PivotTable не обеспечивает сквозную детализацию (drillthrough) или обратную запись
Выполненение запросов в ADO.NET - II
Александр Игнатьев
В этой статье мы рассмотрим выполнение хранимых процедур. Выполнеие запросов и хранимых процедур с параметрами
Разработка многоуровневых приложений
Михаил Продан
В сетях часто нужен доступ к серверу БД большого количества клиентских приложений на Delphi. Одно из решений - копирование BDE на все клиентские машины и настройка соединений. Но существует и более "культурный" способ - доступ через протокол MIDAS
Использование DataAdapter в ADO.NET
Александр Игнатьев
В этой статье рассмотрена работа с объектом DataAdapter: получение данных и передача изменений в базу данных. Мощь и простота работы с этим объектом просто потрясают. В примерах используется SqlDataAdapter, работа с иными реализациями DataAdapter (такими как OleDbDataAdapter) для других провайдеров совершенно аналогична. В качестве языка выбран C#

[В начало]

Новые и обновлённые технические статьи Microsoft

A Complex Query Is Not Successful on a Server That Has More Than 2 GB of Memory
FIX: "Connection is busy with results for another command" error message occurs when you run a linked server query
FIX: A computer might transmit nonencrypted data when clients use the Multiprotocol Net-Library with the encryption option enabled
FIX: A Cursor with a Large Object Parameter May Cause an Access Violation on CStmtCond::XretExecute
FIX: A DML Operation on a Large Table Can Cause Performance Problems
FIX: A large array of IN clause parameters parses or compiles slower on SQL Server 2000
FIX: A memory leak may occur when you use the sp_OAMethod stored procedure to call a method of a COM object
FIX: A Query That Causes a Hash Bailout May Return Incorrect Results
FIX: A Query That Causes Hash Role Reversal May Return Incorrect Results
FIX: A query that performs join operations between multiple tables may return incorrect results
FIX: A query that references a view that uses UNION operator may return incorrect results
FIX: A Query That Uses a Hash Match with a Residual Predicate Might Return Incorrect Results
FIX: A RESTORE DATABASE WITH RECOVERY Statement Can Fail with Error 9003 or Error 9004
FIX: A scan of each partition table may be performed when you run an UPDATE statement on the partitioning column of a partitioned view
FIX: A Transact-SQL Statement That Is Embedded in the Database Name Runs with System Administrator Permissions
FIX: A UNION ALL View May Not Use Index If Partitions Are Removed at Compile Time
FIX: An Access Violation May Occur When You Run an INSERT Statement in an nText Column
FIX: An Access Violation May Occur When You Run DBCC DBREINDEX on a Table That Has Hypothetical Indexes
FIX: An Access Violation Occurs if an sp_cursoropen Call References a Parameter That Is Not Defined
FIX: An access violation or error 5180 occurs when you run a parallel query that includes a large IN clause
FIX: An Insert Select Command with OPENXML and a Sql_variant Type Can Cause Error 2537 to Occur
FIX: Build 8.00.0837: A Query That Contains a Correlated Subquery Runs Slowly
FIX: Complex Query May Not Create an Execution Plan
FIX: Cross Database Query Fails with Error 3624 and an Assertion Occurs in the Dbtable.cpp File
FIX: Cursor Plans Are Not Removed From the Cache When Virtual Memory Depleted
FIX: Distribution Agent Fails with "Violation of Primary Key Constraint" Error Message
FIX: Error Message 3628 May Occur When You Run a Complex Query
FIX: Incorrect Results From a Parallel Query That Uses a UNION and Variables or Parameters
FIX: Internal Query Processor Error 8623 When Microsoft SQL Server Tries to Compile a Plan for a Complex Query
FIX: Lock Escalation on a Scan While an Update Query is Running Causes a 1203 Error Message to Occur
FIX: Many Extent Lock Time-outs May Occur During Extent Allocation
FIX: MDX: TopCount Function Returns "Unable to open cellset Connection to the server is lost" Error Message
FIX: Merge Replication Fails with Error 207 While Generating a Snapshot
FIX: Merge Replication with Alternate Synchronization Partners May Not Succeed After You Change the Retention Period
FIX: MS DTC Transaction Commit Operation Blocks Itself
FIX: Osql.exe May Not Run Batches As Fast As Other ODBC-Based Applications
FIX: Query on the sysmembers Virtual Table May Fail with a Stack Overflow
FIX: Query performance may not be consistent when you run a query on a SQL Server database with parallelism turned on
FIX: SQL Profiler Displays Incorrect TextData Value When You Run a Nested Stored Procedure by Using a Remote Procedure Call
FIX: SQL Server Enterprise Manager quits unexpectedly when you modify a DTS package
FIX: SQL Server May Generate an Incorrect SQL Script for a Table Constraint When You Use the "Generate SQL Script" Option in Enterprise Manager
FIX: SQL Server Might Take a Long Time to Recover After an Abrupt or Unexpected Server Shutdown
FIX: SQL Server Optimizer May Underestimate the Cardinality of Range Queries
FIX: sysindexes.statblob Column May Be Corrupted After You Run a DBCC DBREINDEX Statement
FIX: The header information may not be included when the query parameter has a COMPUTE clause
FIX: The performance of a computer that is running SQL Server 2000 degrades when query execution plans against temporary tables remain in the procedure cache
FIX: The spacing may not be correct when you run xp_sendmail and the query parameter contains a COMPUTE clause
FIX: The Xp_readmail Stored Procedure Only Saves the Text of an Embedded Attachment
FIX: Using xp_sendmail with a COMPUTE Clause Causes an Access Violation
FIX: When you run a program or a Web browser script that uses the Command object in the ADO programming interface to run a SQL Server stored procedure, you may receive an "EXECUTE permission denied on object..." error message in SQL Server 2000
FIX: xp_readmail Returns NULL in the attachment Column If the Attachment's Type Is Message Format
FIX: You may receive incorrect results when you run a query that contains a UNION ALL operator, a TOP clause, and an ORDER BY clause
FIX: You may receive unexpected results when you use a text column and an OR operator to combine criteria from multiple subqueries
How to help secure network connectivity for SQL Server 2000 local databases
How to manually reinstall the Microsoft Search service for an instance of SQL Server 2000
HOWTO: Upgrade an instance of Microsoft SQL Server 2000 Desktop Engine to SQL Server 2000 Service Pack 3
INF: Comparing SQL Collations to Windows Collations
INF: Frequently Asked Questions - SQL Server 2000 - Failover Clustering
INF: Frequently Asked Questions - SQL Server 7.0 - Failover
INF: The Microsoft Support Policy for a SQL Server Failover Cluster
List of bugs fixed by SQL Server 2000 service packs
OLE DB Conversion Errors May Occur After You Select a Literal String That Represents Datetime Data as a Column
Potential causes of the "SQL Server Does Not Exist or Access Denied" error message
PRB: Full Text Resource Fails to Come Online on a Cluster with "Event ID 1069 :SQL Cluster Resource 'Full Text' failed" Error Message
PRB: Row Size May Increase After the Datatype of a Column Is Altered
Some Named Pipes Features Are Not Disabled After You Disable the Named Pipes Protocol
Support WebCast: Microsoft SQL Server 2000: Alternate Synchronization Partner
TechNet Support WebCast:Performance troubleshooting and analysis in Microsoft SQL Server 2000
You Cannot Install SQL Server 2000 SP3 on the Korean Version of SQL Server 2000

[В начало]

Англоязычные статьи

SP3 Security Features and Best Practices: SQL Server 2000 Security Model
This paper introduces Microsoft® SQL Server™ administrators and developers to the security features of SQL Server 2000 Service Pack 3 (SP3). It discusses security best practices, giving detailed recommendations, and includes source code examples. It concludes with a security best practices checklist. This paper focuses on the SQL Server engine. For detailed discussions of Replication, Analysis Services, or Data Transformation Services, see SQL Server 2000 Books Online (Updated - Service Pack 3)
Review of SQL2K Resource Kit
Brian Kelley
The SQL Server 2000 Resource Kit has been out for a while now. Much like the various Windows Resource Kits, however, it's still useful as a source of information. It's one of the resources I keep handy on my bookshelf as well as on my workstation. In this review I'll cover why. But since the Resource Kit is a large book, I'll break up the review into the same sections as the book itself
MDX Essentials: Basic Set Functions: The CrossJoin() Function
William Pearson
In this lesson, we will expose another highly popular function in the MDX toolset, the CrossJoin() function. The general purpose of the CrossJoin() function is to allow us to produce all combinations of two sets. A primary driver for wanting to do this is to "collapse" two (or perhaps more) dimensions onto a single axis
Data Modeling, Breaking & Fixing First Normal Form (1NF)
James Koopmann
It has been my observation that a lot of us lack the basic skills required to model the simplest of database objects. This article will explore some of the common mistakes and fixes to the breaking of 1NF
OpenRowSource and OpenRowSet in SQL Server 2000
Muthusamy Anantha Kumar
SQL Server Data Base Administrators are often exposed to situations in running ad-hoc queries using external data sources such as MS-Access database or Excel sheets or CSV files or text files. For such frequent requests, Database Administrators usually use "linked servers" covered in my previous article, Linking SQL Server to Heterogeneous Systems
System-Supplied Trace UDFs
Baya Pavliashvili and Kevin Kline
Most of you have probably created your own SQL Server user-defined functions (UDFs), but did you know that Microsoft ships a fair number of its own UDFs, especially in the most recent SP3? In this article, Baya Pavliashvili and Kevin Kline explore a subset of them that are related to traces. Some of you may want to (re)read previous SQL Server Professional articles about traditional UDFs such as Andrew Zanevsky's September 2000 column ("Granting Wishes with UDF"), Andrew Zanevsky and Anton Jiline's October 2001 article ("UDF Performance… or Lack of It"), or Jimmy Nilsson's July 2003 article ("Another UDF: Global Constants")
Inside Longhorn Architecture
ftponline.com
Welcome to FTP's introduction to Longhorn, the code name for the next major version of Windows. This architectural model shows how everything fits together—click on the top-level sections for details. We'll expand it as more information becomes available
Oracle and SQL Server Data Interoperability Issues - Part 1
Haidong Ji
Most of us work with and specialize in only one RDBMS system, such as MSSQL, Oracle, or IBM DB2. However, increasingly, we find outselves dealing with a heterougeous database environment and are asked to solve data interoperability probelms
Transferring DTS Packages
Darren Green
This article will try and explain the different ways you can transfer packages between servers and other storage locations, either directly or as files. The most common requirement is to transfer between two SQL Servers, and this is the main focus here, but some methods can be adapted for any of the other storage locations. The DTSBackup 2000 tool incorporates several of these methods into an easy to use interface
Beginning SQL Server 2000 Administration Part 1
Steve Jones
I often see questions and posts about how you get started with SQL Server 2000. Mostly from people whose job is something else, but got stuck with the task of administering or working with SQL Server 2000. This article is geared more towards network type administrators, but developers may find it interesting as well
Vertical partitioning of large databases
Barrie Sosinsky
Partitioning tables into different files contained in the same database is a good way to improve performance of large databases. You can choose to partition your tables using either vertical or horizontal partitioning depending upon the nature of your data
SQL Server 2000 High Availability Series: Implementing Failover Clustering
This chapter teaches you how to increase the availability of a Microsoft SQL Server data center by using failover clustering. After reading this chapter, you will be able to configure each component in this high-availability solution, including the storage device, network, Microsoft Cluster Service (MSCS), Microsoft Distributed Transaction Coordinator (MS DTC), and Microsoft SQL Server 2000
Set-Operation Alternatives
Itzik Ben-Gan
ANSI SQL defines three operations—UNION, INTERSECT, and EXCEPT—that you can apply to two sets. These operations let you combine rows from different sets, locate which rows exist in both input sets, or find which rows exist in one set but not the other. Each of these operations has many uses and practical implementations. For example, you can use UNION to combine sales data from partitioned tables, INTERSECT to find which customers are also employees, and EXCEPT to find which customers aren't employees. However, T-SQL supports only the UNION operation. Fortunately, you have alternatives in T-SQL that you can use to provide the functionality of the missing operations
Inside SQL Server 2000's Memory Management Facilities
In this column, we'll explore the internals of SQL Server memory management from a developer's perspective. That is, we'll discuss the way the server manages memory in terms of the APIs and operating system facilities it makes use of and how they work. Exploring a product in this fashion helps us get inside the heads of the developers who built it and helps us understand how they intended it to be used. Understanding how a product works internally and its intended use is key to mastering it
Joins Clarified
Sanket Naik
Normalization is an art; it is the best thing that can happen to databases .But it modularizes the data which means that we are not having all the data in the same table. This indirectly means that, suppose I want a receipt and for constructing that receipt I need data that is scattered across many a tables. Then what do I do?
Scalability and Very Large Database (VLDB) Resources
With SQL Server 2000, organizations can achieve improved response time, lower transaction costs, reduced administrative costs, and enterprise-class scalability and availability. See how real-world businesses use SQL Server to rapidly adapt to a constantly changing environment
Error Handling in SQL Server – a Background
Erland Sommarskog
This is one of two articles about error handling in SQL Server. This article focuses on how SQL Server – and to some extent ADO – behave when an error occurs. The other article, Implementing Error Handling with Stored Procedures, gives advice for how you should check for errors when you write stored procedures. Logically, this article is part one, and Implementing... is part two. However, you can read the articles in any order, and if you are relatively new to SQL Server, I recommend that you start with Implementing.... The article here gives a deeper background and may answer more advanced users' questions about error handling in SQL Server
SQLXML
Henderson
This chapter assumes that you’re running, at a minimum, SQL Server 2000 with SQLXML 3.0. The SQLXML Web releases have changed and enhanced SQL Server’s XML functionality significantly. For the sake of staying current with the technology, I’m covering the latest version of SQLXML rather than the version that shipped with the original release of SQL Server 2000
Users From Hell
David Poole
Most of the non-IT people I deal with are a pretty fair-minded bunch. We have differences of opinion but generally they are as good in their field as I am in mine Like me, they are curious as to what goes on outside of their departments, particularly when it can affect them

[В начало]

ФОРУМ SQL.RU

Самые популярные темы недели

Кто на чем пишет клиентов под SQL Server?
Новые упражнения на http://sql.ipps.ru
Tool Вы знаете что твориться на ваших 10-30+ серверах ?
Книга по SQL 2000
Новость No.2 - FTP SQL.RU
Опять дерево...
Задачка для гуру
соцопрос: Кто что использует для управления БД и написания ХП всяких
Table1=table1 ???
Как найти ID следующей и предыдущей записи
Интересная тенденция
Проблема с Linked server по сети!! выручайте, горит!!!
Скопировать БД
Linkedserver
Временные таблицы.
Использовать ли XML?
Identity или RAND() ? ;)
Идеальный SQL - какой он?
DTS в ексель... туплю.
запуск процедуры на linked servere

[В начало]

Вопросы остались без ответа

Обьединение таблиц
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops4.mspx
Опять ADO Проблема
Проблема с установкой клиента SQL Server2000 на машину c Win 95.
Запрос с параметрами по форме из проекта АДО
Вопрос работает ли SQL Server на процессорах АМД
Не видно юзеров!!

[В начало]


Вопросы, предложения, коментарии, замечания, критику и т.п. присылайте Александру Гладченко на адрес: mssqlhelp@km.ru

sql.ru Описание рассылки

МИНИФОРМА
ПОДПИСКИ




http://subscribe.ru/
E-mail: ask@subscribe.ru
Отписаться
Убрать рекламу


В избранное