权限不允许我查看AWS RDS中已还原的SQL Server数据库上的表

时间:2019-03-26 14:56:27

标签: sql-server amazon-web-services amazon-rds

我使用以下命令将数据库还原到AWS RDS:

addQuestion = e => {
  this.setState({
     questions : [...this.state.questions, e.target.value]
   })
  }

  onSubmit() {
    const newIntent = {
        name: this.state.name,
        questions: this.state.questions
    }
    this.props.addNewIntent(newIntent, this.props.history);
}

import axios from "axios";

export const addNewIntent = (newIntent, history) => async dispatch => {

    await axios.post("http://localhost:8081/intents", newIntent);
};

问题是,即使数据库看起来像已还原,我也看不到实际数据库中的任何内容。

当我尝试选择语句时

exec msdb.dbo.rds_restore_database 
              @restore_db_name='database_name', 
              @s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension';

它们产生一个权限被拒绝的错误。当我尝试通过Management Studio查看表甚至扩展数据库时,出现权限错误。

为什么会这样?如何给已登录用户的总访问权限?

0 个答案:

没有答案