Forum Replies Created

Viewing 15 posts - 331 through 345 (of 2,038 total)

  • RE: CHECKSUM

    Hi Zahran

    Little quote from BOL

    When an MD5 hash algorithm is specified, the probability of HashBytes returning the same result for two different inputs is much lower than that of CHECKSUM.

    Keep...

  • RE: Dates of the month

    Nope, it's just a table containing sequential numbers (1, 2, 3, 4, 5, ...) but there are many solutions which can be done with. You should read the article posted...

  • RE: Fastes way to increment an id column

    Good morning Paul πŸ™‚

    Paul White (9/7/2009)


    Not sure we can spare 'thousands' though - the place will seem empty in October πŸ˜€

    You can - and you do :-D. Every year at...

  • RE: If you weren't a DBA what would you be doing?

    No databases but development?? Come on guys and gals, what kind of applications should that be? The whole world of developers create things like calculators or screen savers? πŸ˜›

    I'm no...

  • RE: Clustered indexes question

    Hi Pedro

    Why do you need a GUID as primary key? SQL Server works much better with INT primary keys.

    If you really need a GUID primary key, you should avoid to...

  • RE: solution for error 512 , subquery return more than 1 value

    Hi

    Use a joined UPDATE statement instead of all those sub-queries. It should be faster, more readable and eliminates problems with bulk operations like DELETEs of more than one row.

    Greets

    Flo

  • RE: Exec SP and ignore the output (occasionally)

    claudiosil100 (9/7/2009)


    Why you say the 3rd parameter it's the best solution? πŸ™‚

    A third parameter gives you the possibility to use both ways from everywhere. If you call your SP1 (the...

  • RE: Exec SP and ignore the output (occasionally)

    claudiosil100 (9/7/2009)


    Flo my English is so bad you could not see the problem? :unsure:

    Your English, my English, our English - who cares :hehe:

    Finally we know what we are speaking...

  • RE: Exec SP and ignore the output (occasionally)

    claudiosil100 (9/7/2009)


    Msg 6819, Level 16, State 5, Procedure spiappGetTrv, Line 22

    The FOR XML clause is not allowed in a INSERT statement.

    Oups... didn't ever try this with FOR XML and didn't...

  • RE: Exec SP and ignore the output (occasionally)

    claudiosil100 (9/7/2009)


    would be the perfect way without any 3rd parameter to say if it is normal or is being called by another SP

    IF @SP2

    SELECT field1, field2, field3

    ...

  • RE: Exec SP and ignore the output (occasionally)

    Hi ClΓ‘udio

    claudiosil100 (9/7/2009)


    How can I apply this example to my problem? :S

    My usp_TestXML return an XML, using FOR XML RAW that it's used by another users/applications I can't modify to...

  • RE: Exec SP and ignore the output (occasionally)

    Hi claudiosil100

    Try this:

    ---==============================================

    -- we test on tempdb

    USE tempdb;

    GO

    ---==============================================

    -- a procedure which returns XML

    IF (OBJECT_ID('usp_TestXML') IS NULL)

    EXECUTE ('CREATE PROCEDURE usp_TestXML AS SELECT 1');

    GO

    ALTER PROCEDURE usp_TestXML

    AS

    SELECT...

  • RE: Fastes way to increment an id column

    Paul White (9/7/2009)


    It's good to hear you are keeping busy anyway πŸ™‚

    Though the management side of things sounds quite dull.

    The management side of things is dull! I would like to...

  • RE: Fastes way to increment an id column

    Paul White (9/7/2009)


    But for a table which just needs sequential row numbers adding to it, even 2008 doesn't have a faster method.

    It depends. In SQL Server 2005/2008 you can avoid...

  • RE: Fastes way to increment an id column

    Hi Paul

    Paul White (9/6/2009)


    2. This method runs in less than half the time (2005 only):

    This script was just a little trick for SQL Server 2000 and previous versions ;-). There...

Viewing 15 posts - 331 through 345 (of 2,038 total)