Forum Replies Created

Viewing 15 posts - 3,316 through 3,330 (of 6,104 total)

  • RE: Disabling a trigger

    It's buried in the ALTER TABLE command and can be hard to find.

    For all of them:

    ALTER TABLE tablename

    DISABLE TRIGGER ALL

    For a specific trigger:

    ALTER TABLE tablename

    DISABLE TRIGGER triggername

    K. Brian Kelley
    @kbriankelley

  • RE: Setting Up SQL Mail

    Ok. First let me try and clarify some of the confusion and then we'll tackle the real problem at hand. SQL Mail and SQL Server Agent Mail are separate and...

    K. Brian Kelley
    @kbriankelley

  • RE: Allowing webserver to see SQL server

    If it's communicating across a firewall, there are likely some ports that'll need to be opened. You'll need to know what port SQL Server is listening on and you can...

    K. Brian Kelley
    @kbriankelley

  • RE: Multiple Instances on One Server - Question

    Different collation schemes can typically be handled at the database level so it's usually not an issue. Some reasons why you could want multiple instances:

    - You have a cluster and...

    K. Brian Kelley
    @kbriankelley

  • RE: Testing for existance of Linked Server

    I faced this issue when I was implementing a "heartbeat check" on our SQL Servers. Pinging is great. Service may show as up. But can you actually log in? What...

    K. Brian Kelley
    @kbriankelley

  • RE: SQL Server Security: Security Admins

    If the server is compromised by an attacker who manages to get local administrator rights, the data is already compromised even with BUILTIN\Administrators removed.

    Attack Vector 1:

    Stop SQL Server service....

    K. Brian Kelley
    @kbriankelley

  • RE: Data available in one column should display some values in one column and some values in 2nd colums

    SELECT

    Account Acct,

    Amount Dramt,

    NULL Cramt

    FROM [TableName]

    WHERE Account = 'Dr'

    UNION ALL

    SELECT

    Account Acct,

    NULL Dramt,

    Amount Cramt

    FROM [TableName]

    WHERE Account = 'Cr'

    K. Brian Kelley
    @kbriankelley

  • RE: Diff between sa and userdefined functions

    A stored procedure is more than just a precompiled SQL statement (and it's not ever fully compiled in the traditional programming sense). Here are two things that make a stored...

    K. Brian Kelley
    @kbriankelley

  • RE: Deleted Login still has rights to DB

    Removing BUILTIN\Administrators follows the principle of least privilege and is generally a good idea. However, there are some prepatory steps that must be accomplished or you could be left with...

    K. Brian Kelley
    @kbriankelley

  • RE: Run sql when a stored procedure is created

    This sounds like a development process in production, which is generally frowned upon. From a change control perspective you're looking at a developer having the potential of putting in a...

    K. Brian Kelley
    @kbriankelley

  • RE: bit vs tinyint vs char(1)

    Bits can be in an index but they generally shouldn't be. The reason bit shouldn't be in an index is you only have 2 values (3 including null). For an...

    K. Brian Kelley
    @kbriankelley

  • RE: Run sql when a stored procedure is created

    Why not simply require the permissions are set by whatever process is executing the CREATE PROC[edure] statement when the stored procedure is created? Most change control procedures do this to...

    K. Brian Kelley
    @kbriankelley

  • RE: Need alias to sql instance restored to different machine name

    If you are using DNS, have your administrator put a CNAME pointing the old name to the new name. If you have WINS, have your network admin insert a static...

    K. Brian Kelley
    @kbriankelley

  • RE: Deleted Login still has rights to DB

    Glad to be of help.

    K. Brian Kelley
    @kbriankelley

  • RE: Deleted Login still has rights to DB

    You said it is a windows account. If that's the case, it may be getting permissions through a Windows group. You would only see the group's mappings. You would not...

    K. Brian Kelley
    @kbriankelley

Viewing 15 posts - 3,316 through 3,330 (of 6,104 total)