Hi all,
I am using SQL server 2000 and ASP. I want to insert random number into of the database fields and not sure of how to do.
Presently i have set field "RandNum" as 'nvarchar' type. I want my table to look like the following.
EmpName|ReqID|desc|RandNum
__________________________
John|191|Printer Jammed|123SFSW
The first 3 fields are entered by the user in one of the forms and i want to populate the fourth field with a random.
Should i do this in ASP programming code or in the database??
Any Suggestions.
Thanks in advance.
I am using SQL server 2000 and ASP. I want to insert random number into of the database fields and not sure of how to do.
Presently i have set field "RandNum" as 'nvarchar' type. I want my table to look like the following.
EmpName|ReqID|desc|RandNum
__________________________
John|191|Printer Jammed|123SFSW
The first 3 fields are entered by the user in one of the forms and i want to populate the fourth field with a random.
Should i do this in ASP programming code or in the database??
Any Suggestions.
Thanks in advance.