Viewing 15 posts - 91 through 105 (of 111 total)
Steve Jones - SSC Editor (5/8/2013)
If so, then you'd have to query sys.database_files in that database to get the file location....
May 8, 2013 at 12:51 pm
Neeraj Dwivedi (5/7/2013)
I thought that you want the path for Master...
May 8, 2013 at 7:21 am
thanks guys for the response...
my requirement has changed a bit...
i'm looking for something like this...
check if destination database exists, if it exists select physical location path ( data and log...
May 8, 2013 at 7:17 am
Thanks Neeraj..
i'm executing like this
IF NOT EXISTS (select d.name, f.physical_name from sys.master_files f, sys.sysdatabases d where f.database_id = d.dbid and
d.name = 'Test_Restore')
select f.physical_name from sys.master_files f, sys.databases d where...
May 7, 2013 at 9:21 am
That is the problem here....we have that limitation....so trying to automate....
and also forgot to mention....we need to get source and destination database names, source logical data and log file names...
May 1, 2013 at 7:27 pm
yeah Stored proc is causing it i guess...because we got the high CPU alerts from 11.08 to 11.38 Pm yesterday and this stored proc is in suspended mode from 11:00...
April 25, 2013 at 9:03 am
Hey thanks for the response...i tried that its isnt working....can you please be more specific....
April 17, 2013 at 12:54 pm
Yes, thank you very much ..
April 17, 2013 at 7:09 am
Hey Tom,
Here what i'm getting....
for insert...new records are logged - with this requester can know what record is inserted
for update....old records are logged - with this Requester will know what...
April 16, 2013 at 11:50 am
Thanks Steve,Lowell,L'eomot for your help and patience ....script is working fine now....i'm posting the entire script for people who might need it in future....
--/****** Object: Table [dbo].[logger] ...
April 16, 2013 at 10:46 am
Thanks a lot Lowell and E'Loment....it worked like a charm....but i have some problems here....
the output what we are getting is the updated items....but the requester is looking for old...
April 16, 2013 at 8:03 am
Thanks Steve, i have updated the code as per your suggestion....please see below
create table logger
( Body varchar(500)
, ConfigSetID_Ins varchar(100)
, Subject varchar(104)
, Name varchar(200)
, Version varchar(100)
, [Timestamp] varchar(100)
)
ALTER TRIGGER [dbo].[ConfigTrigger]
ON [dbo].[ConfigSet]
AFTER...
April 15, 2013 at 9:33 am
Lowell, tried your suggestion...added convert but still it isnt working.....
Steve, i will create the table for security, but first i need to get this thing work....then i can create table...
April 14, 2013 at 8:23 pm
Hi Steve, i like your idea....i will do that...please see new code...its working partially only if i put column ConfigSetID in @body...but if i add Name,Version and Timestamp in @body......
April 12, 2013 at 3:01 pm
Viewing 15 posts - 91 through 105 (of 111 total)