Click here to Skip to main content
15,906,463 members
Home / Discussions / Database
   

Database

 
GeneralMSDE server performance question Pin
Member 9617-Apr-03 7:27
Member 9617-Apr-03 7:27 
GeneralRe: MSDE server performance question Pin
Mark Smithson17-Apr-03 8:22
Mark Smithson17-Apr-03 8:22 
GeneralRe: MSDE server performance question Pin
Member 9617-Apr-03 8:51
Member 9617-Apr-03 8:51 
GeneralRe: MSDE server performance question Pin
andyharman18-Apr-03 4:07
professionalandyharman18-Apr-03 4:07 
GeneralRe: MSDE server performance question Pin
Member 9619-Apr-03 18:08
Member 9619-Apr-03 18:08 
QuestionSQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 4:57
Bart-Man17-Apr-03 4:57 
AnswerRe: SQL Server Insert and trigger question? Pin
Chris Meech17-Apr-03 7:47
Chris Meech17-Apr-03 7:47 
GeneralRe: SQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 9:48
Bart-Man17-Apr-03 9:48 
Hello Chris,

That is a good point about the triggers, but in SQL server 2000 (7.0, ect) there is an available
call "INSTEAD OF", which seems to allow the ability to not have to do the insert but the problem I am
having now is accessing the params.

(ie) A simple section of code that I am checking the value to see if it is already in the table.

CREATE TRIGGER MyTrigger ON MyTableA
INSTEAD OF INSERT
AS
IF (SELECT COUNT(*)FROM MyTableA
WHERE MyTableA.Number1 = inserted.Number1) = 0
BEGIN
[...Do something...]
END
ELSE
[...Insert the new item into the database using INSERT INTO]


But the problem is "inserted.Number1" keeps saying it is undefined, and I am not sure how to get access
to the stuff that is to be inserted. I pulled the "inserted" from SQL Books online help, and I tried to
follow what they are doing, but no luck. Frown | :(
GeneralRe: SQL Server Insert and trigger question? Pin
Chris Meech17-Apr-03 10:06
Chris Meech17-Apr-03 10:06 
GeneralRe: SQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 10:43
Bart-Man17-Apr-03 10:43 
GeneralSQL problem Pin
John-theKing16-Apr-03 21:53
John-theKing16-Apr-03 21:53 
GeneralRe: SQL problem Pin
Richard Deeming16-Apr-03 23:22
mveRichard Deeming16-Apr-03 23:22 
QuestionHow to rename a table in a database? Pin
Paul Selormey16-Apr-03 20:02
Paul Selormey16-Apr-03 20:02 
AnswerRe: How to rename a table in a database? Pin
DiWa16-Apr-03 21:28
DiWa16-Apr-03 21:28 
GeneralRe: How to rename a table in a database? Pin
Paul Selormey17-Apr-03 0:51
Paul Selormey17-Apr-03 0:51 
GeneralRe: How to rename a table in a database? Pin
Paul Selormey17-Apr-03 1:50
Paul Selormey17-Apr-03 1:50 
GeneralRe: How to rename a table in a database? Pin
DiWa17-Apr-03 2:44
DiWa17-Apr-03 2:44 
GeneralRe: How to rename a table in a database? Pin
Paul Selormey17-Apr-03 3:18
Paul Selormey17-Apr-03 3:18 
AnswerRe: How to rename a table in a database? Pin
Bruce Duncan17-Apr-03 1:14
Bruce Duncan17-Apr-03 1:14 
GeneralRe: How to rename a table in a database? Pin
Paul Selormey17-Apr-03 1:20
Paul Selormey17-Apr-03 1:20 
GeneralSQL Server AND Access Pin
theJazzyBrain16-Apr-03 13:13
theJazzyBrain16-Apr-03 13:13 
GeneralRe: SQL Server AND Access Pin
Paul Selormey17-Apr-03 0:55
Paul Selormey17-Apr-03 0:55 
GeneralRe: SQL Server AND Access Pin
theJazzyBrain17-Apr-03 1:53
theJazzyBrain17-Apr-03 1:53 
GeneralRe: SQL Server AND Access Pin
Paul Selormey17-Apr-03 2:36
Paul Selormey17-Apr-03 2:36 
GeneralRe: SQL Server AND Access Pin
theJazzyBrain17-Apr-03 2:45
theJazzyBrain17-Apr-03 2:45 

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.