Forum Replies Created

Viewing 15 posts - 8,341 through 8,355 (of 15,381 total)

  • RE: Identity insert without reseed

    salliven (5/14/2013)


    How do you know that?

    I'm managing more Microsoft replication.

    But Microsoft replication is slow and inflexible. Our replication program is fast and flexible (example: maximum 0,5 sec replication latency,...

  • RE: RIGHT 4 unless RIGHT 5th digit > 0

    Something like this?

    It assumes that all the values for INCOMING_VALUE will be numeric.

    select right('00000' + cast(CAST(INCOMING_VALUE as int) as varchar(5)), case when CAST(INCOMING_Value as int) > 9999 then 5 else...

  • RE: Identity insert without reseed

    salliven (5/14/2013)


    Ok, thanks!

    But the Microsoft replication is knows insert without identity reseed.

    How do you know that? I am not disputing it, I am curious if you know that as...

  • RE: how to deny logins

    rightontarget (5/14/2013)


    Hi all,

    I've copied a database to a new server. How do I make database on original server inaccessible to users while I am checking that everything is OK with...

  • RE: SELECT TOP record

    PSB (5/14/2013)


    Hi,

    I have a query where it returns exact same value for all fields except 1 field.

    Example

    CREATE TABLE #Temp1 ( recid int identity (1,1),SiteID INt,TankID INT,TNo INT,PDate DateTime,Gallons INT,Status1...

  • RE: I would REALLY like some fast help with this problem!

    hamed1337 (5/14/2013)


    Sean Lange What do you mean? Can i make the 2008 to 2000?

    By setting the compatibility mode. You can right click the database in object explorer -> Properties ->...

  • RE: Identity insert without reseed

    salliven (5/14/2013)


    @sean-2 Lange:

    DBCC CHECKIDENT ('#table', RESEED, @SeedValue)

    CHECKIDENT isn't good. I would like insert without identity reseed.

    That is how it works salliven. When you manually insert values into an identity...

  • RE: need help with trigger

    Sapen (5/14/2013)


    Sean Lange (5/14/2013)


    Seems a bit strange that you can put a trigger on a table but not a unique constraint. The constraint will perform better and is effectively doing...

  • RE: need help with trigger

    Seems a bit strange that you can put a trigger on a table but not a unique constraint. The constraint will perform better and is effectively doing the same thing...

  • RE: Separating different types of invoice numbers

    OK I am trying to help you but you don't seem to want to put in even as much effort as I do. You are getting paid for this and...

  • RE: Separating different types of invoice numbers

    Didn't we just go through the do's and dont's of posting yesterday? Can you please post some ddl and sample data along with desired output?

    I did it for you yesterday....

  • RE: SQL Server 2012 IF THEN logic to CASE THEN

    jjgier (5/14/2013)


    Hey Everyone,

    I have a set of IF THEN logic that create additional fields. Does anyone have a great grasp of how to convert the attached examples from IF...

  • RE: Identity insert without reseed

    I absolutely agree with Eugene that this is not a good idea but you can work with by using your own reseed.

    CREATE TABLE #table (id int IDENTITY (1,1), col1 int)

    INSERT...

  • RE: Add a value IF ISNULL

    If it is an update you after it would be something like this:

    Update YourTable

    Set Country = 'GB'

    where Country IS NULL

  • RE: Help with complex code

    lenar.chavez (5/14/2013)


    Hello. I'd appreciate help with a bit of code that can help me retreive data from one table in my DB.

    The issue here is that on the same table...

Viewing 15 posts - 8,341 through 8,355 (of 15,381 total)