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

MS SQL Server

  Все выпуски  

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


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

#248<<  #249

СОДЕРЖАНИЕ

1.СТАТЬИ
1.1.Основы I/O в SQL Server 2000 (продолжение)
1.2.Ошибка, возникающая при вставке дублированных значений в ключевые поля в процессе репликации
1.3.Решение проблем, связанных с целостностью данных в Analysis Services 2005 (начало)
2.ССЫЛКИ НА СТАТЬИ
2.1.Статьи на русском языке
2.2.Англоязычные статьи
3.ФОРУМ SQL.RU
3.1.Самые популярные темы недели
3.2.Вопросы остались без ответа

Голосовать

Наш сайт участвует в конкурсе "Интернить'2005" в номинации Профессиональное сообщество.
Если Вы относите себя к сообществу SQL.RU, прошу Вас выставить нашему сайту свою оценку.
Голосовать можно по этой ссылке: http://www.internit.ru/golos/?id=365

C уважением,
Александр Гладченко

СТАТЬИ

Основы I/O в SQL Server 2000 (продолжение)

По материалам статьи Bob Dorr: SQL Server 2000 I/O Basics
Перевод Александра Гладченко

Страницы данных

Размер страницы базы данных SQL Server равен 8 Кбайт. Каждая страница содержит заголовок с полями номера страницы, идентификатора объекта, LSN, идентификатора индекса, бита чётности (Torn bits) и типа страницы. Сами строки данных расположены на оставшейся части страницы. Внутренние механизмы базы данных отслеживают состояние распределения страниц данных в базе.
Страницы данных часто просто называют страницами.

Номер страницы

Номера страниц могут принимать значения от 0 до ((Максимальный размер файла / 8 Кб)-1). Номер страницы, умноженный на 8 Кбайт, даёт смещение в файле к первому байту страницы.
Когда страница считывается с диска, номер страницы сразу же проверяется, чтобы определить правильность заданного смещения (номер страницы в заголовке по сравнению с ожидаемым номером страницы). Если номер не совпадает, SQL Server генерирует ошибку 823.

ID объекта

Это идентификатор объекта, который назначен странице в схеме базы данных. Страница может быть назначена только на единственный объект. Когда страница читается с диска, у страницы проверяется ID объекта. Если ID объекта не соответствует ожидаемому, SQL Server генерирует ошибку 605.
SQL Server часто осуществляет запись кратно размеру страницы, 8 Кбайт или больше.

Экстенты

Обычно SQL Server (если исключить не смешанные экстенты) распределяет место не только страницами, но и экстентами. Экстент - это блок из восьми страниц по 8 Кб, всего 64 Кб. SQL Server часто читает сразу экстентами (64 Кб или 128 Кб).

Буферный пул

Буферный пул - Buffer Pool (BPool) занимает наибольшую часть адресного пространства непривилегированного режима, оставляя только около 100 Мбайт для диапазона виртуальных адресов, используемых для стеков потока, библиотек DLL и др. Буферный пул резервируется большими кусками, но кратными рабочему размеру страницы базы данных - 8 Кб.

Аппаратный кэш чтения

Аппаратный кэш чтения - это обычный кэш упреждающего чтения, используемый контроллерами. В зависимости от размера доступного кэша, кэш упреждающего чтения используется для повышения производительности извлечения данных, которых помещается в кэш больше, чем фактически запрашивается для чтения.
Аппаратный кэш чтения и упреждающее чтение бывает более выигрышен для приложений, данные которых обычно имеют непрерывный характер и читаются практически непрерывными кусками, например, это могут быть OLAP запросы или приложения отчётности.
Поскольку аппаратный кэш чтения утилизирует часть памяти кэша, которая могла бы использоваться для буферизации запросов на запись, его использование может мешать оперативным транзакциям (OLTP), для которых требуется высокая скорость записи.
Важно: Некоторые контроллеры не выполняют упреждающее чтение, если размер запроса на чтение превышает 16 Кб. В таком случае, для серверов с Microsoft SQL Server, аппаратное упреждающее чтение не даёт заметных преимуществ, потому что запросы I/O на чтение, как правило, больше 16 Кбайт. Изучите документацию или свяжитесь с производителем Вашей дисковой подсистемы, что бы получить рекомендации по настройке аппаратной части для поддержки работы SQL Server.

Аппаратный кэш записи

Аппаратный кэш записи обслуживает не только запросы на запись, но и запросы на чтение, если данные все еще находятся в аппаратном кэше записи. Это распространённый механизм кэширования I/O.
Возможность аппаратного кэширования записи является очень важной в поддержании высокой производительности OLTP систем. С поддержкой автономного питания от встроенной батареи и соответствующих, безопасных алгоритмов работы, аппаратный кэш записи может обеспечить безопасность данных (на долговременных носителях), а так же повысить быстродействие подобных SQL Server приложений, реально сокращая расходы на физические операции ввода-вывода.

Ошибка 823

SQL Server error 832, "I/O error <error> detected during <operation> at offset <offset> in file '<file>'"

Происходит когда:

  • операции ReadFile, WriteFile, ReadFileScatter, WriteFileGather или GetOverlappedResult приводят к одной из ошибок операционной системы.

  • номер страницы при чтении страницы с диска не совпадает с ожидаемым ID страницы.

  • не правильный размер передаваемых данных.

  • обнаружено прерванное чтение, когда включено определение оборванных страниц.

  • обнаружено чтение устаревших данных (Stale Read), когда включено определение такого чтения.

Примечание переводчика: Stale Read возникает при запросах ReadFile API, если операционная система, драйвер или кэширующий контроллер ошибочно возвращает старую версию кешируемых данных.

Для получения подробностей об ошибке 823, см. статью:
Error message 823 may indicate hardware problems or system problems

Ошибка 605

SQL Server error 605, "Attempt to fetch logical page (x:yyy) in database 'dddd' belongs to object 'aaa', not to object 'tttt'."

