Обновление SQL Server 2000 к 2005 или 2008 - DTS к SSIS

Проблема заключается в переходе. Вы переходите с 444 градусов назад на 90 градусов, когда секунды переходят с 59 на 0, поэтому вы кратко видите стрелку где-то на циферблате, когда браузер применяет переход CSS.

Если вы отключите переход при переходе от 59 к 0 (например, назад к 90 градусам), вы его не увидите. Обратите внимание, что это касается всех рук, а не только секунд.

const secondHand = document.querySelector('.second-hand');
const minuteHand = document.querySelector('.min-hand');
const hourHand = document.querySelector('.hour-hand');

function setDate() {
  const now = new Date();
  const seconds = now.getSeconds();
  const secondsDegrees = ((seconds / 60) * 360) + 90;
  if (secondsDegrees == 90) {
    secondHand.classList.add("no-transition");
  } else {
    secondHand.classList.remove("no-transition");
  }
  secondHand.style.transform = `rotate(${secondsDegrees}deg)`;

  const minutes = now.getMinutes();
  const minutesDegrees = ((minutes / 60) * 360) + 90;
  if (minutesDegrees == 90) {
    minuteHand.classList.add("no-transition");
  } else {
    minuteHand.classList.remove("no-transition");
  }
  minuteHand.style.transform = `rotate(${minutesDegrees}deg)`;

  const hours = now.getHours();
  const hoursDegrees = ((hours / 60) * 360) + 90;
  if (hoursDegrees == 90) {
    hourHand.classList.add("no-transition");
  } else {
    hourHand.classList.remove("no-transition");
  }
  hourHand.style.transform = `rotate(${hoursDegrees}deg)`;
}

setInterval(setDate, 1000);
html {
  background: #018DED url(http://unsplash.it/1500/1000?image=881&blur=50);
  background-size: cover;
  font-family: 'helvetica neue';
  text-align: center;
  font-size: 10px;
}

body {
  margin: 0;
  font-size: 2rem;
  display: flex;
  flex: 1;
  min-height: 100vh;
  align-items: center;
}

.clock {
  width: 30rem;
  height: 30rem;
  border: 20px solid white;
  border-radius: 50%;
  margin: 50px auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), inset 0 0 0 3px #EFEFEF, inset 0 0 10px black, 0 0 10px rgba(0, 0, 0, 0.2);
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateY(-3px);
  /* account for the height of the clock hands */
}

.hand {
  width: 50%;
  height: 6px;
  position: absolute;
  top: 50%;
  transform-origin: 100%;
  transform: rotate(90deg);
  transition: all 0.05s;
  transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.no-transition {
  transition: none;
}

.hour-hand,
.min-hand {
  background: black;
}

.second-hand {
  background: red;
}
<div class="clock">
  <div class="clock-face">
    <div class="hand hour-hand"></div>
    <div class="hand min-hand"></div>
    <div class="hand second-hand"></div>
  </div>
</div>

5
задан Cade Roux 23 April 2009 в 02:51
поделиться

4 ответа

Создание резервной копии и восстановление для обновления сервера базы данных имеет много ошибок. Лучше всего выполнить обновление на месте (сначала вам может потребоваться сделать полную резервную копию сервера), и пусть установщик MS сделает всю работу. 2005 поддерживает 2000 пакетов DTS как Legacy, поэтому нет необходимости изучать SSIS и конвертировать все ваши пакеты, если у вас нет времени и не слишком много.

Что касается обновления резервного копирования и восстановления, не забудьте о:

  1. логины, вам нужно их перенести, см. KB246133 для получения более подробной информации.
  2. Любые предоставленные права пользователя и роли. к системным базам данных нужно будет воссозданный или перенесенный
  3. связанный сервер или удаленные серверы необходимо будет переустановить
  4. Агенты агента SQL Server должны быть экспортированы-импортированы
  5. Требуются любые расширенные хранимые процедуры воссоздан
  6. Репликация должна быть перенастроена
  7. Доставка журналов потребуется переустановка и резервный сервер также Модернизированный
7
ответ дан 18 December 2019 в 09:10
поделиться

DTS packages can still be run as usual in 2008 as long as Backwards Compatibility is installed. Here's the link to upgrading which uses a wizard.

5
ответ дан 18 December 2019 в 09:10
поделиться

There is a migration tool for DTS packages, but I wouldn't use it. SSIS is so much better than DTS that you should:

  1. Learn about SSIS. Get comfortable with it. Rejoice at having actual control flow.
  2. Take the time to understand and document your existing DTS packges while you've still got the environment they're written for.
  3. Use that understanding to write equivalent SSIS packages.

This idea will make no sense to you if you don't know SSIS. For instance, I was just thinking about how I used to have to do loops in DTS - that whole business with finding and modifying the precedence constraint you wanted to loop back to.

SSIS actually has a For Loop container that can loop over a set of numbers, over the rows in a rowset, over files in a folder, etc. No hacks with precedence constraints and little hidden scripts.

6
ответ дан 18 December 2019 в 09:10
поделиться

Я бы порекомендовал инструмент от Pragmatic Works под названием DTS xChange. Он выполняет большую часть миграции и помогает вам продолжить работу. У вас будут другие возможности изучить SSIS по новому, но вам, вероятно, придется завершить свой проект. Его можно загрузить по адресу http://www.pragmaticworks.com

0
ответ дан 18 December 2019 в 09:10
поделиться
Другие вопросы по тегам:

Похожие вопросы: