Forum Replies Created

Viewing 15 posts - 31 through 45 (of 64 total)

  • RE: How notificate create database event

    Here is a Trigger that I created and currently use on SQL 2005 and 2008.

    It monitors when someone creates a new DB and emails me the information, including the create...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Granting Execute, ALTER, Create permission for all SPs

    First create the user in the database, the issue this statement.

    Make them members of database role 'db_datareader'

    and grant them access to create views and SP.

    They will not have access to...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: tracking job deletion

    In SQL 2008 You have now Auditing.

    Create a Database Specific Audit on [msdb] and track this.

    [Audit Action Type] = Execute

    [Object Name] = [dbo].[sp_delete_job]; [dbo].[sp_delete_jobstep]; [dbo].[sp_delete_jobsteplog]

    [Principal Name] = [public]

    This will catch...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: How to ping a SQL Server datbase?

    Create linked servers to each of your instances and run the following code on them:

    Here is the Status column description:

    1 = autoclose; set with ALTER DATABASE.

    4...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Date format Script task

    You don't need to make it that complicated.

    Just use this:

    Now.ToString("yyyyMmdd_HHmmss")

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Agent job and step name

    you can run this query and filter on the job_id

    SELECT * FROM dbo.sysjobsteps

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Database Mail - Relay access denied

    Antivirus is probably blocking you from sending emails.

    Talk to your Security Admin and Exchange Admin.

    If you have setup the Mail Client correctly, then you are probably being blocked by Exchange,...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Performance SSIS vs SP's

    The is no one single way of determining when SSIS will perform better than a Stored Procedure.

    But you must take this into cosideration:

    1) When you make operational changes within a...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: sysadmin + db_owner + sa + proxy = how to keep DB secure

    You should try to use an AD account at all cost.

    I find it more secure because it's password policies are managed by AD.

    Try not to use "sa" on any connection...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: script for del users

    This script should work just fine:

    You may want to modify it a little so it first checks if the user exists:

    drop Login [login_name]

    go

    sp_msforeachDB 'Use [?]; DROP USER [user_name];'

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: Only see a single database in SSMS

    Yes this is completely possible on SQL 2005 and newer:

    To limit visibility to database metadata, execute this code DENY VIEW ANY DATABASE TO [MySQLLogingUser]. After this permission is denied, a...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: How to view what logins have VIEW DEFINITION permissions

    Use this code:

    SELECT l.name as grantee_name, p.state_desc, p.permission_name

    FROM sys.server_permissions AS p JOIN sys.server_principals AS l

    ON p.grantee_principal_id = l.principal_id

    WHERE permission_name = 'VIEW ANY DEFINITION' ;

    GO

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: view defination

    GRANT VIEW DEFINITION

    Check this link:

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: What privileges should a DBA have in a windows server enviroment?

    A DBA Should be local admin because of the many administrative tasks that need to be performed on the Server itself.

    A DBA needs to be able to:

    Secure the Windows Server

    Configure...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

  • RE: sql agent mail profile

    Yes,

    Every time that SQL registers an error with the with severity 22, which is a fatal error, then the alert is fired.

    In order for you recieve and email when that...

    Ysaias Portes | Forward Thinkers Consulting
    sp_SQLFlightRecorder — open-source SQL Server diagnostic recorder | forwardthinkersconsulting.com

Viewing 15 posts - 31 through 45 (of 64 total)