I'm trying to write to a database (MS SQL Server 2000) using CVI. When I create a record and use DBPutRecord, I get an error because my primary key cannot accept a "NULL" value. I understand from the function panel for DBPutRecord that I should set the status variable to DB_NO_DATA_CHANGE (because the primary key is read-only) however, I am unsuccessful in finding a viable way to do this. I assumed I could do it using the DBMapCol but I still receive errors. I also tried using DBSetColumnAttribute, but get an error ("Invalid Statement or connection handle"). The handle is correct and I'm not aware of any problem with the statement (seems pretty straighforward.) Any suggestions for setting the status variable for my primary key column would be greatly appreciated!