PC Review


Reply
Thread Tools Rate Thread

how to add Guid in Primary Key automatically, in "Replication ID"field size type?

 
 
Omer kamal
Guest
Posts: n/a
 
      16th Sep 2005

When in database(.mdb) the primary key have fields size type
"Replication ID" it creates Guid.

I tried to create string of Guid and insert it but did it not work.

Control.databindings.add(), Method for this field is only working one
way that,it is not saving back the data into table.

I wonder if there is some way so it creat automatic Guid when I add new
field?

I notice in Long integer "field size" type it does itself but not in
Guid (Replication ID) case.



Regards,
omer kamal
 
Reply With Quote
 
 
 
 
Scott Roberts
Guest
Posts: n/a
 
      16th Sep 2005

"Omer kamal" <(E-Mail Removed)> wrote in message
news:dgfhng$gjn$(E-Mail Removed)...
>
> When in database(.mdb) the primary key have fields size type
> "Replication ID" it creates Guid.
>
> I tried to create string of Guid and insert it but did it not work.


Insert the Guid as a string enclosed in {} (e.g. '{guid_string}').

To have SQL Server automatically generate a Guid when you insert a row, set
the default value for the column to "(newid())".


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I make a field data type a choice ("x" or "y") instead yes/no Jeff Microsoft Access 2 20th Jan 2010 06:19 AM
how to create primary key of type "text" =?Utf-8?B?TW9l?= Microsoft Access Database Table Design 6 31st Jan 2007 03:47 AM
When I type "BVE" in a cell, it automatically chanegs to"BE"..Why =?Utf-8?B?RUxG?= Microsoft Excel Misc 1 28th Jul 2006 07:44 PM
Problem with "Lookup Wizard" and Tables with Decimal-type Primary Keys? C. M. Microsoft Access 6 13th Feb 2006 07:21 AM
<input id="iPhoto" type="file" size="20" runat="server"> Mark Sandfox Microsoft ASP .NET 1 11th May 2004 02:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 PM.