Click here to Skip to main content
15,902,112 members
Home / Discussions / Database
   

Database

 
GeneralRe: copuing the whole table from one server to another server Pin
icanmakeiteasy21-Jul-09 19:50
icanmakeiteasy21-Jul-09 19:50 
Questioncommand to find specific value in select Pin
dabuskol21-Jul-09 1:58
dabuskol21-Jul-09 1:58 
AnswerRe: command to find specific value in select Pin
Ashfield21-Jul-09 2:08
Ashfield21-Jul-09 2:08 
GeneralRe: command to find specific value in select Pin
dabuskol21-Jul-09 2:20
dabuskol21-Jul-09 2:20 
GeneralRe: command to find specific value in select Pin
Ashfield21-Jul-09 4:48
Ashfield21-Jul-09 4:48 
QuestionLink Directory Submitter (3016) Pin
maliksp20-Jul-09 23:47
maliksp20-Jul-09 23:47 
RantRe: Link Directory Submitter (3016) Pin
Ashfield21-Jul-09 2:11
Ashfield21-Jul-09 2:11 
QuestionStored Procedure logic Pin
LucBite20-Jul-09 23:40
LucBite20-Jul-09 23:40 
I am using the following stored procedure to insert into two tables and it works fine

ALTER PROCEDURE createEmployee(@loginId VARCHAR (20), @username VARCHAR (25), @passwrd VARCHAR (25),@empId VARCHAR (20),@title varchar(5),@branchNo VARCHAR(20),@Fname VARCHAR(50),@idNo VARCHAR(13),@physicaladdress varchar(50),@province VARCHAR(50),@city VARCHAR(50),@telephone varchar(15),@cellNo VARCHAR(15),@Email VARCHAR(30),@employeetype varchar(15),@salary NUMERIC(11,2))
AS
INSERT INTO LoginInfo VALUES(@loginId,@username,@passwrd)
--SET @loginId=@@IDENTITY
INSERT INTO EMPLOYEE VALUES(@empId,@loginId,@title,@branchNo,@Fname,@idNo,@physicaladdress,@province,@city,@telephone,@cellNo,@Email,@employeetype,@salary);

But Note the @branchNo parameter to be inserted into the EMPLOYEE table. I need to get it from a table named BRANCH based on some criteria. Currently I have hard coded its(@branch parameter)its value.I've tried to use the column level Select subquery but it is not allowed. please give a junior developer some logic

ML Lingwati

AnswerRe: Stored Procedure logic Pin
J4amieC21-Jul-09 0:10
J4amieC21-Jul-09 0:10 
QuestionAvoining duplicates while joining tables Pin
nainakarri20-Jul-09 23:19
nainakarri20-Jul-09 23:19 
AnswerRe: Avoining duplicates while joining tables Pin
Blue_Boy20-Jul-09 23:31
Blue_Boy20-Jul-09 23:31 
GeneralRe: Avoining duplicates while joining tables Pin
nainakarri21-Jul-09 2:02
nainakarri21-Jul-09 2:02 
AnswerRe: Avoining duplicates while joining tables Pin
Ashfield21-Jul-09 2:14
Ashfield21-Jul-09 2:14 
GeneralRe: Avoining duplicates while joining tables Pin
nainakarri21-Jul-09 2:35
nainakarri21-Jul-09 2:35 
GeneralRe: Avoining duplicates while joining tables Pin
Ashfield21-Jul-09 4:43
Ashfield21-Jul-09 4:43 
QuestionApproach for CRUD transactions of a dynamic form Pin
Member 288307020-Jul-09 23:04
Member 288307020-Jul-09 23:04 
QuestionInsert Query Pin
sachees12320-Jul-09 22:07
sachees12320-Jul-09 22:07 
AnswerRe: Insert Query Pin
DoctorMick21-Jul-09 0:23
DoctorMick21-Jul-09 0:23 
AnswerRe: Insert Query Pin
Ashfield21-Jul-09 2:01
Ashfield21-Jul-09 2:01 
AnswerRe: Insert Query Pin
PIEBALDconsult21-Jul-09 5:18
mvePIEBALDconsult21-Jul-09 5:18 
QuestionSQL server 2005 Reporting Services Pin
Aman786Singh20-Jul-09 21:10
Aman786Singh20-Jul-09 21:10 
QuestionUPSERT implementation Pin
PIEBALDconsult20-Jul-09 10:36
mvePIEBALDconsult20-Jul-09 10:36 
AnswerRe: UPSERT implementation Pin
--CELKO--20-Jul-09 14:28
--CELKO--20-Jul-09 14:28 
GeneralRe: UPSERT implementation Pin
David Skelly21-Jul-09 2:19
David Skelly21-Jul-09 2:19 
GeneralRe: UPSERT implementation Pin
PIEBALDconsult21-Jul-09 5:07
mvePIEBALDconsult21-Jul-09 5:07 

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.