Click here to Skip to main content
15,895,462 members
Home / Discussions / Database
   

Database

 
GeneralRe: Job Schedule Pin
Saiyed Alam8-Sep-08 5:17
Saiyed Alam8-Sep-08 5:17 
GeneralRe: Job Schedule Pin
Wendelius8-Sep-08 6:01
mentorWendelius8-Sep-08 6:01 
QuestionDate Format Pin
ThangamSundar5-Sep-08 21:56
ThangamSundar5-Sep-08 21:56 
AnswerRe: Date Format Pin
Blue_Boy5-Sep-08 23:57
Blue_Boy5-Sep-08 23:57 
AnswerRe: Date Format Pin
PIEBALDconsult8-Sep-08 18:07
mvePIEBALDconsult8-Sep-08 18:07 
Questionspecify the name space returned from "FOR XML, XMLDATA" Pin
ONeil Tomlinson5-Sep-08 4:13
ONeil Tomlinson5-Sep-08 4:13 
AnswerRe: specify the name space returned from "FOR XML, XMLDATA" Pin
Wendelius6-Sep-08 9:09
mentorWendelius6-Sep-08 9:09 
QuestionSQL 2008 Uniqueidentifier Pin
JUNEYT5-Sep-08 4:07
JUNEYT5-Sep-08 4:07 
Hello!

The uniqueidentifier produces an automated value and it is not acting likely PK in Access database. Therefore I decided to create a uniqueidentifier function which produces a unique value. I defined the first column as an uniqueidentifier column in my table and assigned char(30) instead of uniqueidentifier newID() where I assign produced value.

My question is: is it still mandatory to define this column as uniqueidentifier NEWID() column and then later on assign the produced value to this column as shown example below or can I simply define a column which will be used as an uniqueidentifier column with a definition of Char(30) and then I assign the produces value to this column ?

What would be the prons and cons?

Regards,

<br />
<br />
DECLARE @GUID uniqueidentifier<br />
SET @GUID=NEWID()<br />
INSERT Item VALUES(@GUID,ProducedIdentifier)<br />
<br />
<br />



What a curious mind needs to discover knowledge is noting else than a pin-hole.


AnswerRe: SQL 2008 Uniqueidentifier Pin
PIEBALDconsult5-Sep-08 13:24
mvePIEBALDconsult5-Sep-08 13:24 
QuestionLoss of data from MS Access Database while running tests Pin
Pr@teek B@h!5-Sep-08 3:31
Pr@teek B@h!5-Sep-08 3:31 
AnswerRe: Loss of data from MS Access Database while running tests Pin
Blue_Boy5-Sep-08 3:37
Blue_Boy5-Sep-08 3:37 
GeneralRe: Loss of data from MS Access Database while running tests Pin
Pr@teek B@h!8-Sep-08 4:29
Pr@teek B@h!8-Sep-08 4:29 
QuestionHow to get an ID of the last inserted row of a table Pin
makumazan845-Sep-08 2:54
makumazan845-Sep-08 2:54 
AnswerRe: How to get an ID of the last inserted row of a table Pin
Blue_Boy5-Sep-08 3:18
Blue_Boy5-Sep-08 3:18 
GeneralRe: How to get an ID of the last inserted row of a table Pin
makumazan845-Sep-08 4:55
makumazan845-Sep-08 4:55 
GeneralRe: How to get an ID of the last inserted row of a table Pin
Blue_Boy5-Sep-08 5:00
Blue_Boy5-Sep-08 5:00 
GeneralRe: How to get an ID of the last inserted row of a table Pin
Ashfield5-Sep-08 9:24
Ashfield5-Sep-08 9:24 
GeneralRe: How to get an ID of the last inserted row of a table Pin
Blue_Boy5-Sep-08 9:26
Blue_Boy5-Sep-08 9:26 
AnswerRe: How to get an ID of the last inserted row of a table Pin
nelsonpaixao7-Sep-08 12:37
nelsonpaixao7-Sep-08 12:37 
Questionsql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
manish.singhal5-Sep-08 2:33
manish.singhal5-Sep-08 2:33 
AnswerRe: sql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
Blue_Boy5-Sep-08 3:22
Blue_Boy5-Sep-08 3:22 
GeneralRe: sql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
manish.singhal6-Sep-08 2:29
manish.singhal6-Sep-08 2:29 
Questiontime out expired Pin
brettokumar4-Sep-08 21:12
professionalbrettokumar4-Sep-08 21:12 
AnswerRe: time out expired Pin
Blue_Boy4-Sep-08 21:38
Blue_Boy4-Sep-08 21:38 
AnswerRe: time out expired Pin
Paddy Boyd4-Sep-08 23:54
Paddy Boyd4-Sep-08 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.