Происходит когда:

  • ID объекта на странице не соответствует ID объекта, который ожидалось прочитать в заголовке страницы.

Ошибка 605 у SQL Server проявляется, когда к странице обращаются для сканирования. Сканирование ассоциируется с конкретным объектом. Если при сканировании ID не соответствует ID объекта, который хранится в заголовке страницы, генерируется эта ошибка. Это происходит в момент первого использования страницы и может произойти при последующем поиске страницы в оперативной памяти.

ПРОДОЛЖЕНИЕ СЛЕДУЕТ

[В начало]

Ошибка, возникающая при вставке дублированных значений в ключевые поля в процессе репликации

По материалам статьи Andy Warren: Duplicate Key Inserted Error During Replication
Перевод Ирины Наумовой

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

Когда генерируется эта ошибка, работа Distribution Agent останавливается. Обычно после возникновения этой ошибки, подписчика необходима реинициализировать и перенести на него заново сгенерированный снимок. Если Вы используете SQL 7, то во время генерации снимка SQL Server накладывает разделяемую блокировку на таблицу, которая в свою очередь блокирует работу пользователей. Кроме того, применение нового снимка на подписчике также может идти достаточно долго.
Однако, есть и альтернативные решение. Одним из выходов может быть добавление параметра агента дистрибуции (Distribution Agent) –skiperrors и последующий перезапуск агента. Это не очень хорошее решение, но при этом агент дистрибуции не прекращает свою работу при возникновении этой ошибки.
Это может привести к тому? что на подписчике будут некорректные данные. Используя прилинкованный сервер, можно подключиться к подписчику или издателю, и изменить запись на издателе.
Другим альтернативным способом может служить удаление еще не переданных записей в базе данных дистрибутора. Для этого Вам необходимо идентифицировать транзакцию и удалить ее из таблицы MSRepl_Command. Это можно сделать с помощью хранимой процедуры sp_browsereplcmds. Запомните что значение publisher_database_id это не ID базы данных. Для того чтобы определить имя базы данных, необходимо найти соответствующую значению publisher_database_id запись в таблице MSPublishers_Databases. Вот результат работы процедуры sp_browsereplcmds на моей машине:

Таким образом для приведенного примера нужно удалить транзакцию, для которой значение xact_seqno равно 0x000000110000014E0004. Если Вы посмотрите на детальное описание ошибки на первом рисунке, вы убедитесь в том, что последняя команда, выполняемая агентом дистрибуции, соответствует команде из результирующего набора, который возвращает процедура sp_browsereplcmds. Теперь осталось сделать последний шаг:

use distribution
go
delete from msrepl_commands where xact_seqno=0x000000110000014E0004
go
Перезапустим агента дистрибуции. В этот момент данные на подписчике всё ещё отличаются от издателя, т.ч. Вы ещё можете исправить информацию на подписчике или применить там снимок как уже было рассказано ранее.

И последнее альтернативное решение этой проблемы заключается в том, чтобы удалить на подписчике строку с тем значением ключа, которое пытается вставить агент дистрибуции. Увидеть это значение можно изучив текст ошибки в окне детализации ошибки среди параметров процедуры sp_MSins_Books. Просмотрев текст процедуры на подписчике, можно определить что первый ее параметр – это значение первичного ключа, таким образом, нужно подключиться к подписчику и удалить запись с тем же значением ключа.

use Test1
go
Delete from books where BookID=9
Go
Затем нужно перезапустить агента дистрибуции. Этот метод дает возможность сохранить синхронными данные подписчика и издателя без всех тех сложностей, которые присущи другим методам. Как мне кажется, этот способ дает наименьший риск возникновения ошибки.
Для более подробной информации о параметре –skiperrors обратитесь к справочной системе SQL Server (BOL) или статье MSDN Handling Agent Errors.

[В начало]

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

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

Предлагает ли Microsoft инструмент для диагностирования производительности Windows Server 2003?
Джон Севилл
MSSQLServer: Недавно Microsoft выпустила Windows Server 2003 Server Performance Advisor - утилиту, разработанную для специалистов, которые занимаются поиском и устранением проблем производительности в системах Windows 2003. Ни на XP, ни на Windows 2000 эта утилита работать не будет. Загрузить ее можно по адресу http://list.windowsitpro.com/t?ctl=4EA:29133...

Microsoft лицензирует опытное ПО для промышленной эксплуатации
securitylab.ru
MSSQLServer: В понедельник Microsoft выпустила тестовые версии своих будущих инструментов разработки и базы данных, которые, как она утверждает, уже можно использовать в действующих бизнес-приложениях. Заказчики Microsoft, подписанные на Microsoft Development Network, получили доступ ко второй бета-версии Visual Studio 2005 и апрельской версии community technology preview СУБД SQL Server 2005. Оба продукта должны быть закончены во втором полугодии и поступят в продажу одновременно...

Как создать Web Service или FTP Service в кластерном виртуальном сервере Windows Server 2003?
Джон Севилл
В Windows 2000 Server были предусмотрены типы ресурсов для различных компонентов Microsoft IIS, которые находились под типами ресурсов кластера, однако в Windows 2003 их больше нет. Вместо этого Windows 2003 предоставляет сценарии, которые используются совместно с типом ресурса Generic Script. Прежде чем эти сценарии заработают, на всех узлах должны быть установлены необходимые компоненты IIS (например, Web или FTP). Если этого не сделать, соответствующие сценарии в системе не появятся...

Как узнать, установлена система заново или же была создана при помощи образа Sysprep?
Джон Севилл
Чтобы определить, не получена ли система с помощью образа Sysprep, выполните следующие действия (это справедливо для Windows NT 4.0 и более поздних версий Windows): 1. Запустите редактор реестра (regedit.exe). 2. Перейдите в раздел HKEY_LOCAL_MACHINE\SYSTEM\Setup. 3. Если параметр CloneTag существует, то в процессе установки использовался образ Sysprep. Значение CloneTag указывает на дату и время создания образа. 4. Если присутствует параметр CmdLine, то это указывает на команду, которая запускалась на машине при первой загрузке (например, "setup.exe -newsetup - mini", что подразумевает установку в режиме mini, с помощью графического интерфейса)...

"Черные" ИТ-проекты прижились в России
Андрей Матаренко
CASE: Многие проекты по внедрению корпоративных информационных систем заканчиваются неудачно. Одна из причин подобных провалов заключается в том, что исполнитель или заказчик проекта изначально не ставит своей целью добросовестное выполнение работ, а использует их лишь в качестве прикрытия для личного обогащения...

MS SQL 2000 - Технология Forward pointers - в погоне за производительностью
AlexGaas
MSSQLServer: В своем прошлом блоге я бессовестно лгал J на тему расщепления страниц в куче, не договаривая о некоторых скрытых возможностях SQL Server. Сейчас мне хочется исправить оплошность и осветить тему Forward-pointers более подробно...

Улучшение выполнения запросов Analysis Services
Хертс Чен
OLAP: Analysis Services - это высокопроизводительный движок для выполнения многомерных запросов по обработке аналитических и статистических запросов, которые не могут быть обработаны реляционным SQL-процессором. Если эти запросы простые или имеют предварительное агрегирование, то применение Analysis Services может облегчить работу пользователя. Однако когда запросы становятся более сложными, Analysis Services могут не справиться с их обработкой. Например, выполнение предложения SQL SELECT, содержащее оператор GROUP BY и функции агрегирования, может занять, по меньшей мере, несколько минут. Тот же результирующий набор можно получить в течение нескольких секунд, если выполнить предложение MDX в многомерном OLAP (MOLAP) кубе Analysis Services. Этот искусственный прием выполняетс...

Как использовать Windows Server 2003 Performance Advisor?
Джон Севилл
MSSQLServer: После того как утилита Windows 2003 Performance Advisor будет установлена, запустите ее из меню Start, Server Performance Advisor (ярлыку соответствует файл spa.exe в каталоге "C:\program files\server performance advisor"). Можно также воспользоваться утилитой командной строки spacmd.exe, которая позволяет инициировать большинство тех же действий, что и графическая утилита...

[В начало]

Решение проблем, связанных с целостностью данных в Analysis Services 2005 (начало)

По материалам статьи T.K. Anand, Microsoft Corporation: Handling Data Integrity Issues in Analysis Services 2005
Перевод Виталия Степаненко

Март 2005 года

О чем эта статья: В статье рассматриваются типичные проблемы, связанные с целостностью данных, и показывается, какие средства дает Analysis Services 2005 для решения этих проблем. (10 печатных страниц)

Относится к:
SQL Server 2005 Analysis Services

Содержание

Вступление
Типы проблем, связанных с целостностью данных
Элементы управления целостностью данных
Сценарии
Заключение

Вступление

Проблемы, связанные с целостностью данных, типичны для реляционных баз данных, особенно для оперативных (OLTP) систем. Эти проблемы обычно исправляются с помощью job'ов ETL (Extraction, Transformation и Load - извлечение, трансформация и загрузка), которые загружают данные в хранилище данных. Однако даже в хранилище данных проблемы с целостностью данных - не редкость.

SQL Server 2005 Analysis Services поддерживает кубы, построенные напрямую из оперативных хранилищ данных, и предлагает сложные элементы управления для обеспечения управления проблемами целостности данных, присущими таким системам. Администраторы баз данных могут сильно упростить свои задачи по управлению кубами, используя эти элементы.

Типы проблем, связанных с целостностью данных

В этой главе мы определим основные проблемы целостности данных. Для рассмотрения этих проблем мы будем использовать следующую реляционную модель:

- Таблица фактов sales имеет внешний ключ product_id, который указывает на первичный ключ product_id в таблице измерений product.

- Таблица измерений product имеет внешний ключ product_class_id, который указывает на первичный ключ product_class_id в таблице измерений product_class.


Рис.1. Реляционная модель

Ссылочная целостность

Проблемы ссылочной целостности (Referential integrity, RI) являются наиболее типичными проблемами целостности данных в реляционных базах данных. Ошибка RI - это по существу нарушение ограничения первичный ключ-внешний ключ. Например:

- Таблица фактов sales имеет запись с таким значением product_id, которое не существует в таблице измерений product.

- Таблица измерений product имеет такое значение product_class_id, которое не существует в таблице измерений product_class.

Значения NULL

Хотя значения NULL обычны и даже приветствуются в реляционных базах данных, они требуют особой обработки в Analysis Services. Например:

- Таблица фактов sales имеет запись со значением NULL в столбцах store_sales, store_cost и unit_sales. Это может быть интерпретировано или как транзакция с нулевыми продажами, или как несуществующая транзакция. Результаты запроса MDX (NON EMPTY) будут различаться в зависимости от интерпретации.

- Таблица фактов sales имеет запись со значением NULL в столбце product_id. Хотя это и не является ошибкой ссылочной целостности в реляционной базе данных, эту проблему целостности данных Analysis Services должен обрабатывать.

- Таблица product имеет запись со значением NULL в столбце product_name. Так как этот столбец передает ключи и имена товаров в Analysis Services, то значение NULL может быть оставлено как есть, сконвертировано в пустую строку, и т.д.

Ошибки в связях

Analysis Services позволяет определять связи между атрибутами измерений. Например, измерение Product может иметь отношение "многие-к-одному" между столбцами brand_name и product_class_id. Рассмотрим две записи в таблице product со следующими значениями столбцов:

product_id product_class_id brand_name product_name
1025 25 Best Choice Best Choice Chocolate Cookies
1576 37 Best Choice Best Choice Potato Chips

Это нарушение связи "многие-к-одному", так как значение столбца brand_name "Best Choice" имеет два связанных с ним значения столбца product_class_id.

ПРОДОЛЖЕНИЕ СЛЕДУЕТ

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

