Hi All. I’m trying to load records into a SQL Server 2012 table that has its primary key column defined as a ‘uniqueidentifier, not null’ data type. It also has a constraint such that a new record must have the next sequential uniqueidentifier as its key value (the constraint uses the SQL Server newsequentialid() function).
As Data Services doesn’t recognise the ‘uniqueidentifier’ datatype, I’m failing to load the table. Has anyone elsewhere managed to implement this scenario?
If you remove the PK from the field in the data store then do not include the field in your query (let SQL server handle it) then it should load and increment by one with each value you have from source.
Only tested this with a couple of records but seemed to work ok on 4.2 with SQL server 2012.
Sorry misread the initial post, I created a table with the attached script. When I import the table into my DS it recognises It as Varchar I then followed similar steps above and the table loads the values I present and generates the unique ID’s.
Does your data store not even recognise the column? mytable.txt (0.0 KB)