Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: BCP using xp_cmdshell

    In the end I got it to work. You were right, it was an issue with permissions on the c:\ but just simply not specifying a path didn't help.

    I ended...

  • RE: BCP using xp_cmdshell

    actually i ran

    EXEC master.dbo.xp_cmdshell 'bcp "SELECT FirstName, LastName FROM AdventureWorks.Person.Contact ORDER BY LastName, Firstname" queryout Contacts.txt -c -T -Usa -Ppw -S[TECH-01]'

    and i am getting

    SQLState = 08001, NativeError = 53

    Error...

  • RE: BCP using xp_cmdshell

    Lowell (1/12/2010)


    ok...how about the hyphen in the server name? wrap it in brackets?

    -TECH-01 to -[TECH-01]

    Back to the original error. I think my settings are failing me.

  • RE: BCP using xp_cmdshell

    eliminating the c:\ still gives me the same error, I am however getting a new error when i run this:

    Execute master.dbo.xp_cmdshell 'bcp "SELECT FirstName, LastName FROM AdventureWorks.Person.Contact ORDER BY LastName,...

  • RE: BCP using xp_cmdshell

    no go 🙁

  • RE: Stored procedure directory variable

    I was asking about why I needed to break the bulk insert as an output string of another SP.

    also thanks for the correction in code 🙂

  • RE: Stored procedure directory variable

    Got it working after some research and effort it looks like this.

    this is the SP that will be executed by the application

    set ANSI_NULLS ON

    set QUOTED_IDENTIFIER ON

    GO

    ALTER PROCEDURE [dbo].[updateFingerPrints]

    @bulkFile VARCHAR(MAX)

    AS

    drop table...

Viewing 7 posts - 1 through 7 (of 7 total)