Forum Replies Created

Viewing 15 posts - 6,916 through 6,930 (of 8,760 total)

  • RE: Why do they not listen?

    djj (9/29/2014)


    They hire me to be a DBA and then they do not take my suggestions.

    I tell them they should only store a standardized value. A prime example of...

  • RE: Why do they not listen?

    Sean Lange (9/29/2014)


    Koen Verbeeck (9/29/2014)


    Hire an overpriced consultant. Chances are they'll listen to him/her...

    The problem is these overpriced consultants are also full of overpriced crappy code. These are the people...

  • RE: Help needed in Date Logic

    Quick suggestion for simplification

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @REPORT_MONTHS INT = 6;

    DECLARE @NOW ...

  • RE: How can I show "type" in XML using SQL Server?

    Quick suggestion to get you started

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(Location,Building,RoomName,Habitant )AS

    (SELECT * FROM (VALUES

    ('USA','White House','Oval Office','Mickey Mouse')

    ,('UK','Whitehall','24hour Lounce','Donald Duck')

    ) AS X(Location,Building,RoomName,Habitant)

    )

    SELECT

    'group' AS '@type'

    ...

  • RE: RAND Unions

    Thanks Steve for this question, it highlights the issue with RAND documentation, which ironically is more random in Books Online than the actual output of the function itself. Or as...

  • RE: Select case statement

    Not certain what you are asking for but IΒ΄ll throw in some explanation. Column names cannot be changed during the execution, changing the column name must then be an action...

  • RE: How to get ssns that occures in less than 12 month gap

    Quick question, which SQL Server Version are you onÞ

    😎

  • RE: Previous Max Event

    Edit: not working.

    An alternative window function based solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @CHANGE_TYPE VARCHAR(50) = 'Change1';

    ;WITH SAMPLE_DATA(CustomerID,ChangeType,OldValue,NewValue,TimeStamp) AS

    ( SELECT CustomerID,ChangeType,OldValue,NewValue,CONVERT(SMALLDATETIME,TimeStamp,0) FROM

    (VALUES

    ...

  • RE: Linked Server to AS400 Error Null Value

    Post the full and complete code you are running, including source definition, source query, insert statement and the destination table definition. Don't leave anything out!

    😎

  • RE: Query to split difference (number of nights) between 2 dates into respective "Month" column

    The change is simple, the sequence needs to be shifted so it starts counting at zero instead of one as otherwise it counts the night when it ends not when...

  • RE: Installation

    Thank you for the question Iulian. Fortunately we have come a long way from default sa accounts with no password, rpc wide open, early WebDav and other such horrors, still...

  • RE: sys.sql_modules truncating definition

    Alexander Suprun (9/26/2014)


    Eirikur Eiriksson (9/26/2014)


    Quick though, use the object_definition function, that is the same as the system views use.

    If it's the same, then what's the point?

    Straigt from the source;-)

    😎

  • RE: sys.sql_modules truncating definition

    Quick though, use the object_definition function, that is the same as the system views use. Don't recall that I changed any settings on the system I'm using, brings back everything...

  • RE: Is SQL Server Mature?

    My 2 Cents: The SQL Server database platform is probably the most mature product Microsoft offers, some of the other components of the sQL Server Stack are less so. It...

  • RE: SSIS to SFTP and Email

    aashish.khn (9/25/2014)


    Yeah I am trying to learn that right now. I was wondering if I can save those address as sql table and call those address in ssis

    That is straight...

Viewing 15 posts - 6,916 through 6,930 (of 8,760 total)