AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.10.2006, 16:40   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Dynamics AX Geek: SQLSYSTEMVARIABLES
Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!127.entry
==============
When restoring an Axapta database from a different server, you might have experienced the following error message:
 
[Microsoft][ODBC Database Server Driver][SQL Server] Invalid object name ‘SQLSYSTEMVARIABLES’.
 
The problem is your database user (default bmssa) can not access the SQLSYSTEMVARIABLES table. If the original and new SQL server use the same user id, the following query analyzer command should fix it:
 
exec sp_change_users_login 'update_one','bmssa','bmssa'
 
If that doesn’t help or user ids are different, try changing the database and object owners.
           
            exec sp_changedbowner 'bmssa'
 
changes the owner of the database. I have used this script to change the owner of tables.
 
DECLARE @oldOwner sysname, @newOwner sysname, @sql varchar(1000)
 
SELECT
  @oldOwner = 'AX30'
  , @newOwner = 'bmssa'
  , @sql = '
  IF EXISTS (SELECT NULL FROM INFORMATION_SCHEMA.TABLES
  WHERE
      QUOTENAME(TABLE_SCHEMA)+''.''+QUOTENAME(TABLE_NAME) = ''?''
      AND TABLE_SCHEMA = ''' + @oldOwner + '''
  )
  EXECUTE sp_changeobjectowner ''?'', ''' + @newOwner + ''''
 
EXECUTE sp_MSforeachtable @sql
 
 




==============
Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!127.entry
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX: Managing Your Supply Chain Using Microsoft Dynamics AX 2009 - Book Review Blog bot DAX Blogs 0 31.03.2009 23:06
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15
Сергей Герасимов: Что нового в Microsoft Dynamics AX 4.0 Blog bot DAX Blogs 0 16.01.2007 11:00
Dynamics AX: Why Dynamics AX beats SAP Blog bot DAX Blogs 0 10.01.2007 23:15

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 13:07.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.