Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 2,651 total)

  • RE: Breaking up huge audit table (1.1B rows) into smaller tables

    I notice that your scripts are missing both compression and filegroup information - just to confirm could you please run the following script and supply us with the output.
    And...

  • RE: restore all databases

    message is quite clear - access denied 
    the user SQL Server instance is running under needs access to the...

  • RE: spn won't register on restart

    I've seen that happen when there is a tiniest time difference on the clock vs domain server. Setting up a dependency on the time service can solve the issue if...

  • RE: Powershell email throwing error

    yeah.. with a totally different error 

    Send-MailMessage : The SMTP server requires a secure connection or the client was not authenticated. The server
    response was: 5.7.0 Must issue a...

  • RE: Inner Joins

    That falls under the category of standards (company) and where none exist personal preference.

    On my case standards (and personal preference) are
    - tables always aliased
    - select, from...

  • RE: Die whitespace, DIE !!

    is this what you expect?

    if object_id('dbo.ranks') is not null
      drop table dbo.ranks;

    create table dbo.ranks
      ( name nvarchar(50) null
      )
      on...

  • RE: Same query, two users, different performance

    Apologies for my previous post - Missed the fact that the plans were attached.

    Agree with Grant - some implicit conversions around suser_name (all but one) but nothing jumping...

  • RE: Same query, two users, different performance

    ahhhhhh... all queries are based on which user runs it.


    uzsakymai.dbo.L0_BP where L0_vart = suser_name()

    the above style is all over the place - so...

  • RE: Importing a Flat File Containing Header and Detail Rows

    The sample provided follows standard definition for usage from mainframe style extract files - or PC Cobol files that follow old conventions.
    But not just those follow these - I...

  • RE: Lookups on remote database

    pseudo code

    read sharepoint list - load onto datatable Invoices

    using dbconnection to sqldb -- using transactionscope
    {
    create temp table (#invoices) -- execute nonquery
    ...

  • RE: Powershell email throwing error

    offcourse not - instead of using my code you reverted back to your original one

  • RE: Powershell email throwing error

    $File=gci \\abcd\efgh\ijkl | select -last 1
    $Attachment = $File.FullName

    you may need to enclose the filename with double quotes on the send mail step

  • RE: Powershell email throwing error

    $File="gci \\abcd\efgh\ijkl | select -last 1"
    $Attachment = $File

    I assume that what you intended here was to get the last file on the folder in question - but...

  • RE: remove dates in SQL server?

    Assuming your dates always have the _ before them the following will work


    declare @t table (a varchar(50))

    insert into @t values ('c:\abc_20181008.txt')
    insert into...

  • RE: Build Better Habits

    Seen many developers fall under that trap. Wish that would raise an error.

Viewing 15 posts - 2,356 through 2,370 (of 2,651 total)