Click here to Skip to main content
15,893,401 members
Home / Discussions / Database
   

Database

 
AnswerRe: Getting Data for current month - Urgent Pin
nelsonpaixao17-Sep-08 12:16
nelsonpaixao17-Sep-08 12:16 
AnswerRe: Getting Data for current month - Urgent Pin
RyanEK17-Sep-08 14:28
RyanEK17-Sep-08 14:28 
AnswerRe: Getting Data for current month - Urgent Pin
notes4we18-Sep-08 3:09
notes4we18-Sep-08 3:09 
QuestionUnique key Pin
topcatalpha17-Sep-08 3:39
topcatalpha17-Sep-08 3:39 
AnswerRe: Unique key Pin
PIEBALDconsult17-Sep-08 3:58
mvePIEBALDconsult17-Sep-08 3:58 
GeneralRe: Unique key Pin
topcatalpha17-Sep-08 4:23
topcatalpha17-Sep-08 4:23 
GeneralRe: Unique key Pin
nelsonpaixao17-Sep-08 12:23
nelsonpaixao17-Sep-08 12:23 
QuestionHow to get last row from a table? Pin
JUNEYT17-Sep-08 3:17
JUNEYT17-Sep-08 3:17 
Hi!

I am a newbee to SQL and I am trying to write a trigger. My aim is to realize a triger when a new record has been made in TABLE (A), and identical record will be written in TABLE (B) please see the example below. What intriques my mind is, would it be the last record in TABLE(A) which will be written in TABLE(B) with the definition below.

If you give me a correct example, I would really appreciate it.

Thanks.

<br />
CREATE TRIGGER Trigger2<br />
ON dbo.Customer<br />
FOR /* INSERT, UPDATE, DELETE */<br />
INSERT INTO Administration (AccountStatus, UserType, UserLoginId,UserPassword,PasswordReminder,PasswordReminderAnswer,IsUserLoggedIn)<br />
VALUES (False, <br />
        Customer.Usertype,<br />
        Customer.UserLoginId,<br />
        Customer.UserPassword,<br />
        Customer.PasswordReminder,<br />
        Customer.PasswordReminderAnswer,<br />
        False)<br />
AS<br />
	/* IF UPDATE() ... */<br />
<br />



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


AnswerRe: How to get last row from a table? Pin
Giorgi Dalakishvili17-Sep-08 3:34
mentorGiorgi Dalakishvili17-Sep-08 3:34 
AnswerNo Last Row Pin
David Mujica17-Sep-08 6:15
David Mujica17-Sep-08 6:15 
AnswerRe: How to get last row from a table? Pin
nelsonpaixao17-Sep-08 12:29
nelsonpaixao17-Sep-08 12:29 
QuestionDatabase optimization Pin
Mohammed Hameed17-Sep-08 0:01
professionalMohammed Hameed17-Sep-08 0:01 
AnswerRe: Database optimization Pin
Ashfield17-Sep-08 1:14
Ashfield17-Sep-08 1:14 
AnswerSQL Profiler Pin
David Mujica17-Sep-08 2:34
David Mujica17-Sep-08 2:34 
GeneralRe: SQL Profiler Pin
Mohammed Hameed19-Sep-08 0:04
professionalMohammed Hameed19-Sep-08 0:04 
Questionhow to restrict database administrator to open particular database on server? Pin
harminder.datla16-Sep-08 21:31
harminder.datla16-Sep-08 21:31 
AnswerRe: how to restrict database administrator to open particular database on server? Pin
Ashfield16-Sep-08 21:41
Ashfield16-Sep-08 21:41 
AnswerRe: how to restrict database administrator to open particular database on server? Pin
Wendelius19-Sep-08 9:17
mentorWendelius19-Sep-08 9:17 
Questionwhy ldap server is needed ? Pin
Sakthiu16-Sep-08 19:52
Sakthiu16-Sep-08 19:52 
QuestionImporting database from one db to other db Pin
mrcsn16-Sep-08 8:28
mrcsn16-Sep-08 8:28 
AnswerRe: Importing database from one db to other db Pin
Giorgi Dalakishvili16-Sep-08 8:41
mentorGiorgi Dalakishvili16-Sep-08 8:41 
AnswerRe: Importing database from one db to other db Pin
razov16-Sep-08 22:35
razov16-Sep-08 22:35 
GeneralRe: Importing database from one db to other db Pin
Mohammed Hameed16-Sep-08 23:57
professionalMohammed Hameed16-Sep-08 23:57 
Questionhow to create database setup? Pin
sathyan_829416-Sep-08 6:20
sathyan_829416-Sep-08 6:20 
AnswerBad question Pin
David Mujica16-Sep-08 7:35
David Mujica16-Sep-08 7:35 

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.