how to default a guid?

M

Mike R

Hi,

I'm fairly new to Infopath and would appreciate being pointed in the correct
direction.

I have a SQL database which contains 1 table with some columns. The primary
key is of type uniqueidentifier.

I have created an Infopath form against a dataconnection for this table. I
dont want the user to enter in a guid. How can I default a new guid in the
control which is bound to the primary key of the table?

Thanks

Mike
 
M

Mike R

Thanks


Henning Krause said:
Hello,

generally, you can let the SQL Server generate a unique ID (set the
default value of the column to "newid()").

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


Mike R said:
Hi,

I'm fairly new to Infopath and would appreciate being pointed in the
correct direction.

I have a SQL database which contains 1 table with some columns. The
primary key is of type uniqueidentifier.

I have created an Infopath form against a dataconnection for this table.
I dont want the user to enter in a guid. How can I default a new guid in
the control which is bound to the primary key of the table?

Thanks

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top