Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)

  • RE: Unable to open BCP host data-file error

    Ian Scarlett (7/6/2009)


    Is this file definately accessible by the server hosting your SQL instance.

    Don't forget, "'D:\alianz\output\CEMTXOUT_ALIANZ'" is referring to the D: drive on the server, not the workstation you are...

  • RE: Undeclared variable error messege problem

    I displayed the output and it work but when trbasfer it give this error

    Error = [Microsoft][ODBC SQL Server Driver]Unable to open BCP host data-file

    do u have any idea to...

  • RE: Undeclared variable error messege problem

    ALZDBA (7/6/2009)


    Try this:

    SET @bcpCommand = 'bcp " select ' + @CTX_TRAILER +' " queryout "'

    Why aren't you using the T-SQL "Backup database" command with a SQLCMD ?

    It not owrk I...

  • RE: Need help about cross join

    Dave Ballantyne (7/1/2009)


    Assuming 2005 +

    create table ali

    (

    code varchar(16),

    fromcol integer,

    toCol integer

    )

    go

    insert into ali values('ali1',1,5)

    insert into ali values('ali2',6,15)

    go

    with ctenumber(rownum)

    as

    (

    Select rownum = row_number() over(order by id)

    ...

  • RE: Need help about cross join

    GilaMonster (7/1/2009)


    So want you want outputting is

    Ali, 1

    Ali, 2

    Ali, 3

    Ali, 4

    Ali, 5

    Ali2, 5

    Ali2, 6

    Ali2, 7

    ... all the way up to

    Ali2, 49

    Ali2, 50

    yes exactly what I want , please help me...

  • RE: Need help about cross join

    GilaMonster (7/1/2009)


    Can you give us some sample data for the Ranges table? Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    The Ranges Table have the...

  • RE: Need help about cross join

    GilaMonster (7/1/2009)


    ali.m.habib (7/1/2009)


    select *

    from RANGES CROSS APPLY dbo.fnCrossJoinRange2([Ranges.from],[Ranges.to])

    but give the same error

    Is the database case sensitive? If so, you'll need to fix the case in the proc's parameters.

    thanx alot...

  • RE: Need help about cross join

    GilaMonster (7/1/2009)


    ali.m.habib (7/1/2009)


    select *

    from RANGES CROSS APPLY dbo.fnCrossJoinRange2([Ranges.from],[Ranges.to])

    but give the same error

    Is the database case sensitive? If so, you'll need to fix the case in the proc's parameters.

    thanx alot...

  • RE: Need help about cross join

    GilaMonster (7/1/2009)


    To pass columns from a table as parameters to a table-valued function in the same FROM clause, you need CROSS APPLY, not CROSS JOIN

    select <Column list >

    from RANGES

    CROSS APPLY...

  • RE: why this runtime errors

    I found the solution thnax for all the member

  • RE: how can I solve that

    GSquared (1/27/2009)


    iainthepitman (1/27/2009)


    problem might be that your @z is declared as an int yet you're trying to set it as a string. if @z is supposed to be a...

  • RE: how can I solve that

    GSquared (1/27/2009)


    You can't build the string to be executed inside the Exec command. Build it as a variable first, then execute it.

    the problem not in the string it work...

  • RE: how canI do that in sql server 2005

    delete and reinsert 2 thousands and more record oh, are ukiding

Viewing 13 posts - 16 through 28 (of 28 total)