Forum Replies Created

Viewing 15 posts - 10,411 through 10,425 (of 18,923 total)

  • RE: Not getting the desired result.

    Yup : DDL = data definition language.

  • RE: Using Results from an extended stored procedure

    Sounds like we may use this code for the same purpuse .

     

    USE SSC

    GO

    CREATE TABLE #Results (txtResult varchar(2000) NULL)

    INSERT INTO #Results (txtResult)

    EXEC master.dbo.xp_cmdshell 'DIR D:\*_BACKUP_*.*'

    SELECT...

  • RE: Not getting the desired result.

    I'm not sure I'm following and I don't want to guess at this one.

    Can you post the tables ddl for the 2 tables concerned, some sample data from both tables...

  • RE: Stored Procedure Problem

    I recall the best way to solve this one as I've never worked with server generated identities (other than identity column).

     

    I'll see what other dbas have to offer.

     

    PS May I...

  • RE: Not getting the desired result.

    This is the main problem

    Where exists(Select * From apvend   Where fvtype = 'MD')

     

    It will always return true or always return false because fvtype = 'MD' will also be true...

  • RE: Stored Procedure Problem

    I would assume that more than one row are being inserted... causing the error. Can you verify that?

  • RE: CASE WHEN

    The case statement should look like this :

    CASE WHEN Col001 NOT LIKE 'NULL' THEN[Col001] ELSE NULL END,

     

    But it can be shortened up with this :

    NULLIF(Col001, 'NULL') to get the...

  • RE: Random Row Selection

    This is one of the dirtiest trick in the book, but it looks like it was made for this problem :

    PS This solution cannot safely be implemented on the...

  • RE: any alternatives of left outer join

    The only solution I can give is to make sure that the query returns as little rows as humanly possible.  Try converting the left joins to inner join where possible.

     

    Can...

  • RE: what are causes for slow insert operations in table ?

    Too many disks IO on the server

    Too many indexes to reorder

    Not enough memory

    Temdb too small or on a slow disk (or the same disk as the insert and transaction log).

     

    That's...

  • RE: too many index scans!

    I'm working as a freelancer as well.  So I would assume I would be at the low end of the scale on that point (only 45 can $/ hour).  But...

  • RE: Using TRIGGERs to update data when data is changed.

    I think we'll need the actual problem to help you.

    In the you presented you just don't need the trigger.  When changing the name of the food, you should also change...

  • RE: OpenRowset with Microsoft Access

    Thanx for the details.  I don't have anything else to offer to you.

     

    One last thing I may propose is to make sure that "everyone" has "full control" on the directory...

  • RE: Corrputed Stored Procedure

    This is where you can see the cached plans :

    Select * from master.dbo.syscacheobjects

    As to know when they are corrupted, I would clear the cache, run the proc in question...

Viewing 15 posts - 10,411 through 10,425 (of 18,923 total)