Hello all, I have been away from this for some time now and am CERTAINLY rusty.. however I haven't had this particular error before. This is really more of an SQL error than a shaiya problem but this being a typical scenario for many of you I thought I'd ask here. In MSSQL Server 2012 I was syncing up my database to my client files, generating the .sql files from Castor's new version of shStudio (v7.5.5) most went fine... as normal.. but running the query for PS_GameDefs.dbo.Skills and it is formatted as follows
I get the following error
Now I have looked around for the answer for this (outside of shaiya development AND in) but I am either not finding it or it is just not clicking in my head. I have tried adding
to the beginning of the query to no effect, same error. The only other solution i have found is to name the identity of each column.. for each comma separated entry, and this being an insert of 6000+ lines that just isnt a viable solution. I am sure the query could be written to accomplish this but that is a little deeper than I have learned (so far) and I just don't think this is normally this problematic.. else I don't think Castor, being among the best I've seen developing here would have them generated in the format they are. More than anything I just want to learn something, as I normally never ask for help unless I am at my wits end lol. Any help is greatly appreciated.
Code:
DELETE FROM [PS_GameDefs].[dbo].[Skills] WHERE SkillLevel<100; GO INSERT INTO PS_GameDefs.dbo.Skills values (1,1,'Strength Training Lv1',6,1,0,1,0,0,0,0,1,0,1,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,2,'Strength Training Lv2',6,1,0,1,0,0,0,0,12,0,2,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,3,'Strength Training Lv3',6,1,0,1,0,0,0,0,23,0,2,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,4,'Strength Training Lv4',6,1,0,1,0,0,0,0,34,0,2,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,5,'Strength Training Lv5',6,1,0,1,0,0,0,0,45,0,2,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,6,'Strength Training Lv6',6,1,0,1,0,0,0,0,56,0,2,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,7,'Strength Training Lv7',6,1,0,1,0,0,0,0,67,0,3,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,8,'Strength Training Lv8',6,1,0,1,0,0,0,0,78,0,4,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) INSERT INTO PS_GameDefs.dbo.Skills values (1,9,'rfu',6,1,0,1,0,0,0,0,0,0,0,1,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,GetDate()) etc.. etc... you get the idea it's long
Code:
(0 row(s) affected) Msg 8101, Level 16, State 1, Line 1 An explicit value for the identity column in table 'PS_GameDefs.dbo.Skills' can only be specified when a column list is used and IDENTITY_INSERT is ON
Code:
SET IDENTITY_INSERT [PS_GameDefs].[dbo].[Skills] ON GO