Click here to Skip to main content
15,896,489 members
Home / Discussions / Database
   

Database

 
GeneralRe: find store procedure Pin
Ashfield14-Jan-09 21:23
Ashfield14-Jan-09 21:23 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:59
George_George15-Jan-09 22:59 
GeneralRe: find store procedure Pin
J4amieC14-Jan-09 22:37
J4amieC14-Jan-09 22:37 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:51
George_George15-Jan-09 22:51 
GeneralRe: find store procedure Pin
J4amieC16-Jan-09 1:11
J4amieC16-Jan-09 1:11 
AnswerRe: find store procedure Pin
Hamid_RT15-Jan-09 21:04
Hamid_RT15-Jan-09 21:04 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:49
George_George15-Jan-09 22:49 
Questionsmarter ways to make a column value unique Pin
George_George14-Jan-09 2:01
George_George14-Jan-09 2:01 
Hello everyone,

I have a table and a couple of columns in this table. For some specific column, it is not primary key, but I want to accept only unique value for this specific column for each row.

Currently, my naive solution is to use a store procedure to handle table insertion and if in the store procedure I find there is already a row whose existing value for the specific column is the same as the new column value of the new row to be inserted, I will return error from the store procedure and refuse to insert the whole new row.

Any other smarter ways?

thanks in advance,
George
AnswerRe: smarter ways to make a column value unique Pin
Colin Angus Mackay14-Jan-09 2:17
Colin Angus Mackay14-Jan-09 2:17 
GeneralRe: smarter ways to make a column value unique Pin
George_George14-Jan-09 2:30
George_George14-Jan-09 2:30 
AnswerRe: smarter ways to make a column value unique Pin
Hamid_RT15-Jan-09 2:28
Hamid_RT15-Jan-09 2:28 
QuestionHow to generate XML reoprt programmatically using SQL Server Reporting Services Pin
DipaliG13-Jan-09 18:32
DipaliG13-Jan-09 18:32 
AnswerCross-post Pin
Wendelius13-Jan-09 21:54
mentorWendelius13-Jan-09 21:54 
QuestionSQL Server 2005 query execution time Pin
sujithkumarsl13-Jan-09 18:05
sujithkumarsl13-Jan-09 18:05 
AnswerRe: SQL Server 2005 query execution time Pin
RyanEK13-Jan-09 19:05
RyanEK13-Jan-09 19:05 
GeneralRe: SQL Server 2005 query execution time Pin
sujithkumarsl13-Jan-09 19:07
sujithkumarsl13-Jan-09 19:07 
AnswerRe: SQL Server 2005 query execution time Pin
Wendelius13-Jan-09 21:05
mentorWendelius13-Jan-09 21:05 
Questionsql group by and minimum Pin
swjam13-Jan-09 15:41
swjam13-Jan-09 15:41 
AnswerRe: sql group by and minimum Pin
Reza Raad13-Jan-09 17:26
Reza Raad13-Jan-09 17:26 
AnswerRe: sql group by and minimum Pin
RyanEK13-Jan-09 17:29
RyanEK13-Jan-09 17:29 
QuestionStored Procedure for Dynamic Table Creation Pin
Sunset Towers13-Jan-09 10:49
Sunset Towers13-Jan-09 10:49 
AnswerRe: Stored Procedure for Dynamic Table Creation Pin
Wendelius13-Jan-09 11:06
mentorWendelius13-Jan-09 11:06 
GeneralRe: Stored Procedure for Dynamic Table Creation Pin
Sunset Towers13-Jan-09 11:55
Sunset Towers13-Jan-09 11:55 
GeneralRe: Stored Procedure for Dynamic Table Creation Pin
Wendelius13-Jan-09 21:50
mentorWendelius13-Jan-09 21:50 
GeneralRe: Stored Procedure for Dynamic Table Creation Pin
Mycroft Holmes14-Jan-09 0:08
professionalMycroft Holmes14-Jan-09 0:08 

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.