How to resolve a deadlock without your DBA
biswajit
A deadlock occurs when two system server process IDs (SPIDs) are waiting for a resource and neither process can advance because the other process is preventing it from getting the resource

Five Ms of Meta Data
Arup Duttaroy
Today's dynamic and fast-changing business environment creates volumes of data that quickly become useless without effective management. Of late, many organizations have begun to realize that the data generated by the enterprise systems which manage their business processes is a valuable asset. In order to convert this valuable data into insightful business decisions, many organizations have started developing business intelligence/data warehousing applications. The most important component of such business intelligence applications is the meta data, and strong meta data management is necessary for the ultimate success of all such initiatives. As such there is now a growing acknowledgement for the need for understanding and managing meta data

Package command line configurations...
Kirk Haselden
I've been seeing questions about this and although I've posted about configurations before, here command line configurations are a bit different

Planning for Consolidation with Microsoft SQL Server 2000
Allan Hirt
This white paper is the first in a series of papers focused on server consolidation with Microsoft® SQL Server™ 2000. It is designed as a prescriptive planning guide for both decision-makers and technical audiences alike. This is not an implementation or administration/operations guide for consolidation efforts; those topics are the focus of the other papers in this series

Beginner: Manage database file size
Engine Watch
4GB database with two "big" tables: 1.5 million records, table with almost 1 million records, and each month, import about 300,000 records, also delete some old records. database goes up to 5 or 6 GB and the transaction log goes up to 7 or 8 GB. If dbcc shrink file is used, then data file and log file size goes down to 4 GB and 3 GB, respectively. Should dbcc shrink file be used regularly?

Why .NET is the best thing to happen to software since OOP
Ken Henderson's WebLog
I read a blog by Mark Russinovich the other day that disturbed me a bit. It always bothers me when someone as highly regarded as Mark completely misses the boat because it means that a lot of other people will probably miss the boat, too. People often read things written by people they respect and immediately take them to the bank without critically considering whether they really make sense. So, given that, let me try to rebut what I think is some faulty logic and some misguided concern on Mark's part

Stalled/stuck I/O and SQL Server 2000 SP4
Ken Henderson's WebLog
Service Pack 4 for SQL Server 2000, due out any day now, has a number of new features oriented toward making the product easier to support. One of these is the new detection and reporting of stalled or stuck I/O operations. A stalled I/O is an I/O operation that SQL Server has submitted to the operating system and is taking an inordinant amount time to complete. A stuck I/O is an I/O operation that has been submitted by the server to the OS and never completes. Usually, these types of problems are due to either driver problems or hardware problems -- that is, they're completely outside of SQL Server. They're notoriously difficult to debug and troubleshoot. To the typical SQL Server end user, they manifest themselves as poor performance or what seems like a hang. SP4 features detection and reporting of these conditions via messages written to the error log. My next column in MSDN Magazine (also due out any day now) will give you the details and lay out some example scenarios where the new functionality makes all the difference

Microsoft SQL Server 2000 Reporting Services vs Business Objects Crystal Reports / Crystal Enterprise
Mat Stephen's WebLog
At last here is a feature comparison between Microsoft SQL Server 2000 Reporting Services vs Business Objects Crystal Reports / Crystal Enterprise that I can actually point you to. We've had our own internal one for quite sometime, but for what I believe are legal reasons, I haven't been able to share it with you

Choosing a version of SQL Server 2005 Express (Updated for Visual Studio Beta 2)
tfosorciM.org
As many people who have used SQL Server 2005 Express in its various beta and Community Technology Preview versions will know, there have been many problems with installation, uninstallation and moving from one release to another. As I write this I am downloading Visual Studio 2005 Beta 2. I hope that April CTP of SQL Server 2005 and of SQL Server 2005 Express will be available very soon now

Successful Uninstall of February CTP SQL Server 2005 and SQL Server 2005 Express
tfosorciM.org
Since I guess that many people will in the next few days be attempting to uninstall SQL Server 2005 Beta 2 or CTP builds I thought it might be helpful to describe the steps I took to (seemingly) successfully uninstall SQL Server 2005 Developer Edition and SQL Server 2005 Express February CTP builds

FAQ: How do I write objects in Managed code, the beta 1 samples/docs on the web don't work with SQL Express?
sqlexpress's WebLog
The syntax for much of SQLCLR was changed between B1 and the current builds to make it more consistent. Building SQLCLR objects in Visual Studio 2005 is really easy as we have new project types, but the Express SKUs of VS do not include this project type so the code has to be written by hand. The below is a sample from Ramachandran Venkatesh one of the PMs on the SQLCLR team in SQL Server

FAQ: Installing SQL Express side by side with SQL 2000 Enterprise Manager seems to break it, its still broken when I uninstall express, whats going on?
sqlexpress's WebLog
Because of changes in the SQL Server 2005 metadata we have updated SQLDMO, the new version is SQLDMO9, it should work with SQL Server 7/2000 and 2005. For backwards compatibility it is installed by SQL Express so that existing DMO apps should just work. Due to the way that SQLDMO is versioned, only one version can exist on a machine at one time, so when Express is installed the SQLDMO9 version is the one that is registered. Having explained the scenario lets take a look at potential problems

FAQ: SQL Server 2000 Reporting Services fails after installing SQL Server 2005
sqlexpress's WebLog
After installing any component of SQL Server 2005 Beta 2 or Visual Studio 2005 Beta 1 on a computer with an existing installation of SQL Server 2000 Reporting Services, Reporting Services may fail with the following error

FAQ: Why do I get warnings about IIS and COM+ during the install of SQL Express, is something wrong?
sqlexpress's WebLog
No nothing is wrong, the current builds SQL Server Express uses the same pre-requisite checks that the main SQL Server 2005 release does, except they are warnings instead of blocks. There is not problem in not having IIS for example

Various Downloads of Samples and Documentation for SQL Express
sqlexpress's WebLog
MSDN has a downloads page specific to express

FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc(basically anything that is not using .Net 2.0 or the new SQL Native Client))
sqlexpress's WebLog
This is the short version, the longer version is further down, also make sure and review the SQL Express BOL and the Mini BOL

Using SMO with SQL Express
sqlexpress's WebLog
SMO is the new management model for SQL Server 2005, its included for use with SQL Express

XslCompiledTransform (new XSLT 1.0 processor in .NET 2.0) - no more pull-mode XSLT
Oleg Tkachenko's Blog
I'm studying new XSLT 1.0 implementation provided by Microsoft in the .NET 2.0 Beta2 - XslCompiledTransform class. The guys who wrote it are my good friends and excellent developers, but let me to complain a little bit, not because I'm a complainer, but trying to make this cool piece of software even better

Facing TORN PAGE detection during the Attching of DB File afte the Server Crashed and from RAID the Files were restored
sqlcon
To allow the below commands to work you will have to allow updates to system tables

How to Pass Access Data Across the Web
Danny Lesandrini
The solution described below should probably not be considered a "best practice" but it works. It came to life as I was pondering the following conundrum

Normalizing Your Database: Second Normal Form (2NF)
Mike Chapple
Over the past month, we've looked at several aspects of normalizing a database table. First, we discussed the basic principles of database normalization. Last time, we explored the basic requirements laid down by the first normal form (1NF). Now, let's continue our journey and cover the principles of second normal form (2NF)

Sql as a set-oriented language
j.Auer
Sql works good if it is used set-based. The article begins with a procedural sample and changes this into a set-based version

Encrypt and decrypt DataSets to XML files
Koenraad
This class lib allows encrypting DataSets to XML files and read them back. A Win Form app is included as a showcase

Obtain the Dskcache.exe Tool to Configure the "Power Protected" Write Cache Option
Microsoft
This article describes how to obtain the Dskcache.exe tool. Dskcache.exe is a command-line tool that you can use to configure the Power Protected write cache option that is available in the hotfix that is described in the following Microsoft Knowledge Base article

Possible Data Loss After You Enable the "Write Cache Enabled" Feature
Microsoft
When you enable write caching on a hard disk, the hard disk receives the synchronize cache command when you shut down the computer, and the cached data is written to the hard disk before the computer shuts down. However, when you shut down the computer after the first shutdown, the hard disk does not receive the synchronize cache command and does not write the cached data to the hard disk before the computer shuts down. Note that this occurs even though write caching is enabled. When this problem occurs, you may experience data loss or you may receive an error message on a blue screen

The Trustworthy Computing Security Development Lifecycle
Steve Lipner, Michael Howard
This paper discusses the Trustworthy Computing Security Development Lifecycle (or SDL), a process that Microsoft has adopted for the development of software that needs to withstand malicious attack. The process encompasses the addition of a series of security-focused activities and deliverables to each of the phases of Microsoft's software development process. These activities and deliverables include the development of threat models during software design, the use of static analysis code-scanning tools during implementation, and the conduct of code reviews and security testing during a focused "security push". Before software subject to the SDL can be released, it must undergo a Final Security Review by a team independent from its development group. When compared to software that has not been subject to the SDL, software that has undergone the SDL has experienced a significantly reduced rate of external discovery of security vulnerabilities. This paper describes the SDL and discusses experience with its implementation across Microsoft software. (19 printed pages)

Software Maker Boosts Performance 400 Percent with Move to 64-bit Windows
TPI Software
TPI Software wanted to boost the performance of TPI SmartPayments Server, its electronic payment solution, while minimizing the cost of that greater performance to customers. Its solution: Upgrade SmartPayments Server to support the 64-bit versions of Microsoft Windows Server 2003, Microsoft SQL Server 2000, and Microsoft Windows XP Professional software. TPI accomplished the upgrade in just three days at Microsoft Labs, making what TPI Software describes as only minor adjustments to its application. By migrating from the 32-bit versions of Microsoft software, TPI has boosted performance 400 percent with 20 percent CPU utilization, giving its customers both faster performance and headroom to grow for years to come. A key customer estimates that its upgrade to the 64-bit solution will cost just 20 percent as much as scaling out to a 32-bit system to achieve the same performance

Disaster Recovery
Microsoft
Help safeguard data in your small business by developing and implementing a well-planned backup strategy. Get general and product-specific information on how to prepare for network outages and disasters, and how to respond quickly to minimize disruption or damage

Forrester Report: Microsoft Addresses Enterprise ETL
Microsoft
In this independent report, Forrester provides an objective assessment of SQL Server 2005 Integration Services, the new Microsoft tool for data extraction, transformation, and load (ETL). The report highlights enterprise-class features, superior price/performance ratio, advanced functionality beyond traditional ETL, and the scalable architecture of SQL Server 2005 Integration Services

Federated Query support in Yukon
Jamie Thomson's Blog
There's an interesting article on The Reg today written by Philip Howard from Bloor Research that talks about SQL Server's ability to support federated queries, which are an aspect of EII

Out parameters in the Execute SQL Task...
Kirk Haselden
One of the more strident complaints we've been receiving is the fact that the SQL Task didn't support out parameters on stored procedures. We listened

SQL Server Integration Services: SQL Server 2005's New ETL Platform
Thiru Thangarathinam
Microsoft SQL Server 2005 provides a completely new enterprise extraction, transformation, and loading (ETL) platform called SQL Server Integration Services (SSIS) that ships with the features, tools, and functionality to build both classic and innovative kinds of ETL-based applications. This article examines some of the exciting SSIS features that you can use to build ETL applications. Along the way, you will also learn how to build a simple package using the new Business Intelligence Development Studio, which is a key component of SSIS features

SQL Server Integration Services For Developers - .ppt presentation
Donald Farmer
SQL Server Integration Services is a highly extensible platform for enterprise data integration. This session explores how to extend the workflow environment and how to add your own custom transformation capabilities using both script and managed code

