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

Database

 
QuestionDamn database wizard! Pin
Muammar©31-Jan-09 1:52
Muammar©31-Jan-09 1:52 
AnswerRe: Damn database wizard! Pin
Wendelius31-Jan-09 2:55
mentorWendelius31-Jan-09 2:55 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 5:57
Muammar©31-Jan-09 5:57 
GeneralRe: Damn database wizard! Pin
Wendelius31-Jan-09 6:09
mentorWendelius31-Jan-09 6:09 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 20:02
Muammar©31-Jan-09 20:02 
GeneralRe: Damn database wizard! Pin
Wendelius1-Feb-09 7:10
mentorWendelius1-Feb-09 7:10 
GeneralRe: Damn database wizard! Pin
Muammar©7-Feb-09 4:15
Muammar©7-Feb-09 4:15 
QuestionHow to pass table name dynamically for stored procedure Pin
ashok_rgm30-Jan-09 19:12
ashok_rgm30-Jan-09 19:12 
Hi All,

I have two tables like Casual_Employee_Details, Permanent_Employee_Table and the columns in both tables are same.
I have a stored procedure as follows

CREATE PROCEDURE getEmpId
(
@Eid int,
@EName varchar(50)
)

AS

insert into Casual_Employee_Details(n_EmpId,c_EmpName)values(@EmpId,@EmpName)
GO


Now i want to pass table name also dynamically how can it be done.
help me out with code if possible..

So that if if i execute it should as follows
Execute dbo.getEmpId 'tableName',Eid,'Ename'

Thanks,
Ashok

ashok

AnswerRe: How to pass table name dynamically for stored procedure Pin
Wendelius30-Jan-09 19:36
mentorWendelius30-Jan-09 19:36 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Colin Angus Mackay31-Jan-09 1:20
Colin Angus Mackay31-Jan-09 1:20 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius31-Jan-09 1:40
mentorWendelius31-Jan-09 1:40 
GeneralRe: How to pass table name dynamically for stored procedure Pin
ashok_rgm31-Jan-09 3:20
ashok_rgm31-Jan-09 3:20 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius31-Jan-09 3:28
mentorWendelius31-Jan-09 3:28 
GeneralRe: How to pass table name dynamically for stored procedure Pin
ashok_rgm1-Feb-09 23:57
ashok_rgm1-Feb-09 23:57 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius2-Feb-09 5:36
mentorWendelius2-Feb-09 5:36 
QuestionVista ODBC Questions Pin
Richard Andrew x6430-Jan-09 17:06
professionalRichard Andrew x6430-Jan-09 17:06 
AnswerRe: Vista ODBC Questions Pin
Aman Bhullar31-Jan-09 5:34
Aman Bhullar31-Jan-09 5:34 
QuestionAudit Log In and Audit logout problems in sql server 2005 after XML import to sql server 2005 Pin
Pankaj Garg30-Jan-09 2:21
Pankaj Garg30-Jan-09 2:21 
AnswerRe: Audit Log In and Audit logout problems in sql server 2005 after XML import to sql server 2005 Pin
Wendelius30-Jan-09 3:08
mentorWendelius30-Jan-09 3:08 
Questionsaving/recalling image to/from sql server 2005 using asp.net Pin
roachae29-Jan-09 10:38
roachae29-Jan-09 10:38 
AnswerRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius29-Jan-09 10:51
mentorWendelius29-Jan-09 10:51 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
roachae29-Jan-09 12:21
roachae29-Jan-09 12:21 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius29-Jan-09 12:30
mentorWendelius29-Jan-09 12:30 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
roachae30-Jan-09 6:19
roachae30-Jan-09 6:19 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius30-Jan-09 7:40
mentorWendelius30-Jan-09 7:40 

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.