Forum Replies Created

Viewing 15 posts - 3,781 through 3,795 (of 8,755 total)

  • RE: 3TB database

    PJ_SQL (3/23/2016)


    I have 3TB database and MDF is 2TB, how to create secondary file?

    You can use ALTER DATABASE to add a file, the example below adds a file (64Mb) "MyNewDataFile"...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (3/22/2016)


    In case you're wondering, I'm fine. I didn't have to be in Brussels today, so I avoided all of the commotion...

    Glad you are fine mate, still trying to...

  • RE: This noob needs some help

    Quick suggestion based on the fact that Zero date is Monday 1900-01-01.

    😎

    SELECT

    CONVERT(

    ...

  • RE: Query slow just once a day

    Luis Cazares (3/21/2016)


    The major difference from the 2 runs seems to be the physical reads from a table. When it's slow, it's reading 12-13 thousand pages from disk. When it's...

  • RE: Looping and scalar value

    drew.allen (3/21/2016)


    Eirikur Eiriksson (3/21/2016)


    kuopaz (3/21/2016)


    I see, thanks. As it's scanning the tally table row-by-row from start to the predicate value, the order of N may be important in some cases...

  • RE: Login failed Error: 18456

    scott clemons (3/21/2016)


    First time posting this type of info. Wasn't sure if I should provide the computer, domain or user specific info, so I replaced with <#####>. Hope...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (3/21/2016)


    For those of you with standing desks, ArsTechnica says it may not be helping[/url] you at all.

    Here is an alternative[/url]

    😎

  • RE: Looping and scalar value

    kuopaz (3/21/2016)


    I see, thanks. As it's scanning the tally table row-by-row from start to the predicate value, the order of N may be important in some cases (not this example),...

  • RE: Login failed Error: 18456

    scott clemons (3/20/2016)


    I have read countless articles on the internet about fixing this error, but nothing works. Sorry, if there is an easy answer, but I can't figure it...

  • RE: TSQL Dynamic columns and SUM at the end

    Simple suggestion

    😎

    DECLARE

    @cols AS NVARCHAR(MAX),

    @selcols AS NVARCHAR(MAX),

    @query AS NVARCHAR(MAX),

    @startdate datetime,

    ...

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    mburbea (3/20/2016)


    This was run with default settings on the box. So probably 5 for the cost and whatever the default is on dop.

    I decided to try to change the number...

  • RE: The New Men of IT

    Once had a DBA that every one liked, he was busy taking care of all the users and in general highly regarded. After a little while I started to notice...

  • RE: Are the posted questions getting worse?

    What a mess!

    😎

    Hope this guy has a recent updated version of his CV.

  • RE: Tlog file full..No space to ru Backup log statement

    coolchaitu (3/20/2016)


    There is no space on other drive to add file.Please advise

    Quick questions:

    1. What is the disk setup on the server (Volumes,Sizes etc.)?

    2. What are the recovery models on the...

  • RE: Identifying records that are duplicates with the exception of one column

    If I understand the requirements correctly you want all the instances with blank Phone where the same FirstName,LastName,BranchFk exists with a non-blank phone.

    😎

    Quick suggestion

    USE tempdb;

    SET NOCOUNT ON;

    GO

    CREATE TABLE

    #Employee

    (

    EmployeePk INT,

    FirstName...

Viewing 15 posts - 3,781 through 3,795 (of 8,755 total)