Forum Replies Created

Viewing 15 posts - 211 through 225 (of 5,393 total)

  • RE: Remote Connection to Named Instance Fails.

    Jeffrey Irish (2/1/2016)


    Perhaps SQL Browser is not getting through?

    That's the most likely answer. Test SQL Browser connectivity with PortQry on UDP 1434.

    -- Gianluca Sartori

  • RE: Changing Server IP Address After Installing SQL 2012

    It shouldn't, but it won't do any harm if you're listening on all addresses.

    -- Gianluca Sartori

  • RE: Running Powershell as SQL Server Agent task

    SSIS seems to me overkill for just checking a file exists.

    Powershell can do that:

    $ErrorActionPreference = "Stop"

    if( -not (Test-Path "c:\temp\im_not_there.txt")) { throw "Not there!" }

    CMD can do that as well

    if not...

    -- Gianluca Sartori

  • RE: Changing Server IP Address After Installing SQL 2012

    Remove the settings from that address and configure IpAll.

    You should be fine.

    -- Gianluca Sartori

  • RE: Convert a Date

    Jeff, point taken. Thanks for the performance test.

    -- Gianluca Sartori

  • RE: Convert a Date

    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

    It is a CLR function, so there's...

    -- Gianluca Sartori

  • RE: Convert a Date

    Eirikur Eiriksson (1/25/2016)


    spaghettidba (1/25/2016)


    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    Gianluca, don't use the format function, it has terrible performance.

    😎

    It is a CLR function, so there's a startup cost...

    -- Gianluca Sartori

  • RE: Convert a Date

    SQL Server 2012 supports the FORMAT function:

    select format(GETDATE(), 'dd-MMM-YYYY')

    -- Gianluca Sartori

  • RE: Trouble connecting to sql server 2012

    Looks like a client-side issue.

    What is probably happening is something along these lines:

    The connection pool is initialized with a number of connections, then for some reason it loses connectivity...

    -- Gianluca Sartori

  • RE: Migration

    ramana3327 (1/21/2016)


    What are the best approach to start the process.

    In my opinion you shouldn't be doing an in-place upgrade. It almost always turn out to be ugly. Do a side-by-side...

    -- Gianluca Sartori

  • RE: Can we send a existing HTML file as part of body using Database mail ?

    You could read the file in a variable and concatenate it to the message body:

    DECLARE @body NVARCHAR(MAX)

    SELECT @body = BulkColumn FROM OPENROWSET (BULK 'G:\MySalesReport.htm', SINGLE_BLOB) a

    EXEC msdb.dbo.sp_send_dbmail

    @profile_name =...

    -- Gianluca Sartori

  • RE: custom code

    Link please?

    -- Gianluca Sartori

  • RE: Is there any effect of DB Mirroring on IDENTITY column / value of Tables ?

    Jacob Wilkins (1/20/2016)


    spaghettidba (1/20/2016)


    Indeed the default identity preallocation is 1000, 10K looks suspicious. Try enabling TF 272 (it disables identity preallocation) and see if it makes a difference.

    I seem to...

    -- Gianluca Sartori

  • RE: Is there any effect of DB Mirroring on IDENTITY column / value of Tables ?

    Trace flag. Add "-T272" to your SQL Server startup parameters or enable it globally before adding to the startup params:

    DBCC TRACEON(272,-1)

    -- Gianluca Sartori

  • RE: Is there any effect of DB Mirroring on IDENTITY column / value of Tables ?

    Indeed the default identity preallocation is 1000, 10K looks suspicious. Try enabling TF 272 (it disables identity preallocation) and see if it makes a difference.

    -- Gianluca Sartori

Viewing 15 posts - 211 through 225 (of 5,393 total)