Forum Replies Created

Viewing 15 posts - 661 through 675 (of 6,036 total)

  • RE: Why does my stored procedure return -1?

    Negative return value means error happened during the execution.
    Unless you explicitly change the meaning of @ReturnValue in the proc code.
    Like 
    IF @status = 'Feeling Kinda Silly'

    _____________
    Code for TallyGenerator

  • RE: Create Index Script with Fill Factor Question

    Jeff Moden - Tuesday, March 6, 2018 6:28 PM

    That's why it actually does matter.  If you have a 100% Fill Factor...

    _____________
    Code for TallyGenerator

  • RE: Create Index Script with Fill Factor Question

    It does not matter at all.
    FIll Factor is only taken into consideration when an index is rebuilt (reindexed).
    If you only drop and re-generate the index, as you mentioned...

    _____________
    Code for TallyGenerator

  • RE: How does SQL Server handle concurrent operations?

    junk.mail291276 - Monday, March 5, 2018 3:10 PM

    I posted a question about this at Microsoft's Entity Framework help forum where you can...

    _____________
    Code for TallyGenerator

  • RE: Is this Deadlock due to Lock Partitions?

    Both statements have this in their lock description:

    transactionname="implicit_transaction"

    It kinda indicates that there is no explicit transaction opened in the code.

    The trick is - the both locks are IX.

    Which means there...

    _____________
    Code for TallyGenerator

  • RE: Is this Deadlock due to Lock Partitions?

    Can you script this table "for create" and post it here?

    _____________
    Code for TallyGenerator

  • RE: Is this Deadlock due to Lock Partitions?

    Hi,

    What is OBJECT_NAME(1666104976) ?

    _____________
    Code for TallyGenerator

  • RE: How does SQL Server handle concurrent operations?

    Post the code of the file upload procedure, point out the statement which is executed when the locking happens, and the statements from the app which are blocked.

    Don't forget DDL...

    _____________
    Code for TallyGenerator

  • RE: Are the posted questions getting worse?

    Sean Lange - Tuesday, February 27, 2018 8:58 AM

    We have had two incredibly major renovations to the highway around KC for...

    _____________
    Code for TallyGenerator

  • RE: upsert in ssis for large tables

    Fastest way would be to track the changes at the source (say, by recording pk values for inserted/deleted/updated records in "change" tables) and then copy only changed records over.

    _____________
    Code for TallyGenerator

  • RE: Add Group ID value for set of sequential rows

    Assuming '00' row is mandatory for every group, this should work:

    if OBJECT_ID('tempdb..#FileRowGroups') is not null DROP TABLE #FileRowGroups

    select IDENTITY(int, 1,1) GroupID, F.RowNo GroupStart,...

    _____________
    Code for TallyGenerator

  • RE: Is this Deadlock due to Lock Partitions?

    3 questions.

    1. How many rows are returned by
    SELECT * FROM Tbl WHERE Col2 =@P1

    2. Do both updates use the same value...

    _____________
    Code for TallyGenerator

  • RE: Add Group ID value for set of sequential rows

    Have an identity column in your staging table - to keep track of original row numbers in the file
    CREATE TABLE FileData (RowNo int IDENTITY(1,1) PRIMARY KEY NOT...

    _____________
    Code for TallyGenerator

  • RE: Looking to sort two queries by Date, Time

    DesNorton - Monday, February 26, 2018 9:28 PM

    You cannot UNION and sort these 2 queries as they stand.