Forum Replies Created

Viewing 15 posts - 136 through 150 (of 575 total)

  • RE: Record Locking

    You may have to place this at the top of your code,

    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

    BEGIN TRANSACTION

    SELECT ...........

    UPDATE ...........

    COMMIT TRANSACTION


    Kindest Regards,

  • RE: Deleting redundant Subscriptions

    Unless this is some sort of a joke, just go into EM and right click the Subscription and DELETE it!


    Kindest Regards,

  • RE: 15001 Replication error

    Check and see if the Table Test has a Primary Key.


    Kindest Regards,

  • RE: Replication between 2 sites and active databases

    Obviously the people you have been talking to don't know how to use SQL Server Replication or don't know how to keep data synchronised with SQL Replication!

    You have 2 choices.

    1....


    Kindest Regards,

  • RE: DATEFORMAT

    The front end application doesn't use any date settings it just passes the 2 variables as strings and now the stored procedure does the remaining conversion to DATETIME Datatypes.

    On the...


    Kindest Regards,

  • RE: DATEFORMAT

    Ok. Thanks Sergiy. I used the Style 103 and it works.

    I have learnt alot about converting Dates today.

    Thanks.


    Kindest Regards,

  • RE: DATEFORMAT

    I think you may have made a typo on the @EndDateString!

    Here is what I have tried but it doesn't seem to like to CONVERT the @EndDate!

    DECLARE @StartDate NVARCHAR(20), @EndDate NVARCHAR(20)

    SET...


    Kindest Regards,

  • RE: DATEFORMAT

    For option 2. Are you syaing to DECLARE @StartDate & @EndDate as NVARCHARS and then CONVERT them to DATETIME in SP?


    Kindest Regards,

  • RE: DATEFORMAT

    So how do I get around this?

    The user has to pass the date variables as DD/MM/YYYY Australian format.

    How do I make it work given the facts Above?


    Kindest Regards,

  • RE: DATEFORMAT

    Sergiy,

    What do you mean "And you convert you parameters to DATETIME out of SP scope because parameters are datetime datatype.There is no point for SET DATEFORMAT DMY inside this...


    Kindest Regards,

  • RE: Rebuilding A Clustered Index

    Aaahhhh... There is always something to learn. Thanks for clarifying that! It all makes sense.

    Thanks.


    Kindest Regards,

  • RE: Rebuilding A Clustered Index

    Thats fair enough PW but the Clustered Index in this case is Unique as it is the Primary Key!

    I know your command will work but i thought that when you...


    Kindest Regards,

  • RE: Rebuilding A Clustered Index

    Because when I did a DBCC SHOWCONTIG on the NON Clustered INDEX, the Fragmentation still exists!


    Kindest Regards,

  • RE: Rebuilding A Clustered Index

    So then why didn't the 4 NON Clustered Indexes get rebuilt when I issued the command below on the Clustered Index?

    DBCC DBREINDEX ('Act', PKActID, 90)


    Kindest Regards,

  • RE: Looking for subscription expiration value

    Firstly, this thread should be in the Replication forum.

    Secondly, the Subscription expiration value is a property of the Distributor. Have you tried checking the SYstem Tables on the Distribution Database?


    Kindest Regards,

Viewing 15 posts - 136 through 150 (of 575 total)