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

Database

 
GeneralRe: character found after end of sql statement Pin
chandru7022-Nov-11 16:52
chandru7022-Nov-11 16:52 
QuestionHow to add Dynamic Colunms in a report Pin
Bonginkoci21-Nov-11 23:21
Bonginkoci21-Nov-11 23:21 
AnswerRe: How to add Dynamic Colunms in a report Pin
SilimSayo22-Nov-11 6:16
SilimSayo22-Nov-11 6:16 
Questioncan a trigger have parameters Pin
yousefshokati21-Nov-11 19:42
yousefshokati21-Nov-11 19:42 
AnswerRe: can a trigger have parameters? Pin
Shameel21-Nov-11 22:51
professionalShameel21-Nov-11 22:51 
AnswerRe: can a trigger have parameters Pin
Corporal Agarn22-Nov-11 3:01
professionalCorporal Agarn22-Nov-11 3:01 
GeneralRe: can a trigger have parameters Pin
yousefshokati22-Nov-11 19:33
yousefshokati22-Nov-11 19:33 
GeneralRe: can a trigger have parameters Pin
SilimSayo23-Nov-11 10:59
SilimSayo23-Nov-11 10:59 
It is difficult to decipher what you really mean but let me take a a guess. You have a query that returns Personnel codes... I am assuming that you want to do something with personnel codes. If you are to use a trigger, then you must be peforming inserts, updates or deletes in a table. You said you're not doing DML, so triggers don't apply!

You don't describe the problem in sufficient detail but I'll make a guess. You're getting some values using a query and you want to do something based on the results returned. I think you need to do everything in a stored procedure.

Your stored procedure would have a section that queries for personnel codes.
It would also have a section that performs some action based on the personnel codes.

If you would describe the problem in sufficient detail, it would be easier to help. I would also suggest tha you avoid describing the problem in terms of the solution i.e. your problem description presupposes that triggers are the answer. Just state the problem in sufficient detail.
GeneralRe: can a trigger have parameters Pin
yousefshokati23-Nov-11 19:56
yousefshokati23-Nov-11 19:56 
GeneralRe: can a trigger have parameters Pin
Chris Meech24-Nov-11 5:05
Chris Meech24-Nov-11 5:05 
GeneralRe: can a trigger have parameters Pin
SilimSayo24-Nov-11 6:18
SilimSayo24-Nov-11 6:18 
GeneralRe: can a trigger have parameters Pin
Chris Meech24-Nov-11 6:29
Chris Meech24-Nov-11 6:29 
GeneralRe: can a trigger have parameters Pin
SilimSayo24-Nov-11 10:14
SilimSayo24-Nov-11 10:14 
AnswerRe: can a trigger have parameters Pin
vankireddy satish25-Nov-11 2:36
vankireddy satish25-Nov-11 2:36 
QuestionSQL Connection Error Pin
webpeon8020-Nov-11 13:56
webpeon8020-Nov-11 13:56 
AnswerRe: SQL Connection Error Pin
webpeon8020-Nov-11 14:53
webpeon8020-Nov-11 14:53 
AnswerRe: SQL Connection Error Pin
thatraja23-Nov-11 20:05
professionalthatraja23-Nov-11 20:05 
Questionhow to make self backup to sql-server-2008 ? Pin
Gali197820-Nov-11 7:57
Gali197820-Nov-11 7:57 
AnswerRe: how to make self backup to sql-server-2008 ? Pin
Mycroft Holmes20-Nov-11 12:09
professionalMycroft Holmes20-Nov-11 12:09 
AnswerRe: how to make self backup to sql-server-2008 ? Pin
Corporal Agarn21-Nov-11 9:23
professionalCorporal Agarn21-Nov-11 9:23 
QuestionShould every table have Primary key ? Pin
yousefshokati20-Nov-11 0:48
yousefshokati20-Nov-11 0:48 
AnswerRe: Should every table have Primary key ? Pin
Jörgen Andersson20-Nov-11 3:48
professionalJörgen Andersson20-Nov-11 3:48 
AnswerRe: Should every table have Primary key ? Pin
Eddy Vluggen20-Nov-11 7:11
professionalEddy Vluggen20-Nov-11 7:11 
AnswerRe: Should every table have Primary key ? Pin
Mycroft Holmes20-Nov-11 12:06
professionalMycroft Holmes20-Nov-11 12:06 
AnswerRe: Should every table have Primary key ? Pin
SilimSayo22-Nov-11 10:46
SilimSayo22-Nov-11 10:46 

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.