Forum Replies Created

Viewing 15 posts - 3,001 through 3,015 (of 8,416 total)

  • RE: Double Delimited String Parsing and Re-Concatenation Help

    C# source code, for those that prefer to compile for themselves:

    using System;

    using System.Collections;

    using System.Collections.Generic;

    using System.Data.SqlTypes;

    using Microsoft.SqlServer.Server;

    public partial class UserDefinedFunctions

    {

    [SqlFunction

    ...

  • RE: Double Delimited String Parsing and Re-Concatenation Help

    Gianluca Sartori (7/12/2010)


    I think this problem could be solved much better with a CLR aggregate, but it's a technique I don't master.

    A CLR aggregate wouldn't be the right choice because...

  • RE: Help with SQL Coding

    In the meantime, in case you are just looking for something simple to get you started:

    DECLARE @temp INTEGER;

    BEGIN TRANSACTION;

    -- Find a new random number that does not already...

  • RE: Character type number convert

    Jeff Moden (7/14/2010)


    Heh.... I've really got to learn to read the other posts before posting. :blush:

    Where would be the fun in that? :laugh:

    More seriously, it is a pet peeve of...

  • RE: Help with SQL Coding

    tasnim.siddiqi (7/14/2010)


    Robust in the sense that it will be more reliable, I mean with just ascending ordered numbers the app_IDs will have a biased numbering form. I mean it is...

  • RE: Help with SQL Coding

    tasnim.siddiqi (7/13/2010)


    As stated previously, Identity column will solve the problem, but its not random and therefore the idea is not very robust.

    Can you explain that a little more? I...

  • RE: need help in applying foreign key constraint in the table

    You need to add a UNIQUE index or constraint to the RepairCategoryMaster table. The index or constraint should be on the CategoryID column only.

    You should also read up on...

  • RE: Are the posted questions getting worse?

    Tom.Thomson (7/13/2010)


    Depending on the table and index structure, it's quite possible that most updates will hit only one or two of the indexes even if there are 20 or more...

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (7/13/2010)


    I have a problem with the word "NEVER."

    Me too. My only rule of thumb is that there are no good rules of thumb.

    And 'never' means 'try to avoid...'...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/13/2010)


    Gianluca Sartori (7/12/2010)


    I think yesterday it was Emperor Paulpatine's birthday.

    Happy birthday, Paul!

    Heh... does it mean more Vuvuzelas?

    It was indeed - well remembered, Gianluca, and thanks!

    I am pleased to...

  • RE: Question on OBJECTPROPERTY

    An example (based on a test database of mine):

    -- Just to make the point

    USE master;

    GO

    IF EXISTS

    (

    ...

  • RE: Question on OBJECTPROPERTY

    virgilrucsandescu (7/13/2010)


    Weird that it works fine for the other tables in Development DB .. It must be something undocumented ...

    Possibly the object id returned by OBJECT_ID happens to match a...

  • RE: Today's Random Word!

    The ecstasy and the agony...

  • RE: Help with SQL Coding

    Thanks, Eugene. I'm glad someone else appreciates the subtleties.

  • RE: Character type number convert

    Chris Morris-439714 (7/13/2010)


    Paul White NZ (7/13/2010)


    Chris Morris-439714 (7/13/2010)


    It's great ... but...the order of the output doesn't match the order specified by the OP 😛

    Yeah, but the OP got it wrong!

    TWICE!...

Viewing 15 posts - 3,001 through 3,015 (of 8,416 total)