Forum Replies Created

Viewing 15 posts - 11,296 through 11,310 (of 13,462 total)

  • RE: Random String on Record Creation

    I like Lynn's a lot more; having a view with just a newid in it is more useful, since i could use the same view for other purposes.

    my code was...

  • RE: error of sintax

    well the reason for the error is one of the columns in an integer; you have to explicitly convert an integer to varchar when you are creating a string like...

  • RE: Idenity column question /issue

    gaps in an identity are normal. they happen when an error occurs and a transaction gets rolled back; although a transaction would not get committed, the incrementing of an identity...

  • RE: inserting a list into a table that does not allow duplicates

    i think the statement you pasted is missing which column in t1 is null; was that a copy/paste error?

    it looks a little like pseudo code;

    this is how I would do...

  • RE: inserting a list into a table that does not allow dupes

    duplicate post.(actually triplicate!)

    no need to cross post to multiple forums it fractures the answers you get and makes posters duplicate others work.

    the "Recent Posts" link shows us everything.

    continue the thread...

  • RE: inserting a list into a list that does not allow dupes

    duplicate post.(actually triplicate!)

    no need to cross post to multiple forums it fractures the answers you get and makes posters duplicate others work.

    the "Recent Posts" link shows us everything.

    continue the thread...

  • RE: Primary Key Violation on a unique primary key

    there you go!

    it's always the unexpected values in the data that trip me up too.

    way to go!

  • RE: Primary Key Violation on a unique primary key

    you can use this to find the duplicating records, based on your SQL;

    SELECT adv.A_AdvertiserID

    ,'Mobile'

    ,ab.[Telephone2]

    FROM [MSCRM].[dbo].[AccountBase] ab

    JOIN [DIGADV].[dbo].[Advertiser] adv

    ON ab.[Name] COLLATE DATABASE_DEFAULT = adv.A_AdvertiserName COLLATE DATABASE_DEFAULT

    GROUP BY adv.A_AdvertiserID,ab.[Telephone2]

    HAVING COUNT(*) > 1

  • RE: Random String on Record Creation

    sorry about the naming thing...i wrote my comments, then added the code, change the name along the way in there....

    glad it's working for you.

    did you change it to be a...

  • RE: Random String on Record Creation

    you'll need to make your code a function.

    once it is a function, say udfRandomString()

    you can create a table and set it's default value to the function.

    you might run into problems...

  • RE: just

    I'm admittedly slow at times, but i just changed the time on my server to 12 hours earlier than the real time..., and compared getdate() to OS time; they are...

  • RE: just

    saravanantvr1984 (4/4/2009)


    But, I don't know OS command like how to change the Date time of server machine...

    do u have a IDEA?

    Please send that

    start>>Run cmd ...

  • RE: Dnt want to use Dynamic Sql

    it's the way the IN function works:

    the IN() function requires an array() of values, NOT a single variable that happens to have commas in it. that's what you have...a single...

  • RE: How to queue multiple requests in database

    SLQ server automatically handles queueing via a system of LOCKING at the row,then page,then table levels;

    a great example is multiple people updating a single table.

    there is no need to block...

  • RE: Dnt want to use Dynamic Sql

    mithun.gite (4/3/2009)


    yeah thanks for that function actually, we have this function and we are using it also... and we handling such situation thru dynamic sqll......but this question has come when...

Viewing 15 posts - 11,296 through 11,310 (of 13,462 total)