Forum Replies Created

Viewing 15 posts - 4,306 through 4,320 (of 5,504 total)

  • RE: Challenge of allocating collaterals to loans (many to many)

    Please post more detailed information (including execution plan) as described in the second link in my signature.

  • RE: Data Import with BCP

    Please don't cross post. Same question (to be used for further assitance) asked here .

  • RE: Cursor Error: Subquery returned more than 1 value

    hs103 (2/8/2010)


    ...

    Why does cursor get all 3 records at the same time and gives error????

    Please Help!

    Please see my previous post:

    You're doing a SELECT FROM MyTable. This will result in...

  • RE: Help Processing XML docs in a stored procedure

    Assuming you have your xml data stored in an xml variable named @xml, I'd use the following code:

    ;WITH cte AS

    (

    SELECT

    c.value('@id[1]', 'varchar(10)') +'-'+

    y.value('LabelType[1]/@id[1]', 'varchar(10)')+'-'+

    y.value('Label[1]/@id[1]', 'varchar(10)') a

    FROM @xml.nodes('strinfo/choices/choice') t(c)

    CROSS APPLY

    t.c.nodes('Labels/Label') x(y)

    )

    SELECT...

  • RE: How to catch a screen-scraper?

    It seems like the service you provide doesn't meet the requirements of some users.

    Sounds like there are some people out there looking for a way to get lists rather than...

  • RE: Cursor Error: Subquery returned more than 1 value

    The problem is that your statement

    SET @fName = (select [something] from MyTable)

    will return one value for every row in MyTable, which cannot be assigned to a variable of the data...

  • RE: Compare Two Rows in a table and identify the column that is chaged.

    I don't know if there's an easier way to do it but here's what I came up with (using UNPIVOT and PIVOT):

    DECLARE @tbl TABLE

    (id INT,

    c1 CHAR(1), c2 CHAR(1), c3...

  • RE: DBCC Timewarp

    nigel. (2/8/2010)


    My hamster just fell through a distortion in the space-time continuum. Is it possible to get him back using DBCC TIMEWARP. Please help, he was my best friend.

    Ooops!

    Could you...

  • RE: Stored Procedure Help..

    I would not use two different strategies.

    What I would recommend to do:

    Take the insert without any value for parentid. Set this column to a default value that will identify parentids...

  • RE: Stored Procedure

    Is the insert statement the only statement in your proc?

    Or are you using a cursor by any chance?

    Would you mind sharing the overall concept of your procedure as well as...

  • RE: Check for table EXISTence in SQL '08

    never mind. Didn't read the whole story before answering. Sorry.

  • RE: Stored Procedure Help..

    T-SQL_NewBie (2/6/2010)


    How would my insert statement look like if I need to insert a new record and relate to its parent 6 digit number

    ABC00000000001 ABC Shipping Inc ...

  • RE: DBCC Timewarp

    Matt Miller (#4) (2/6/2010)


    ...

    Careful about the usage folks. If you happen to read these messages backwards... DBCC TimeWarp also performs a DBCC MindWarp on the person at the keyboard...

  • RE: Stored Procedure Help..

    Ok, here's what I came up with:

    ;WITH Repeats AS

    (

    SELECT 1 AS parent, 6 AS Cnt UNION ALL

    SELECT 2,10 AS Cnt UNION ALL

    SELECT 3,14 AS Cnt

    ),

    cte AS

    (

    SELECT

    ROW_NUMBER() OVER(ORDER BY CompanyName,parent...

  • RE: DBCC Timewarp

    CirquedeSQLeil (2/6/2010)


    The Dixie Flatline (2/6/2010)


    Fine then, Mr. Wings-On-Your-Hat-And-Feet-Man with the vaguely French name.

    I'll just get my answer off Twitter.

    I wave my subatomic particles at all of your...

Viewing 15 posts - 4,306 through 4,320 (of 5,504 total)