Just getting ready to move the production server this weekend. Fixing the typo does not resolve the problem. See the SQL code below...
Part 2 gets this error....
Msg 257, Level 16, State 3, Line 2
Implicit conversion from data type nvarchar to varbinary is not allowed. Use the CONVERT function to run this query.
/******* Part 1 **********/
SET QUOTED_IDENTIFIER OFF
if exists (select * from DYNAMICS..sysobjects
where id = Object_id('DYNAMICS..RecoveryMasterPDK') and type = 'U')
begin drop table DYNAMICS..RecoveryMasterPDK end
go
CREATE TABLE DYNAMICS..RecoveryMasterPDK (
name char(15) not null unique,
password varbinary(256) null,
DEX_ROW_ID int IDENTITY(1,1) not null )
go
/*****************/
/****** Part 2 ***********/
insert DYNAMICS..RecoveryMasterPDK (name, password)
select name, password from master..syslogins
where name in (select USERID from DYNAMICS..PDK40001)
and name not in ('sa', 'DYNSA')
/*****************/
This change seems to get passed the error, changing the create table "Password" field.
Will this work all the way through the move to the new server?
/*****************/
CREATE TABLE DYNAMICS..RecoveryMasterPDK (
name char(15) not null unique,
password nvarchar(256) null, /*<-------------*/
DEX_ROW_ID int IDENTITY(1,1) not null )
go
/*****************/