Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
GeneralRe: Insert Stmt returns -1 Pin
Wendelius19-Jan-09 2:13
mentorWendelius19-Jan-09 2:13 
GeneralRe: Insert Stmt returns -1 Pin
N a v a n e e t h19-Jan-09 14:53
N a v a n e e t h19-Jan-09 14:53 
GeneralRe: Insert Stmt returns -1 Pin
AB777119-Jan-09 22:58
AB777119-Jan-09 22:58 
QuestionCreating relation between two tables in VS2008 & SQL Express ? Pin
Mohammad Dayyan18-Jan-09 2:18
Mohammad Dayyan18-Jan-09 2:18 
AnswerRe: Creating relation between two tables in VS2008 & SQL Express ? Pin
Wendelius18-Jan-09 7:25
mentorWendelius18-Jan-09 7:25 
GeneralRe: Creating relation between two tables in VS2008 & SQL Express ? Pin
Mohammad Dayyan18-Jan-09 8:45
Mohammad Dayyan18-Jan-09 8:45 
GeneralRe: Creating relation between two tables in VS2008 & SQL Express ? Pin
Wendelius18-Jan-09 8:57
mentorWendelius18-Jan-09 8:57 
Questiontrigger problem Pin
monuSaini16-Jan-09 20:05
monuSaini16-Jan-09 20:05 
Hello Friends,

I have create an trigger on an table insert and update event :

CREATE TRIGGER sp_Kp1 ON [dbo].[OEORDD]
for insert, update

AS
DECLARE @x DECIMAL(18,2);
DECLARE @y varchar(10);
DECLARE @z DECIMAL(18,2);

SELECT @x = xx FROM inserted;
SELECT @y = yy FROM inserted;
SELECT @z = zz FROM table1 where xx= @x and yy = @y;

INSERT INTO table2 (tx,ty,tz) VALUES @x,@y,@z);

This trigger is working fine only if one row is updated
but it fails if i update more than one row using update query.


Thanks n regards,

rahul saini

AnswerRe: trigger problem Pin
Wendelius16-Jan-09 21:52
mentorWendelius16-Jan-09 21:52 
AnswerRe: trigger problem Pin
N a v a n e e t h18-Jan-09 21:44
N a v a n e e t h18-Jan-09 21:44 
QuestionPrimary key violation Pin
CodingYoshi16-Jan-09 18:35
CodingYoshi16-Jan-09 18:35 
AnswerRe: Primary key violation Pin
Aman Bhullar16-Jan-09 19:39
Aman Bhullar16-Jan-09 19:39 
AnswerRe: Primary key violation [modified] Pin
Wendelius16-Jan-09 22:12
mentorWendelius16-Jan-09 22:12 
QuestionDivision by zero error Pin
Unsy16-Jan-09 9:27
Unsy16-Jan-09 9:27 
AnswerRe: Division by zero error Pin
Wendelius16-Jan-09 9:28
mentorWendelius16-Jan-09 9:28 
GeneralRe: Division by zero error Pin
Unsy17-Jan-09 6:39
Unsy17-Jan-09 6:39 
GeneralRe: Division by zero error Pin
Wendelius17-Jan-09 7:11
mentorWendelius17-Jan-09 7:11 
GeneralRe: Division by zero error Pin
Unsy18-Jan-09 21:37
Unsy18-Jan-09 21:37 
GeneralRe: Division by zero error Pin
Wendelius19-Jan-09 2:02
mentorWendelius19-Jan-09 2:02 
QuestionWalkthrough: Filtering and Updating in an N-Tier Data Applicaition Pin
Brian C Hart16-Jan-09 7:53
professionalBrian C Hart16-Jan-09 7:53 
QuestionI want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Aman786Singh16-Jan-09 7:04
Aman786Singh16-Jan-09 7:04 
AnswerRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Wendelius16-Jan-09 8:31
mentorWendelius16-Jan-09 8:31 
GeneralRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Aman786Singh16-Jan-09 20:26
Aman786Singh16-Jan-09 20:26 
GeneralRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Wendelius16-Jan-09 22:08
mentorWendelius16-Jan-09 22:08 
GeneralRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Aman786Singh17-Jan-09 7:18
Aman786Singh17-Jan-09 7:18 

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.