If that's what you're talking about (MSSQL Server), it can do autonumbers.
You just have to set it to non-null, identity seed=1, identity increment=1. Use
Enterprise Manager the first time.
David
"Sean M. O'Brien" wrote:
>
> I had the same problem when I imported data from Access to SQL. I fixed it
> by using the Upsizing Wizard in Access 2000. It took care of all that stuff.
>
> Sean
>
> -----Original Message-----
> From: Bill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 9:42 PM
> To: [EMAIL PROTECTED]
> Subject: RE: SQL ID
>
> This may help.
>
> Bill Guttman
> http://www.katungroup.com/coldfusionlinks2.htm
>
> <!--- Generic Routine for generating Random Database Keys --->
> <CFSCRIPT>
> DO {Variables.RandomBig = 40 * RandRange(-50000000,50000000);
> Variables.RandomSmall = RandRange(1,40);
> Variables.RandomKey = Variables.RandomBig + Variables.RandomSmall;}
> WHILE (Variables.RandomKey IS 0);
> </cfscript>
>
> -----Original Message-----
> From: Randy Adkins [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 12, 2000 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: SQL ID
>
> Anyone know how to input a unique id within an SQL database?
> I have a field called Client_ID as uniqueidentifier and do NOT allow NULLS
>
> but it will not insert the ID as MS Access does.
>
> Thanks in advance.
>
> ----------------------------------------------------------------------------
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ----------------------------------------------------------------------------
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.