Click here to Skip to main content
15,887,332 members
Home / Discussions / Database
   

Database

 
AnswerRe: Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location Pin
Scubapro2-Dec-10 5:05
Scubapro2-Dec-10 5:05 
GeneralRe: Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location Pin
NeverHeardOfMe4-Dec-10 0:42
NeverHeardOfMe4-Dec-10 0:42 
AnswerRe: Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location PinPopular
T M Gray2-Dec-10 11:38
T M Gray2-Dec-10 11:38 
AnswerRe: Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location Pin
Hiren solanki3-Dec-10 2:19
Hiren solanki3-Dec-10 2:19 
GeneralRe: Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location Pin
NeverHeardOfMe4-Dec-10 0:38
NeverHeardOfMe4-Dec-10 0:38 
Questionunable to start the SQL Full Text Search Service from SQL Server Configuration Manager Pin
MahaKh1-Dec-10 20:07
MahaKh1-Dec-10 20:07 
AnswerRe: unable to start the SQL Full Text Search Service from SQL Server Configuration Manager Pin
Pete O'Hanlon1-Dec-10 23:49
mvePete O'Hanlon1-Dec-10 23:49 
QuestionRetrieving the new defalt value of a uniqueidentifier Pin
henry19511-Dec-10 14:41
henry19511-Dec-10 14:41 
I created a set of tables in which the primary keys are set to uniqueidentifiers with a default value of newid(), which is the function that generate new guids in Transact-SQL. While I can create a uniqueidentifier variable and initialize it before inserting a row, that would obviate the reason for creating a default value in the first place.

But unlike an identity field, there is no function, that I can think of that would retrieve the most recently created uniqueidentifier. I would like to use this value within the body of a stored procedure but I can't think of any way to get it short of creating it ahead of time and not using the default value mechanism.

I could access the new value in a trigger, but then how would I pass that back to the stored procedure? I don't think that a trigger is the way to do this, but I don't know.

Can anyone show me a way to do this?
AnswerRe: Retrieving the new defalt value of a uniqueidentifier PinPopular
Mycroft Holmes1-Dec-10 15:44
professionalMycroft Holmes1-Dec-10 15:44 
AnswerRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 4:19
mvePIEBALDconsult4-Dec-10 4:19 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
henry19514-Dec-10 5:16
henry19514-Dec-10 5:16 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 8:26
mvePIEBALDconsult4-Dec-10 8:26 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Joe DiNatale6-Dec-10 11:08
Joe DiNatale6-Dec-10 11:08 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Mycroft Holmes4-Dec-10 11:42
professionalMycroft Holmes4-Dec-10 11:42 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 12:53
mvePIEBALDconsult4-Dec-10 12:53 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Mycroft Holmes4-Dec-10 14:45
professionalMycroft Holmes4-Dec-10 14:45 
QuestionSQL database works on IIS but not in client machines Pin
saud_a_k30-Nov-10 20:45
saud_a_k30-Nov-10 20:45 
AnswerRe: SQL database works on IIS but not in client machines Pin
Rajesh Anuhya30-Nov-10 22:31
professionalRajesh Anuhya30-Nov-10 22:31 
GeneralRe: SQL database works on IIS but not in client machines Pin
saud_a_k1-Dec-10 0:35
saud_a_k1-Dec-10 0:35 
GeneralRe: SQL database works on IIS but not in client machines Pin
Eddy Vluggen1-Dec-10 7:03
professionalEddy Vluggen1-Dec-10 7:03 
GeneralRe: SQL database works on IIS but not in client machines Pin
saud_a_k3-Dec-10 18:48
saud_a_k3-Dec-10 18:48 
GeneralRe: SQL database works on IIS but not in client machines Pin
Eddy Vluggen4-Dec-10 2:18
professionalEddy Vluggen4-Dec-10 2:18 
AnswerRe: SQL database works on IIS but not in client machines Pin
G-Tek4-Dec-10 5:41
G-Tek4-Dec-10 5:41 
QuestionMaintain max x records Pin
Eduard Keilholz29-Nov-10 22:45
Eduard Keilholz29-Nov-10 22:45 
AnswerRe: Maintain max x records Pin
Mycroft Holmes30-Nov-10 0:05
professionalMycroft Holmes30-Nov-10 0:05 

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.