• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Update TABLE Fields with a unique GUID

Can someone please help me with a script, that updates a field with a unique GUID for about 400 records please.

Because of a bug with our current ERP system, I need to dump something unique into these fields as a temp fix.
0
chrisryhal
Asked:
chrisryhal
  • 2
1 Solution
 
Aneesh RetnakaranDatabase AdministratorCommented:
Hello chrisryhal,

whats the datatype of those field

Regards,

aneeshattingal
0
 
chrisryhalAuthor Commented:
I already know it will accept a GUID because in my C# I'm generating one and stuffing it for NEW records, but this is just a fill in more or less.  Bluntly a pain in my butt is what it REALLY is (GRIN).

The datatype is datatype though is varchar(50)

0
 
Aneesh RetnakaranDatabase AdministratorCommented:
update urTable
set urColumn = newid()
where urcolumn is null
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now