TechNet Roadshow Example code for Microsoft SQL Server 2005 Table partitioning
Mat Stephen's WebLog
For those who want to give this a try, this is the code I've been using on the 2K5 H1 roadshow for my SQL 2k5 Table Partitioning demo

SQL Server 2005 April CTP + Important Announcements
adam machanic
In addition to releasing the April CTP of SQL Server 2005, Microsoft has made two important announcements this morning

Microsoft Delivers Latest Visual Studio 2005 and SQL Server 2005 Releases
Microsoft
Company encourages developers to Go-Live today, and highlights enterprise customers running mission-critical applications on the integrated development and data management platform

April CTP SQL Express Install Saga - Serious Setup Bug?
tfosorciM.org
I am posting a description of how I hit an impasse when attempting to install April CTP of SQL Server 2005 Express on Windows XP SP1. This refers to the standalone version of SQL Server 2005 Express downloaded from here

No SQL Server Beta 3 in sight!
The SQL Doctor is In
Now that you have been snookered into reading this, let me be more clear. For this product only (at the moment, they have the right to change their minds more than my daughter trying to find clothes to wear to church) they are dropping the Beta moniker from the upcoming releases and are only going to release CTP's from now on. One thing that I am really excited about is that we have been promised that it is essentially feature complete, though GUIs may change some (so don't start copy and pasting those screen shots just yet my friends!)

Obtaining Query Execution Plans Through SQL Profiler Traces
Randy Dyess
Often clients ask me how they can go about optimizing their stored procedures and during our discussions we usually end up talking about using execution plans to aid in the optimization of those stored procedures. Most of my clients are aware that you can obtain execution plans through Query Analyzer. What most of the clients do not know is that you can utilize SQL Profiler to obtain the execution plans of queries running on a particular system. The problem is once you obtain a SQL Profiler trace file v how do you weed through all the information found that file to just return execution plans and the query associated with that plan

The new WITH XMLNAMESPACES clause
Michael Rys
FOR XML in SQL Server 2000 puts the burden of generating and maintaining XML namespaces completely on the query writer. XML namespace declaration attributes have to be created like every other attribute with the namespace URI being the column value. Unless the generated XML was in attribute-centric form, this meant that the query has to be written using the EXPLICIT mode. For example, the following query puts the resulting Customer elements and its property elements into the namespace urn:example.com/customer

How to use base64 encoding in SQL Server 2005
Michael Rys
Kirk Allen Evans gives an example how to generate a base64 encoded WordML binData element. Just for kicks, here is how the same code would look like in SQL Server 2005 using FOR XML (as in his case, it is not the complete Word document)

Analyzing the Static Type of your Query
XQuery Inside SQL Server 2005
XQuery inside SQL Server 2005 implements a set of rules that enable us to catch potential problems with the user query at compile time, based on static analysis of the query. The complete rules for static analysis of XQuery expressions are detailed in the various XQuery language and implementation documents. Basically, static typing leverages information we know about the query at compile time e.g. types from an associated XSD document, to find and report potential problems with the query before the query is actually executed. Since the compilation phase of for an XQuery expression is usually a small percentage of the overall execution time, we are able to quickly report errors without forcing the user to wait for a potentially long query execution before reporting a problem

Returning Results from Multiple Models in a Single DMX Query
DMTeam
This tip shows how to query multiple models at the same time and how to chain results from one query to another

SQL Server: How to Check the Status of a File Before Processing
Muthusamy Anantha Kumar
SQL Server Database administrators often copy(refer Fig 1.0) huge files, such as Full backup files and transaction log backup files from production to QA or from production to development environment and so on. Sometimes they need to copy source data files for importing. If they want to restore those Full backups or transaction log backup files or import those huge source files, they have to wait until the copy is complete

A simple Database Viewer - DBViewer
Uri N.
A simple database viewer to manipulate SQL Server data types (in particular: image, binary, varbinary and text)

Selecting the Ideal BI/Data Analytics Solution, Part 2
Mark Worthen
There are a number of items to consider in the technical considerations category. These are items which should be considered when considering deployment, interoperability, IT staff required and so forth

MCDBA - 70-229 SQL Server Design
techexams.net
The main purpose of creating and maintaining a database is to store data and later make it available through the use of queries. A query is a request for data in a database. Queries in Microsoft SQL Server are written using the Transact-SQL language. There are four statements that form the core of Transact-SQL queries. Understanding these four statements means understanding a big deal of T-SQL. Let’s look at each one at a time

MCDBA - 70-229 SQL Server Design. Developing the Logical Model
Abdul-Rahman Ali
Tables are database objects that represent real world entities and contain all the data related to the entities they represent. A table is made up of columns and rows. In tables, data is organized in a row-and-column format similar to a spreadsheet. For example, a table containing customer data can contain a row for each customer and columns representing the customers detailed information such as his name, address, country, and phone number

MCDBA - 70-229 SQL Server Design. Implementing the Physical Database
Abdul-Rahman Ali
A database is a data repository that is made up of a set of objects such as tables, stored procedures and views. Data stored in a database is usually related to a particular subject or theme, such as Inventory/Manufacturing information for a manufacturing company. Before creating a database, it is important to understand the different parts of a database and some design considerations

Don't let ADO compromise application performance
Edmond Woychowsky
Too often, an application that utilizes ActiveX Data Objects (ADO) suffers from poor performance. The problem can usually be blamed on about a half dozen incorrect choices made during coding. You can adopt some simple techniques to optimize ADO performance

Performance Implications of Various Cursor Types in Microsoft SQL Server
Edward Whalen
There are a number of different types of cursors that can be created and used in Microsoft SQL Server 2000 and SQL Server 7.0. By choosing the most efficient cursor type for your requirements you can not only speed up the application, but you can conserve valuable system resources as well. These resources consist of CPU time, I/O capacity, memory utilization and bus bandwidth. Different cursor types are design for different needs. In this paper, the various cursor types will be discussed and their performance implications will be detailed

