Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Inserting value into unique Identifier

This is a discussion on Inserting value into unique Identifier within the SQL Server forums, part of the Databases category; How can i insert value in a column of a table which has data type as unique Identifier...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2009
Junior Member
 
Join Date: Jul 2009
Location: Mysore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Debasish Mondal is on a distinguished road
Inserting value into unique Identifier

How can i insert value in a column of a table which has data type as unique Identifier
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-11-2009
Contributing Member
 
Join Date: Jun 2009
Location: United States
Posts: 71
Thanks: 0
Thanked 5 Times in 4 Posts
CSOOR is on a distinguished road
Re: Inserting value into unique Identifier

use NEWID() function as default, while creating the table with unique Identifier

eg.

col_name UNIQUEIDENTIFIER DEFAULT NEWID()
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

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
ORA-12154: TNS:could not resolve the connect identifier abhi_ratn Data Warehousing 1 02-11-2009 02:21 PM
Inserting value using FOR LOOP in PROCEDURE talha_saeed Oracle 3 01-04-2008 03:16 AM
Inserting instead of updating krishnaindia2007 Oracle 4 10-15-2007 08:38 AM
Error while inserting or updating Geek_Guest SQL 1 09-09-2007 11:28 AM
Retrieve value set through an Ordinal Identifier Geek_Guest QTP 0 07-03-2007 09:05 AM


All times are GMT -4. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved