Viewing 15 posts - 2,371 through 2,385 (of 2,462 total)
include following script in your Stored Proc
declare @sqlcmd varchar(200)
SET @SQLCmd = 'copy c:\dba\sampl.xls c:\dba\sampl_2.xls'
EXEC master..xp_cmdshell @SQLCmd , no_output 🙂
September 23, 2008 at 4:55 am
you must understand the Concept if XML before using it
please go for BOL at
September 23, 2008 at 4:37 am
Gila ...you are genius....i always find reply everywhere and with sounded logics:):)
welll r u DBA or Developer and from which country?
September 23, 2008 at 2:45 am
check this link
http://www.sqlservercentral.com/Forums/Topic567637-146-1.aspx
have i provided right answer ????:)
September 23, 2008 at 1:58 am
hi gila ,
i need to pass spid as parameter
so its giving error :
declare @spid int,@lstr varchar(100)
set @spid = 52
set @lstr = 'insert into Sp_info dbcc inputbuffer( ' +cast(...
September 23, 2008 at 1:31 am
Madhu,
Follow the 3 steps sequencially and forget about JOB.:) where ever you calling
FAILURE_NOTIFICATION ,dont pass parameters
step 1 :
create table #error_status
(
logdate datetime,Processinfo varchar(20),text nvarchar(4000))
-----------------------------------------------------
step 2 :
CREATE...
September 23, 2008 at 12:48 am
you need to pass SPID or hard coded it
use following script
CREATE TABLE [dbo].[#Sp_info](
[Eventtype] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[parameters] [int] NULL,
[eventinfo] [nvarchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
declare @spid int,@lstr varchar(100),@text nvarchar(max)
set...
September 23, 2008 at 12:35 am
Hi,
1.Modify sp_send_cdosysmail proc with my script
2. call above SP in FAILURE_NOTIFICATION proc .
And sorry I couldn’t reply you yesterday as I left at 6 30 IST 🙂
And...
September 22, 2008 at 9:49 pm
i also in queue with vrailean ...actually i want do SQL server certification 2005 ..can somebody give me some papaers or notes 🙂
September 22, 2008 at 6:45 am
if it would happened say on wednesday .....then do we require to restore the differential of mon amd tuesday...if yes then what would be the sequence ???
September 22, 2008 at 6:34 am
Try This........Hope this will give required results
create procedure [dbo].[P_EMP_INSERT](@PARTYID BIGINT, @NAME VARCHAR(200), @DOB DATETIME)
as
begin
begin transaction
...
September 22, 2008 at 5:49 am
i m not sure but that file may contain commented line(those 4 line)...this ia a blind guess...it might help you 😉
September 22, 2008 at 5:40 am
i really dont understand ur need actually ....u have one column with identity propertiy in sql table and u want to update that table which actually doesn't contain any...
September 22, 2008 at 5:35 am
create table #error_status
(
logdate datetime,Processinfo varchar(20),text nvarchar(4000))
insert into #error_status
exec sp_readerrorlog
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Notification@express.com',
@recipients = 'bkumar@express.com',
@query = 'select top 10...
September 22, 2008 at 2:35 am
if you generate backup script from management studio either for APPEND option OR for OVERWRTIE option
,you cant see any difference in scripts.
only you can do is ,generate a backup...
September 22, 2008 at 1:34 am
Viewing 15 posts - 2,371 through 2,385 (of 2,462 total)