Forum Replies Created

Viewing 15 posts - 2,041 through 2,055 (of 9,703 total)

  • RE: Are the posted questions getting worse?

    BL0B_EATER (1/29/2016)


    Have you guys during your careers ever thought about doing something else in life.. as opposed to IT / SQL Server / Coding etc etc?

    Why yes. That's why I...

  • RE: Are the posted questions getting worse?

    Given that there are no instances, I assume there are other things that are not like normal servers.

    How does the SAN features (if there are any) work? I'm assuming you...

  • RE: Are the posted questions getting worse?

    Is anyone else having a "dot your Ts and cross your Is" kind of a day?

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Eirikur Eiriksson (1/24/2016)


    Here is an alternative method for collecting this (almost the same) information in a single dynamic sql query.

    😎

    DECLARE @SQL_STR NVARCHAR(MAX) = N'';

    DECLARE @OUTER_SQL NVARCHAR(MAX)...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Final, final (we hope working) code for those who are interested.

    ------------------------------Data file size----------------------------

    IF (SELECT OBJECT_ID('tempdb..#dbsize')) IS NOT NULL

    DROP TABLE #dbsize;

    CREATE TABLE #dbsize

    (Dbname SYSNAME NOT...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Jacob Wilkins (1/26/2016)


    Brandie Tarvin (1/26/2016)


    Final (working) code for those who are interested.

    ...

    That's going to give incorrect results. For the insert into #alldbstate, you're still joining sys.databases and sys.master_files on the...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Final (working) code for those who are interested.

    ------------------------------Data file size----------------------------

    IF (SELECT OBJECT_ID('tempdb..#dbsize')) IS NOT NULL

    DROP TABLE #dbsize;

    CREATE TABLE #dbsize

    (Dbname SYSNAME NOT NULL,driveletter CHAR(1) NULL,...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Other than me setting a VARCHAR column as NOT NULL in #dbfreesize, I did see the difference between using the local file tables (you'd think I would know better) and...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Eirikur Eiriksson (1/24/2016)


    Brandie Tarvin (1/22/2016)


    ... I have a bit of code that monitors my database growth.

    Quick question, are you intentionally returning one row for each database file?

    😎

    Yes, because some...

  • RE: Are the posted questions getting worse?

    I guess my main misunderstanding here is Tom's use of "'safe harbor' farce". I feel as if I'm missing a specific reference.

  • RE: Are the posted questions getting worse?

    TomThomson (1/25/2016)


    GilaMonster (1/25/2016)


    Bandwidth, latency and data out of the country (for 1 and 3)

    I see the same. Plus in the EU it's probably illegal to host the data outside...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Okay. This is driving me batty.

    New code (with datatypes fixed) works fine ....

    ------------------------------Data file size----------------------------

    IF (SELECT OBJECT_ID('tempdb..#dbsize')) IS NOT NULL

    DROP TABLE #dbsize;

    CREATE TABLE #dbsize

    (Dbname...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Luis Cazares (1/22/2016)


    Brandie Tarvin (1/22/2016)


    Luis Cazares (1/22/2016)


    You're using sysname as datatype for your columns. Sysname is by default NOT NULL.

    You're effectively not inserting any null values explicitly, but you were...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    Luis Cazares (1/22/2016)


    You're using sysname as datatype for your columns. Sysname is by default NOT NULL.

    You're effectively not inserting any null values explicitly, but you were missing the column in...

  • RE: Temp Table column suddenly becomes NOT NULL ???

    I understand what you're saying about the SYSNAME, and I agree I need to fix the code.

    But if that's the case, why did fixing only the driveletter column, which is...

Viewing 15 posts - 2,041 through 2,055 (of 9,703 total)