Some times users may face the issues when the users are trying to connect remote integration services with the below error message:
connect to ssis service failed
access is denied
Work Around:
Please refer to this LINK given by MicroSoft:
http://support.microsoft.com/kb/2000474
Thanks,
Satish Kumar.
Wednesday, September 14, 2011
Tuesday, September 13, 2011
Execute permissions to Integration services on SQL Server
follow the below process to grant access for Integration services:
GO: MSDB --> Security --> Roles --> db_ssisltduser --> add the user/group name
Give SQLAgentOperatorRole --> if they want them to schedule it.
For more on integration securities please refer the link:
http://msdn.microsoft.com/en-us/library/ms141053.aspx
Thanks,
Satish Kumar.
GO: MSDB --> Security --> Roles --> db_ssisltduser --> add the user/group name
Give SQLAgentOperatorRole --> if they want them to schedule it.
For more on integration securities please refer the link:
http://msdn.microsoft.com/en-us/library/ms141053.aspx
Thanks,
Satish Kumar.
Thursday, September 1, 2011
send an email if the query returns any data
Hi All,
Some times we have requirement to send an e-mail, if the query returns data. please use the below code:
==============================================
use DATABASE_NAME
go
if exists(SELECT DstDesc, DstDT, COUNT(*) as [Count] from Distributions where
DstDT > '25-Aug-2011' group by DstDesc, DstDT having COUNT(*) > 1)
begin
--print 'test'
exec msdb..sp_send_dbmail @profile_name = 'SQL_MAIL_Profile_NAME',
@recipients = 'user_name@mail.com',
@subject = 'Duplicate Distribution',
@body = 'Please find below the duplicate entries in Distributions table',
@query = 'set nocount on
SELECT DstDesc, DstDT, COUNT(*) as [Count] from Distributions where
DstDT > ''25-Aug-2011'' group by DstDesc, DstDT having COUNT(*) > 1
set nocount off',
@execute_query_database = 'DATABASE_NAME',
@query_result_header = 1,
@query_result_width = 256
end
==============================================
Thanks,
Satish Kumar.
Some times we have requirement to send an e-mail, if the query returns data. please use the below code:
==============================================
use DATABASE_NAME
go
if exists(SELECT DstDesc, DstDT, COUNT(*) as [Count] from Distributions where
DstDT > '25-Aug-2011' group by DstDesc, DstDT having COUNT(*) > 1)
begin
--print 'test'
exec msdb..sp_send_dbmail @profile_name = 'SQL_MAIL_Profile_NAME',
@recipients = 'user_name@mail.com',
@subject = 'Duplicate Distribution',
@body = 'Please find below the duplicate entries in Distributions table',
@query = 'set nocount on
SELECT DstDesc, DstDT, COUNT(*) as [Count] from Distributions where
DstDT > ''25-Aug-2011'' group by DstDesc, DstDT having COUNT(*) > 1
set nocount off',
@execute_query_database = 'DATABASE_NAME',
@query_result_header = 1,
@query_result_width = 256
end
==============================================
Thanks,
Satish Kumar.
Subscribe to:
Posts (Atom)