Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL error when trying to upload data

Status
Not open for further replies.

wasisnt

IS-IT--Management
Jan 13, 2006
270
US
We use SQL 2000 for our website and recently moved to a new SQL 2000 server and imported the data etc. We use a web interface that allows our customer relations person to upload data such as text and images to the site and it puts it in the database for him. Now that its been moved he is getting this error and cant upload anything. I think its a simple fix but I dont know much about SQL. Here is the error.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'MediaID', table 'PUDWEB.dbo.Media'; column does not allow nulls. INSERT fails.
/admin/Media_form2.asp, line 44
Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Page:
POST 174967 bytes to /admin/Media_form2.asp
POST Data:
error '80020009'
Exception occurred.
/iisHelp/common/500-100.asp, line 223

MCSE NT 4.0, MCSA (Server 2003), A+ & Network +

Free Computer Help and Tips:
 
The table definition for PUDWEB.dbo.Media may be different from the source table. Perhaps MediaID was an Identity column in the original, and is not in the new table?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top