Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. BCP CLI Cannot find Invalid object name. [modified]

BCP CLI Cannot find Invalid object name. [modified]

Scheduled Pinned Locked Moved Database
databasesharepointsql-serversysadmintools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Groulien
    wrote on last edited by
    #1

    I'm trying to export the results of a stored procedure to a csv, here's what I've got: "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\bcp.exe" myDb.dbo.spExport out "Data.csv" -T -Slocalhost -t";" -c It keeps telling me "Invalid object name 'myDb.dbo.spExport'." Other stored procedures don't work either and none require parameters. Pointing to a table works so I thought I was pointing to at the SP's the right way. What am I doing wrong? -Nevermind, got it working: "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\bcp.exe" myDb.dbo.spExport queryout "Data.csv" -T -Slocalhost -t";" -c

    modified on Tuesday, May 31, 2011 10:08 AM

    C 1 Reply Last reply
    0
    • G Groulien

      I'm trying to export the results of a stored procedure to a csv, here's what I've got: "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\bcp.exe" myDb.dbo.spExport out "Data.csv" -T -Slocalhost -t";" -c It keeps telling me "Invalid object name 'myDb.dbo.spExport'." Other stored procedures don't work either and none require parameters. Pointing to a table works so I thought I was pointing to at the SP's the right way. What am I doing wrong? -Nevermind, got it working: "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\bcp.exe" myDb.dbo.spExport queryout "Data.csv" -T -Slocalhost -t";" -c

      modified on Tuesday, May 31, 2011 10:08 AM

      C Offline
      C Offline
      Corporal Agarn
      wrote on last edited by
      #2

      BCP is tricky at best.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups