前几天在做AlwaysOn实验时遇到搭建活动目录域时某台已经加入AD的机器无法以域管理员账户登录的情况. 报错信息是:The security database on the server does not have a computer account for this workstation trust relationship 经过Google后找到一篇有用博文. 起因死这样:原本活动目录域有台机器叫Main,是台DC.我后来把机器的名字改成了DC.然后另外一台机器用了这台域控原来的机器名…
https://support.microsoft.com/en-us/kb/904803 Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005 Email Print SYMPTOMS Consider the following scenario: In…
Managing Windows Azure SQL Database using SQL Server Management Studio You can use Windows Azure SQL Database Management Portal or the SQL Server Management Studio (SSMS) client application to administer your SQL Database subscriptions and create and…
今天费了九牛二虎之力,重转好了vs2010之后,打开解决方案,报出下面的错误: ---------------------------Microsoft Visual Studio---------------------------未能正确加载“VSTS for Database Professionals Sql Server Data-tier Application”包.此问题可能是由配置更改或安装另一个扩展导致的.可以在命令行中使用 /log 参数来运行应用程序,然后检查文件“C:\U…
1. Copy or remotely mount the backupset folder from the source server to the target server 2. On the target server, export ORACLE_SID as same as the source database and run "rman target /" 3. Restore spfile from backup: RMAN> startup nomount;…
首先确认通过TCP IP来连接连接SQLServer 2012     确保 Server Authentication选择了SQL Server and Windows Authentication mode     打开 SQL SERVER CONFIGURATION MANAGER, 选择数据库实例,把Named Pipes和TCP/IP Status修改为Enabled 双击TCP/IP,选择IP Addresses,把所有IP Enabled改为Yes, 把IPAll 的TCP Po…
My favorite way is to pipe a sqldump command to a sql command. You can do all databases or a specific one. So, for instance, mysqldump -uuser -ppassword myDatabase | mysql -hremoteserver -uremoteuser -premoteserverpassword You can do all databases wi…
打开本地的 SQL Server Management Studio.首先创建 Credentials.命令如下:   IF NOT EXISTS (SELECT * FROM sys.credentials WHERE credential_identity = 'BackupDBtoAzureStorageCredential') CREATE CREDENTIAL BackupDBtoAzureStora geCredential WITH IDENTITY = '[存储账号名称]' ,S…
Back up 1,右键选中需要备份的数据库,Tasks-->Backup 2.General中,Destination,先remove掉之前的,然后再Add 需要注意的是,add的文件,必须要以.bak为后缀名,否则后面restore的话,不会显示出备份的文件 Restore 1.在数据库服务器的Databases上右键,选择Restore Database 1.1  General选项卡 1.1.1选择Device进行浏览,找到之前备份的文件.在查看文件的时候,默认是查看.bak文件. 不过…