Well, this is a pretty subtle syntax error. And I'm not sure yet
if it is on the part of the user or the server :-)
Without a comma following the definition of acsenflag, the
server is trying to apply the "primary key" constraint to the
acsenflag column (the parser never even gets to the "(ucbid)" part.
Consider the difference between these two statements:
create table foo (x int not null, y int not null primary key)
create table foo (x int not null, y int not null, primary key (x))
--
Bret Halford Imagine my disappointment
Sybase Technical Support in learning the true nature
3665 Discovery Drive of rec.humor.oracle...
Boulder, CO 80303
*********************************************************
return address changed to prevent spamming
Remove "NOSPAM" in the return address
Maxine Gerber
PCG Systems
*********************************************************
Oh, you're good! I don't know if I ever would have spotted that. I've been
programming for about a million years, and it's always the little things that
stump me. Thank heavens for the internet - I could have wasted a lot of time
on that one.
Thanks!
-Maxine
"7325 - Nulls not allowed in a primary key column ascenflag"
They do this all over the place. Error messages without context. If you
know that column#13 had a bad BCP insert, give me the damn column name
so that at two o'colok in the morning I don't have to count lines on an
sp_help output!
Yeah, I agree. Its a real nuisance. So join ISUG and start campaigning
for enhancements like this (only to see "NO PLANS" as the reply
while they concentrate on useless marketing gimmicks!).
-am