Click here to Skip to main content
15,898,222 members
Home / Discussions / Database
   

Database

 
AnswerRe: installed in server and run from client Pin
Colin Angus Mackay18-Mar-07 3:38
Colin Angus Mackay18-Mar-07 3:38 
Questionupdating table of one database with data from another database? Pin
PandemoniumPasha17-Mar-07 19:55
PandemoniumPasha17-Mar-07 19:55 
AnswerRe: updating table of one database with data from another database? Pin
mghiassi18-Mar-07 9:56
mghiassi18-Mar-07 9:56 
AnswerRe: updating table of one database with data from another database? Pin
Ziyad Mohammad18-Mar-07 20:50
Ziyad Mohammad18-Mar-07 20:50 
AnswerRe: updating table of one database with data from another database? Pin
Pete O'Hanlon18-Mar-07 23:58
mvePete O'Hanlon18-Mar-07 23:58 
Questionhow to use trigger in sql server 2005 ? Pin
hdv21217-Mar-07 7:26
hdv21217-Mar-07 7:26 
AnswerRe: how to use trigger in sql server 2005 ? Pin
Pete O'Hanlon18-Mar-07 23:54
mvePete O'Hanlon18-Mar-07 23:54 
QuestionHow can I Inserting to a table Pin
mghiassi17-Mar-07 6:41
mghiassi17-Mar-07 6:41 
I use SQL Server 2005 and Visual Basic 2005.
I write these Statement in SQL Server but it executes these with error and the record dose not inserted into table Project.
CREATE PROCEDURE Insert_Project
(@pNumber_M int,
@pRow_Agreement int,
@pRow_Machine int,
@pRow_Language int)
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
DECLARE @Number_O int;
SELECT @Number_O=Number-sum(Number_A) FROM Machine_View WHERE Row=@pRow_Machine GROUP BY Number
SET @Number_O=@Number_O-@pNumber_M;
INSERT INTO Project
(Number_A,Number_D,Row_Agreement,Row_Machine,Row_Language)
VALUES
(@pNumber_M,@Number_O,@pRow_Agreement,@pRow_Machine,@pRow_Language)
UPDATE Project
SET Number_D=@Number_O
WHERE Row_Machine=@pRow_Machine
END TRY
BEGIN CATCH
SELECT ERROR_PROCEDURE() AS ErrorProcedure;
END CATCH
END
GO
Please help me.
Thank you.
AnswerRe: How can I Inserting to a table Pin
Colin Angus Mackay18-Mar-07 3:35
Colin Angus Mackay18-Mar-07 3:35 
GeneralRe: How can I Inserting to a table Pin
mghiassi18-Mar-07 9:35
mghiassi18-Mar-07 9:35 
GeneralRe: How can I Inserting to a table Pin
Colin Angus Mackay18-Mar-07 11:58
Colin Angus Mackay18-Mar-07 11:58 
Questiona problem with sql server 2005 in window vista ! Pin
mrkeivan17-Mar-07 2:58
mrkeivan17-Mar-07 2:58 
QuestionExporting data from sqlserver to Excel Pin
Tech_spidy17-Mar-07 2:11
Tech_spidy17-Mar-07 2:11 
AnswerRe: Exporting data from sqlserver to Excel Pin
kubben17-Mar-07 2:20
kubben17-Mar-07 2:20 
GeneralRe: Exporting data from sqlserver to Excel Pin
Tech_spidy17-Mar-07 3:50
Tech_spidy17-Mar-07 3:50 
QuestionCan i Copy paste sql table Pin
nikhil123417-Mar-07 0:21
nikhil123417-Mar-07 0:21 
AnswerRe: Can i Copy paste sql table Pin
mghiassi17-Mar-07 7:00
mghiassi17-Mar-07 7:00 
GeneralRe: Can i Copy paste sql table Pin
Ziyad Mohammad18-Mar-07 20:52
Ziyad Mohammad18-Mar-07 20:52 
GeneralRe: Can i Copy paste sql table Pin
mghiassi19-Mar-07 8:30
mghiassi19-Mar-07 8:30 
Questionstored procedure vs sql query Pin
Tauseef A16-Mar-07 16:07
Tauseef A16-Mar-07 16:07 
AnswerRe: stored procedure vs sql query Pin
kubben16-Mar-07 16:57
kubben16-Mar-07 16:57 
Questionmaster data - 'These columns don't currently have unique values' Pin
freeisgood16-Mar-07 13:11
freeisgood16-Mar-07 13:11 
AnswerRe: master data - 'These columns don't currently have unique values' Pin
PlayByTheRules16-Mar-07 23:58
PlayByTheRules16-Mar-07 23:58 
QuestionReturn output parameter and dataset Pin
Ridge Howison16-Mar-07 11:09
Ridge Howison16-Mar-07 11:09 
AnswerRe: Return output parameter and dataset Pin
kubben16-Mar-07 12:47
kubben16-Mar-07 12:47 

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.