Forum Replies Created

Viewing 15 posts - 2,806 through 2,820 (of 6,036 total)

  • RE: Assigning current of _Cursor to local @variable

    How do you know which "CarN" apply to any particular row with NULL?

    Just in case you don't know, there is no fixed order of rows in relational databases.

    And you cannot...

  • RE: Order By Error

    You order by single column.

    But you put into it values from different ones depending on parameter.

    SQL Server converts all values in all columns to the same datatype according to its...

  • RE: Dynamic SQL Newbie needs help

    You missed a dot.

    Here:

    FROM ['+@dbFrom+'].[dbo].[KontoKort X]

  • RE: 'N' number of usage - Tally Table

    One day some developer will read a conversation like this and decide it's good to use "thorn" character as a replacement for CR/LF.

    He/she will agree it with other side and...

  • RE: 'N' number of usage - Tally Table

    Jeff Moden (10/9/2008)


    change all the delimiters to a "thorn" and go for it.

    There is no guarantee "thorn" is not or will not be used within the filed for other...

  • RE: 'N' number of usage - Tally Table

    Matt Miller (10/8/2008)


    I would have said CLR, but then again - Sergiy might start foaming at the mouth....:)

    Why should I?

    Just build a .NET scrubber for clean up the file into...

  • RE: Swapping Columns

    karthikeyan (10/8/2008)


    is there any other work around to do the same ?

    Dynamic SQL.

  • RE: 'N' number of usage - Tally Table

    Jeff Moden (10/8/2008)


    ggraber (10/8/2008)


    That would also be a good question... what's the largest string that anyone has split?

    My procedure splits ntext string. Up to 2 GB long.

    It's in SQL2k.

    Tested...

  • RE: Changing sql keywords to lower or upper

    karthikeyan (10/8/2008)


    Actually we (mine and my manager) new to this project. My manager has looked some procedure few days back. He is not happy with the procedure case format. He...

  • RE: do operation on last inserted record by a trigger

    Jeff Moden (10/8/2008)


    Actually, why does this need to be done in a trigger? This sounds like a process specific to a particular proc and should probably on be done...

  • RE: do operation on last inserted record by a trigger

    Guys, I believe it's a good case when simple example would worth more than hours of reading.

    Now for OP.

    This is how your trigger FOR INSERT should look like:

    Update ...

  • RE: select within select

    Those examples must be not about SQL Server.

  • RE: Query to know clustered index

    indid = 1 means the index is clustered.

  • RE: SQL 2005 SCRIPT to COMPARE

    SELECT T1.CandidateID, 'Missing From Table 2'

    FROM Table1 T1

    WHERE NOT EXISTS (select 1 from Table2 T2 where T1.CandidateID = T2.CandidateID)

    UNION ALL

    SELECT T2.CandidateID, 'Missing From Table 1'

    FROM Table2 T2

    WHERE NOT EXISTS (select...

  • RE: Conditional JOIN in a view possible?

    And too small.

    SQL Server reads data by pages.

    If your whole data set fits one page it will be 1 read, no matter is it 1k or 7k.

    And this page will...

Viewing 15 posts - 2,806 through 2,820 (of 6,036 total)