Forum Replies Created

Viewing 15 posts - 706 through 720 (of 1,186 total)

  • RE: Execute a Store Procedure in a select statment

    You cannot EXEC stored-procedures HOWEVER you can have user-defined functions in-line.  You may want to research UDFs and see if they can accomplush your desired results.

  • RE: SQL Statement Help

    Probably another VERY GOOD reason that I forget about COALESCE

    Thank you as always for keeping me from hurting myself

  • RE: How to clear data in Excel before execute DTS

    there are various different ways of resolving this.  Create an Excel file with unique name everytime, Have a template Excel file that you populate and save as a different name,...

  • RE: QA Exec Logon Failure

    Did abc's password expire/change?  Is the account locked?

  • RE: DTSRun utility from Command prompt

    How bout granting access to a scheduler task on the server that the user can modfiy the schedule?  This way the job will be activated from the server and the...

  • RE: SQL Statement Help

    I honestly don't know Frank.  I know that I generally forget about COALESCE until I read about it here.  Figured the CASE and COALESCE in certain instances go together. 

  • RE: SQL Statement Help

    How bout

    CASE Col1 = 'HHHH' THEN Col2 ELSE Col1 END AS SReturn ???

    You may want to review COALESCE as well..

  • RE: DTSRun utility from Command prompt

    Can you have this DTS package scheduled?  Is it possible that you have a web server and can perform this from the web?

    If the user is supposed to run the...

  • RE: UPDATE statement - Newbie in a quandry!

    Something like this might help you:

    UPDATE B SET ItemCount = A.RecCnt

    FROM tableA A

      INNER JOIN (SELECT DespatchNoteNumber, COUNT(*) RecCnt

        GROUP BY DespatchNoteNumber) B

    ON A.DespatchNoteNumber = B.DespatchNoteNumber

  • RE: SMO and VS .NET 2003 problem

    Probably.  Only because VS .NET 2K3 was released prior to 2K5 and all of the different functionality would not be ready for release yet

  • RE: xp_cmdshell & ODBC WrapperRead() error...

    Are Named Pipes and TCP/IP enabled on the second set of servers??

  • RE: Removing spaces from a string

    You might be able to use this and build a function out of it.  This will remove anything that is not from a-Z.

    SET NOCOUNT ON

    DECLARE @String AS VARCHAR(255)

    DECLARE @IntStr AS VARCHAR(255)

    DECLARE...

  • RE: Query for reteriving the last updated record.

    Another option is to have a ModifiedDtTm column with the Date/Time of when the records have been modified and then all you would have to do is SELECT [columns here]...

  • RE: Using Count is a Proc

    You will need to have the structure of your query go:

    FROM then WHERE then GROUP BY then HAVING and finally ORDER BY

    The GROUP BY is required for the COUNT()...

  • RE: How to find and replace a string in a table?

    Why not simply

    UPDATE table SET Column  = REPLACE(Column, 'mkpdc', 'SRV01')

Viewing 15 posts - 706 through 720 (of 1,186 total)