Forum Replies Created

Viewing 15 posts - 2,326 through 2,340 (of 3,544 total)

  • RE: Parsing Data

    Try this

    if len(trim(right(sHold,2))) = 1 then

        'trim leading and trailing spaces form values

        sFirst = trim(mid(sHold,1,len(sHold)-2))

        sMiddleInit = trim(right(sHold,2))

    else

        iLoc = instr(1,sHold," ",0)

        if iLoc > 0 then

            'middle...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Problem with OUTPUT Parameters

    I think your problem is to with you parameter declarations for @RETURN_VALUE1 and @RETURN_VALUE2.

    ADO uses @RETURN_VALUE for the return value and even though you used @RETURN_VALUE as an output parameter...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: ISQL help

    ISQL will produce a fixed column report padded with spaces if necessary.

    Are you sure the procs are the same.

    SELECT Column1,Column2,Column3 FROM [Table]

    will produce

    Column1                ,Column2                ,Column3

    whereas

    SELECT '"'+Column1+'","'+Column2+'","'+Column3+'"' FROM [Table]

    will produce

    "Column1","Column2","Column3"

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: ODBC Driver list blown away

    Thats OK David glad to help.

    Your too kind David.

    I know, we try to please.

    David

     

    Talking to yourself is the only guaranteed way to get the right answer

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Query for displaying second highest value from a table.

    Another just for fun but uses a variable

    declare @empid int

    select @empid = employeeId from

    (select top 2 employeeId from employees order by employeeId desc) a

    select @empid

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SQL Help

    Or this

    SELECT TENANCYID, SUPPLIERID, EMPLOYEEID, invAmout,

    SUM(CASE WHEN itemtype=12 THEN AMOUNT ELSE 0. END) as [openingBalance],

    SUM(CASE WHEN itemtype=5  THEN AMOUNT ELSE 0. END) as [payment]

    FROM

    GROUP BY...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Writing two tables to one text file in one job: can it be done?

    quoteMy thought for another attempt was to create a table with a couple dozen varchar(255) fields,

    This...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Question of the Day for 17 Mar 2005

    No whinging here  but...

    Too vague

    You cannot create catalog without enabling Full-Text Search for the database first, there was no mention...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Four-part names

    In addition to what has already been posted. I transfer 70+ tables (6+ GB) daily from a third party system and understand your frustration.

    These tables are used for reporting and is...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Four-part names

    Is PROGEN a sql server?

    I get this error when connecting to a third party database using their odbc driver. OPENQUERY works fine but the system will not work with four part...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: help creating sequence value using sql transaction

    Well thats EM for you

    Yes your's should do the same, however, I wonder if there is a (very) small chance that two processes could generate...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: help creating sequence value using sql transaction

    When I tested the code, my tables did not have primary keys or indexes and EM was locked out of both tables and EM showed the tables as locked under...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: help creating sequence value using sql transaction

    I had no problems testing this in QA and both my tables were locked.

    Did you use just the tsql, you cannot have a procedure with a begin tran without corresponding...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: help creating sequence value using sql transaction

    How about this

    create Procedure spCreateQuestion(@QuestionName varchar(30))

    as

    SET NOCOUNT ON

    declare @newAnswerId int

    declare @newQuestionId int

    -- Start Transaction to lock rows

    BEGIN TRANSACTION

    -- Insert row into Questions and...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Parsing Data

    What do you mean by does not work, do you get a syntax error or are the results not what you expected.

    DTS ActiveX transformations can be written in either VBScript (Visual...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 2,326 through 2,340 (of 3,544 total)