Re: ODBC Error:23000:-1053: Primary key cant contain null value

Jorge Pocaterra ( (no email) )
Tue, 19 May 1998 16:54:15 -0400

The SQL Statement is

INSERT INTO calls (CallDate,AcctStatusType,AcctDelayTime,UserName,NasPort,
FramedAddress,AcctinputPackets,AccountOutputPackets, AcctInputOctets,

ODBC Error:23000:-1053:
[Microsoft][ODBC Microsoft access 97 driver] index or primary key
can't contain null value

i'm also geting other error :

SQL statement: INSERT INTO RadLogs(RadLogMsgID, LogDate, UserName, Data)
VALUES (11, Now, 'userlogin', 'password')

ODBC Error:23000:-1605:
[Microsoft][ODBC Microsoft access 97 driver] The Changes you requested to
the table where not succesfull because they would create duplicate values in
the index, primary key, or relationship. change the data in the field or
fields that contain duplicate data, remove the index, or redefine the index
to permit duplicate entries and try again

But this is hapenning only with the computone PowerRack and not with the
Totalcontrol and they are authenticating in the same radius ...

I have checked the database over and over

the primary key fields for calls are
Nasidentifier,nasport, acctsesionID,acctsessiontype,calldate

Thanks in advance

-----Original Message-----
From: Dale E. Reed Jr. <>
To: <>
Date: Tuesday, May 19, 1998 2:12 PM
Subject: Re: ODBC Error:23000:-1053: Primary key cant contain null value

>Jorge Pocaterra wrote:
>> i'm running radiusNT 2.5.107 with a Computone PowerRack and a USR
>> Totalcontrol, now everithing is running well with the Totalcontrol but
>> radius receives the stop record from the computone it gives me the
>> error
>> ODBC Error:23000:-1053:
>> [Microsoft][ODBC Microsoft access 97 driver] Index or index or primary
>> cant contain null value
>> What could be wrong with the data base?
>> I had the Powerrack working on an other radius server runing RadiusNT
>> and it was working well.
>You need to include the whole request (or atleast the whole SQL statement)
>for us to detrmine more about the error. You can go into Access and
>add a default value for each of the primary key fields and that should
>help resolve most of these problems.
>Dale E. Reed Jr. (
> IEA Software, Inc. | RadiusNT, Emerald, and NT FAQs
> Internet Solutions for Today |