Quote:
Originally Posted by farhy
ad 1) in 12 you can create varchar higher than 255
create table t1 (ch varchar(300)), the maximum size depends on your pagesize;
keep in mind that your whole records must fit in one page - overhead.
ad 2) in higher version you could check the execution via mon tables, but with 12 I would change the procedure and include the statements you need.
eg
create proc my proc
as
declare @start datetime,@end datetime
SET @start = getdate()
-- do stuff
-- so more stuff
SET @end = getdate()
insert into proc_log (getdate(),@start,@end)
------------------------------------------------
where the proc_log could be something like
create table proc_log (
fid int identity, -- ever increasing value
fprocname varchar(150),
fdate datetime,
fstart datetime,
fend datetime
)
|
My Comments:
Thanks for your valuable revert.
Problem 1:
Would be great if you can please give me more insight on the same.
Problem 2:
I dont have mon table.
I have already implemented the other solution but it is not feasible enough as I have more than 230 procs which accepts more than 7 parameters.
Hence, I need to do something dynamically.
My friend has posted a thread on the similar issue under heading
"Cannot use procedures paramaters dynamically"...I will try to use that solution and get back to you again.