instance / database / schema / object
login / user / schema (dbo)
sequence
PSM: Both Instance and DB need case insensitive
Windchill: Both Instance and DB as SQL_Latin1_General_CP1_CS_AS (Since 2012, it is Latin1_General_100_CS_AS_SC)
Cognos: DBs need case insensitive, can share same instance as Windchill
Upgrade:
About Microsoft SQL Server Collation settings in Windchill
SELECT SERVERPROPERTY('InstanceName')
wtuser needs to be WTUser
The user’s default schema is not wind
CREATE TABLE entryNumber_seq (dummy CHAR(1), value BIGINT IDENTITY(1,1))
go
CREATE PROCEDURE wt_get_next_sequence_entryNumber
AS
INSERT entryNumber_seq (dummy) VALUES ('x')
RETURN SCOPE_IDENTITY()
go
Note: the procedure changes to as below since 10.1, and then leads to CS128703
CREATE PROCEDURE wt_get_next_sequence_entryNumber
@returnValue BIGINT OUTPUT
AS
INSERT entryNumber_seq (dummy) VALUES ('x')
SELECT @returnValue = SCOPE_IDENTITY()
go
DECLARE @return_value int
EXEC @return_value = [wind].[wt_get_next_sequence_entryNumber]
SELECT 'Return Value' = @return_value
GO
SET IDENTITY_INSERT wind.entryNumber_seq ON
Insert into wind.entryNumber_seq(dummy, value) values ('x', 99999)
SET IDENTITY_INSERT wind.entryNumber_seq OFF
GO
OR
DBCC CHECKIDENT('entryNumber_seq', RESEED, 100014)
GO
SELECT TABLE_NAME,IDENT_INCR(TABLE_NAME) AS IDENT_INCR, IDENT_CURRENT(TABLE_NAME) as IDENT_CURRENT
FROM INFORMATION_SCHEMA.TABLES
where IDENT_CURRENT(TABLE_NAME)is not null
order by TABLE_NAME;