Performance Tuning SQL Server Cursors
sql-server-performance.com
If possible, avoid using SQL Server cursors. They generally use a lot of SQL Server resources and reduce the performance and scalability of your applications. If you need to perform row-by-row operations, try to find another method to perform the task

Server Side Cursors and ADO Cursor Types
graz
Lately I've been doing a lot of performance tuning. At a number of different clients I've seen the same type of results in Profiler. They look something like this

Using SQL Server Cursors
Alexander Chigrik
In this article, I want to tell you how to create and use server side cursors and how you can optimize a cursor performance

SQL Server 2000 Service Pack 4: An overview
Serdar Yegulalp
Microsoft is about to bring out many new changes in SQL Server: the all-new SQL Server 2005, the intriguing SQL Server Express and SQL Server 2000 Service Pack 4. It's the last one that will probably have the most immediate impact for SQL Server users -- with its new collection of fixes, functionality expansions and feature add-ons for SQL Server

Microsoft IT Relies on Home-Grown Products—and Vice Versa
Markezich
Microsoft Corp. uses in-house its own technology such as the upcoming Visual Studio 2005 and SQL Server 2005 products—the integrated tool set and database products Microsoft will be delivering simultaneously later this year—even before they ship to the public. Ron Markezich, Microsoft's chief information officer, discussed with eWEEK Senior Editor Darryl K. Taft not only Microsoft's IT environment but how it is part of the Redmond, Wash., company's development process

SSIS: Federated Query support in Yukon/SSIS
Jamie Thomson's Blog
Yesterday I posted in reply to Philip Howard's article on The Register about Analysis Services' support for federated queries/Enterprise Information Integration (EII) through the use of data source views

Want to hear the latest on SQL Server 2005 from the big cheese? Want to get a go-live-license for SQL Serever 2005 Express Edition?
Mat Stephen's WebLog
I want to share with you a letter from Paul Flessner that has been sent to 'Testers of SQL Server 2005'. Why? Because if this is news to you, you are not a tester and if you’re reading this you are most likely interested in what’s going on with SQL Server 2005 behind the scene visible to you

SQL Server 2005 Update from Paul Flessner
Paul Flessner
Many partners and customers are readying themselves for the next generation of Microsoft products which includes SQL Server 2005 and Visual Studio 2005. Building on the success of SQL Server 2000, SQL Server 2005 promises to be the biggest release of SQL Server. When I say biggest, I’m not only talking about functionality but also biggest in terms of breakthroughs in performance, scalability, and availability. This release will also deliver unprecedented integration between Visual Studio 2005, .NET Framework and SQL Server 2005 as well as tight integration with other Windows Server System servers to deliver new levels of manageability and TCO across your entire environment. We have worked diligently to bring this technology to you, and we are confident that it will allow you to make the most of your existing skills and technologies to increase productivity and efficiency

Materialized Query Tables
KAREN'S SQL BLOG
You might be interested in reading about materialized query tables in large data warehouse systems from the DB2 point of view in David Beulke's article at http://www.zjournal.com/PDF/Beulke.pdf

Dr. Tom's Workshop: A Small Fish in a Big Pond
Tom Moreau
In Dr. Tom Moreau's March 2003 column—"Sleeping with Elephants"—he explained how to handle situations where data is heavily skewed to one value. This month, he has a go at the other end of the spectrum—getting at the small minority

Improving Performance with SQL Server 2000 Indexed Views
Gail Erickson, Lubor Kollar, Jason Ward
This document describes the new indexed views capability of SQL Server 2000 Enterprise Edition. Indexed views are explained and specific scenarios in which they may provide performance improvements are discussed. (17 printed pages)

Why .NET is the best thing to happen to software since OOP, Part II
Ken Henderson's WebLog
I didn't really finish the discussion of what I began in this blog, so I'll do so today. Why do I think .NET is the best thing to happen to software since OOP? Several reasons

Memory Utilization of SSIS
scalabilityexperts.com
Not too long ago, I was in LA doing a Yukon Ascend delivery for Hilton Hotels, and I had a student in my class who asked about the memory utilization of SSIS, the replacement for the old DTS. The student asked about two items in particular; one, can the service and the packages that run use more than 2 GB (or 3GB if the /3GB switch is in use) of memory? My answer, based on instinct told me no

April CTP has been released: What are the changes in the XML area
Michael Rys
As many of you probably already have heard, we have publicly released the April Community Tech Preview (CTP) and have also announced that we are continuing with CTPs instead of doing a Beta3. I agree with Adam: This is good for getting both more and better feedback from our customers. And it allows us to be more flexible with providing fixes and new developments earlier to customers. You can get the normal SQL Server Developer Edition through the MSDN Subscription download and as always SQL Server Express (and VisualStudio 2005 Beta2) from the MSDN site directly

sqlcmd Utility in SQL Server 2005
ExtremeExperts.com
Out of the many utilities that SQL Server 2005 has come up with I thought to take a sneak preview of the command line tools that got introduced with SQL Server 2005. Yes, sqlcmd Utility. Even though the intend is to use sqlcmd moving forward rather than the conventional osql command, we will take a quick tour of how we can use sqlcmd utility interactively, execute scripts and more

Running XQuery over multiple XML datatype instances
XQuery Inside SQL Server 2005
One of the limitations of using XQuery inside SQL Server 2005 is that you are limited to running your expressions over a single XML data type instance. It is usually possible to insert your XML into the database so that this is not a problem (e.g. placing all the XML data you want to query over into a single cell in the database), but you can also leverage the FOR XML functionality that initially shipped with SQL Server 2000 to acheive this

Selecting a Web Host for your SQL Server Driven Website Part 2
Jon Reade
Many of us have SQL Servers at work that we learn on, test with work, etc. But getting your own SQL Server for a website can be a tricky thing. Especially on a budget. Or maybe your company wants to have their website hosted. Before you spend any hard earned money, read part 2 of this two part series by Jon Reade on what to look for when setting up a SQL Server hosting company

