Why is this not possible?
CREATE PROCEDURE [uspInsertNotes]
@OwnerID varchar(50),
@Subject varchar(50),
@Notes ntext(16),
@DateCreated varchar(50),
@CreatedBy varchar(50),
@tableName as nvarchar(256)
AS
INSERT INTO @tableName
(OwnerId,Subject,Notes, DateCreated, CreatedBy)
VALUES
(@OwnerID, @Subject, @Notes, @DateCreated, @CreatedBy)
Is there a solution to this problem or it is really neccessary to name the table in this code...
Also, is it possible i will pass an array of data to a parameter like for example, multiple subject, multiple notes?
Pls help....
tnxs a lot..
CREATE PROCEDURE [uspInsertNotes]
@OwnerID varchar(50),
@Subject varchar(50),
@Notes ntext(16),
@DateCreated varchar(50),
@CreatedBy varchar(50),
@tableName as nvarchar(256)
AS
INSERT INTO @tableName
(OwnerId,Subject,Notes, DateCreated, CreatedBy)
VALUES
(@OwnerID, @Subject, @Notes, @DateCreated, @CreatedBy)
Is there a solution to this problem or it is really neccessary to name the table in this code...
Also, is it possible i will pass an array of data to a parameter like for example, multiple subject, multiple notes?
Pls help....
tnxs a lot..