The April CTP is Here and No Beta 3
Steve Jones
SQL Server 2005 is on everyone's mind, especially with SQL Server 2000 almost 5 years old. On Monday, April 18, Microsoft made an announcement that the April CTP was available, but there would be no Beta 3. Read Steve Jones take on this announcement as well as a few more details

Selecting a Web Host for your SQL Server Driven Website Part 1
Jon Reade
Many of us have SQL Servers at work that we learn on, test with work, etc. But getting your own SQL Server for a website can be a tricky thing. Especially on a budget. Or maybe your company wants to have their website hosted. Before you spend any hard earned money, read this two part series by Jon Reade on what to look for when setting up a SQL Server hosting company

MSSQL Server Reporting Services: Black Belt Components: Ad Hoc Sorting with Parameters
William Pearson
As I stated in my article Black Belt Components: Ad Hoc Conditional Formatting for OLAP Reports, I have found many uses for conditional formatting in reports over the years I have spent implementing enterprise Business Intelligence applications. One component of formatting is sorting, and many clients have expressed an interest in being able to dictate sorts in their reports at runtime. That is, they have asked, once they became aware of parameterization in the application involved, that they could request sorting upon a given column in the report, as well as to dictate that sorts be enforced in ascending or descending order

Microsoft to license betas for production use
Martin LaMonica
The software colossus is going to offer licences that will permit customers to use the betas of SQL Server and Visual Studio for production

Understanding SQL Server's WITH RECOMPILE option
Arthur Fuller
Sprocs are a useful tool, but they can hit your applications performance if you're not careful. We show you how to keep them on track

Bigger is Not Better: Controlling Data Warehouse Growth with Information Life Cycle Management
Robert Thompson
At a recent Gartner event, I spoke with an analyst - he shall remain nameless - who feigned surprise that anyone from the data warehousing world would want to talk to him about information life cycle management (ILM): "The content management people have adopted an ILM discipline to control growth, the application archiving business is growing at double digits, and yet every time I speak to someone from data warehousing, they want to brag about how big their warehouse is. You guys seem to be the last holdout of the 'size matters' camp!"

Data Integration: The Integration Strategy
Greg Mancuso and Al Moreno
Over the course of the last couple of articles we have been speaking about the different types of data integration strategies that are available. One of the consistent questions that we receive as feedback is, "How do we determine which method is right for our enterprise?" It is safe to say that there is no such thing as a one size fits all answer. Even within the same enterprise, varying groups may have needs that preclude one tool being right for every situation

Understanding the Three E's of Integration EAI, EII and ETL
Claudia Imhoff
Remember the story of Humpty Dumpty? All the King's horses and all the King's men couldn't put Humpty together again. Many IT professionals tell me that they often feel like they live in Humpty Dumpty land. Ever since the first two computer programs were written, IT has struggled with the resulting disintegration - putting the data and applications together again. Integration of data and applications across the enterprise has been the long-standing goal of many organizations; however, until recently, we have been limited in the technological help to achieve this goal

Using Solid State Disks to Boost Legacy RAID and Database Performance
Woody Hutsell
Database applications are at the core of almost every major business today. The unparalleled growth of large database applications however, has created severe performance issues for end users. Too many users, too many transactions, and too many queries are slowing down systems, costing additional business for many and grinding business to a halt for some

SSIS. Validation...
Kirk Haselden
Some questions keep popping up about validation and I thought I'd try to clarify it a bit

Caching in The SSIS Service
Kirk Haselden
Integration Services is of all things a platform. While some platforms are pretty useless until you actually build something with them, SDKs and APIs like DirectX etc (Yes, definitions of “platform“ differ) others are extremely functional out of the box, Windows, Office etc

T-SQL Enhancements - Ranking - ROWNUMBER()
The SQL Doctor is In
There are four new ranking functions that have been added to SQL Server 2005. Today I want to touch on the first of these. ROWNUMBER. This is a very useful function, but it has the worst name since my parents thought that Louis would be a nice name, forgetting that other children would find it ultra goofy. It gives you a unique value per row (or within a group), but it is actually a row position based on a particular ordering

[В начало]

ФОРУМ SQL.RU

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

Задай вопрос разработчику MsSQL!
как поместить строки в колонки ?
Устройство кластерного индекса
Импорт данных из MS Excel
Должен ли девелопер под MSSQL что-то компании Microsoft?
как выйти из DTS???
SQL 2005 ????
SQL Server Scheduled Job - Status: Failed
Тем, кто писал хр-процедуры на C++!!
Какой выигрыш даст переход с SQL Server 7 на 2005 и улучшение железа?
Задачка с собеседования на сообразительность !
Достаточно ли PAGLOCK?
После переноса хп с 6.5 на 2K существенное падение производительности.
Элементарное. Триггер. Проверить значение поля inserted...
проблема при заполнении таблицы Oracle9i из MS SQL-Сервера
опять репликация
Шестизначный идентификатор с заполнением случайными числами (Приложение ADP)
А есть ли какое поле для записи, которое бы ее идентифициоровало на уровне базы
Впрос про OPENDATASOURCE и OPENROWSET
Доступ к файловой системе из T-SQL

[В начало]

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

Переезд сервера в другой домен
MSMQ из триггера
анализ результатов профайлера
Линковка сервера Informix
ИНТЕРНИТЬ 2005. ПРИЗНАНИЕ ГОДА
Обмен данными
sp_setapprole
Linked Servers : ошибка авторизации
Service Pack 4 beta - оно есть?

[В начало]


Вопросы, предложения, коментарии, замечания, критику и т.п. оставляйте Виталию Степаненко и Александру Гладченко в форуме: Обсуждение рассылки

СЕМИНАРЫ  КОНФЕРЕНЦИИ

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



ПУБЛИКАЦИИ  АРХИВ


http://subscribe.ru/
http://subscribe.ru/feedback/
Подписан адрес:
Код этой рассылки: comp.soft.winsoft.sqlhelpyouself
Отписаться

В избранное