I keep getting this error when doing a bcp export, why?

SQLState = S0002, NativeError = 208
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'SGMH_Reports.dbo.sp_RadLog'.
SQLState = 37000, NativeError = 8180
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement(s) could not be prepared.
NULL
QUERY:
set @FileName =Convert(varchar(2),DatePart(MM,@EndDate))+'_'+
              Convert(varchar(2),DatePart(DD,@EndDate))+'_'+
              Convert(varchar(4),DatePart(YYYY,@EndDate))
Set @FileLoc = '\\sangorbandc02\data\FTPResend\RADADT\'
--Set @FileLoc = '\\it-dba\C$\TestFiles\'
Set @Command = 'bcp "Select * from SGMH_Reports.dbo.sp_RadLog" queryout "'+
                RTrim(LTrim(@FileLoc))+'\ADT_'+@FileName+'.txt" -T -c -t^|'
print @Command
YFLORES

is this a valid object SGMH_Reports.dbo.sp_RadLog? Can you query this table?
Select * from SGMH_Reports.dbo.sp_RadLog
If So, can you mention -S <ServerName> in the bcp command ?
Set @Command = 'bcp "Select * from SGMH_Reports.dbo.sp_RadLog" queryout "'+
                RTrim(LTrim(@FileLoc))+'\ADT_'+@FileName+'.txt" -S <ServerName> -T -c -t^|'
-Prashanth

Similar Messages

  • I keep getting this error when I try to export as pdf or try to print to pdf. Does anyone know how to fix it?

    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[ Error: typecheck; OffendingCommand: showpage ]%%
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%

    I'm having this issue as well. I have tried directly exporting and packaging the file and keep getting error messages. When I initially open InDesign the document has a distiller message error. I'm not sure what that means but I'm sure it's contributing to the problem. After trying Peter's work around it acted like it was exporting but at the last minute failed to. Other ideas/solutions welcome.
    Thanks-

  • I keep getting this error when trying to backup time capsule with time machine. The backup disk image "/Volumes/Data-1/Dan's iMac.sparsebundle" is already in use.

    I keep getting this error when trying to backup time capsule with time machine. The backup disk image “/Volumes/Data-1/Dan’s iMac.sparsebundle” is already in use.

    Make sure that no other Macs are backing up at the time.
    Pull the power cable from the back of the Time Capsule
    Count to ten
    Plug the power cable back into the back of the Tme Capsule
    Wait a few minutes, then try a backup again.

  • Keep getting this error when ever I try to use the CC_2014

    keep getting this error when ever I try to use the CC_2014 InDesign
    Unable to launch Adobe InDesign as you do not have sufficient permissions to access the preferences folders. Ensure that you have appropriate permissions and then restart Adobe InDesign.
    Also have Ai quit out on me in the CC_2014.
    This is very frustration since I use these the most

    For MAC try to give permissions to Adobe Indesign Folder:
    Users/[user]/Library/Caches/Adobe InDesign
    Users/[user]/Library/Preferences/Adobe InDesign
    Access hidden user library files | Mac OS 10.7 and later
    For Windows try to give permissions to Adobe Indesign Folder:
    C:\Users\[username]\AppData\Roaming\Adobe\InDesign
    C:\Users\[username]\AppData\Roaming\Adobe\InDesign
    Also you can try logging in under a local administrator account as suggested by jeff.

  • There was an error installing this update. Please quit and try again later. Error Code: U44M1I210  I keep getting this error when trying to update

    There was an error installing this update. Please quit and try again later. Error Code: U44M1I210  I keep getting this error when trying to update

    Hi,
    You can visit Error U44M1I210 | Install updates and see if it works.
    Regards
    Kishan

  • Error Message:  I keep getting this error when I try to download apps or songs :  MZCommerce.CreditBalance Mismatch.Mobile_message   Can someone tell me how to get rid of this?  It is very aggravating when trying to use the IPAD.

    I keep getting this error when I try to download apps or songs :  MZCommerce.CreditBalance Mismatch.Mobile_message   Can someone tell me how to get rid of this?  It is very aggravating when trying to use the IPAD.

    Try to go to Settings and then Store. Tap to your Apple ID and select View Apple ID. Now choose to check your payment information and when you're done tap Done. I had to rewrite my three digit code of the credit card and now it works.
    Oh, I also activated Genius for Apps but I don't think it makes any difference.

  • I keep getting this error when I publish the SWF file.

    I keep getting this error when I publish my SWF file.
    Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
    ReferenceError: Error #1065: Variable TLFTextField is not defined.
    And these compiled errors
    Symbol 'Symbol 6', Layer 'Layer 1', Frame 1
    Warning: The instance name 'staff' is declared on an object of type fl.text.TLFTextField but there is a conflicting use of the instance name 'staff' on an object of type flash.display.InteractiveObject.
    Scene 1, Layer 'action', Frame 1, Line 7
    1061: Call to a possibly undefined method gotoAndPlay through a reference with static type fl.motion:AnimatorFactory.
    Scene 1, Layer 'action', Frame 1, Line 3
    1061: Call to a possibly undefined method addEventListener through a reference with static type fl.motion:AnimatorFactory.
    This is the only action script 3.0 script that I wrote.
    import flash.events.MouseEvent;
        skipbtn.addEventListener(MouseEvent.CLICK, btnClick);
    function btnClick (event:MouseEvent):void{
        skipbtn.gotoAndPlay("home");

    the first line is a warning, not an error.
    and you have more actionscript than you think.  open the movie explorer panel and toggle the actionscript only button to find all the actionsript in your fla.

  • TS3989 I keep getting this error when I click on the link inviting me to join a Photo Stream: "An error occurred while joining the Photo Stream. Please try again later. "

    I keep getting this error when I click on the link inviting me to join a Photo Stream: "An error occurred while joining the Photo Stream. Please try again later."
    I was the one who set up the Photo Stream and sent the link to myself. I called Apple and they said I did everything right and the server must be temporarily down, but it has been the same for the better part of a day.

    None of the fixes above worked for me.  Continued getting the "try again" error message. 
    Tryed a bunch of things, such as going directly to icloud on Safari to open the mail message, no luck.
    Tryed the following;
    Went to iCloud and logged in via Safari, clicked on my account name in top right corner, selected "Advanced" on drop down menu, and selected "Reset Photo Stream".
    Turned off Photo Stream on all devices and iPhoto.
    Turned on Shared Photo Stream option on Mac iCloud preferences.
    Tried the "Join This Photo Stream" button in my Mac Mail app .me account again.
    Still got the error message.
    Forwarded the original mail message to a yahoo account, selected "Join this Photo Stream" in the yahoo account mail (still in my Mac Mail app), and lo and behold, iPhoto opened and displayed the photos. 
    Could be this would have worked right from the start.
    Oh yea, still get the "try again" message if I click on the Photo Stream button in my .me account.

  • I keep getting this error when connecting my phone (0xE8000001)

    I keep getting this error when connecting my phone (0xE8000001) to iTunes. Sometimes the phone will try and sync for a little bit then it disconnects. What gives?
    And yes, I do have the latest version of iTunes (7.3)

    i kept getting all the same errors and i just figured it out. after getting an iphone i went from pure excitment to anger as i plugged it in and realized i needed to upgrade to tiger. then i spent over an hour installing tiger and it still didnt work. i got the same itunes error of not recognizing. HERE IS THE FIX....TURN OFF THE IPHONE AND REMOVE FROM THE DOCK. DONT JUST PUT IT TO SLEEP, HOLD DOWN THE BUTTON UNTIL IT ASKS YOU TO SLIDE TO TURN OFF. THEN CLOSE ITUNES. NEXT TURN THE PHONE BACK ON BY RE-DOCKING. START UP ITUNES IF IT DOESNT START IMMEDIATELY. YOU SHOULD START HAVING FUN NOW, ALBEIT SLOW ON THE 1.1 USB.

  • I keeping getting this error when i try to scan HVURLHandlerErrorDomain error 1003.)

    i keep getting this message when i try to scan HVURLHandlerErrorDomain error 1003.)

    Your Profile on these Forums does not list which model and version of iMac you are using, nor the verision of OS X you are using, nor which model of Scanner.  Please tell us.
    Hope this helps

  • Keep getting this error when trying to skype... i ...

    http://puu.sh/cTXLk/0df5219d2f.png - keep getting this error. i tried downgrading from 6.2 to 6.1 and still getting it....

    Make sure that no other Macs are backing up at the time.
    Pull the power cable from the back of the Time Capsule
    Count to ten
    Plug the power cable back into the back of the Tme Capsule
    Wait a few minutes, then try a backup again.

  • Getting this error when doing a place with oam file

    I am getting the following error when uploading a OAM file: muse_manifest.xml. try again latter.
    Also is there a better way to have videos play in muse?
    Anyone know what this means?
    Thanks.
    Joe

    May i have the screenshot of the exact error ?
    Also for videos you may find this widget helpful : Adobe Muse HTML5 Video Player Widget | MuseThemes.com  details : Adobe Muse Widget | Customizable HTML5 Video Player

  • Keep Getting this Error When I'm Partitioning Boot Camp

    But, I do what it says and I still get it:
    here's a ss
    http://img168.imageshack.us/img168/6636/untitled1jm8.jpg

    I got this error after I did the following:
    1. Installed BC/WinXP.
    2. Removed WinXP by reclaiming entire volume for use by OSX using BC.
    3. Tried to re-partition the drive using BC.
    I fixed this by booting from the OSX startup disc and running the disc utility and had it repair the disc. Apparently step 2 above left the disc with some sort of errors on it. I originally partitioned the disc using BC 1.2b. I later updated to BC 1.3b (which is what I tried the repartition with).
    MBP C2D 2.33   Mac OS X (10.4.9)  

  • Keep getting this error when I run a program   UC_OBJECTS_NOT_CONVERTIBLE

    I created a project via CMOD for a modification to a BW extractor.  It is pretty simple coding but when I try and execute the extractor via RSA3 I get the following error.  I've attached the code as well and it is something with line 17.  can you please help
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLXRSA" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    Error analysis
        The statement
           "MOVE src TO dst"
        requires that the operands "dst" and "src" are convertible.
        Since this statement is in a Unicode program, the special conver
        rules for Unicode programs apply.
        In this case, these rules were violated.
    Trigger Location of Runtime Error
        Program                                 SAPLXRSA
        Include                                 ZXRSAU01
        Row                                     17
        Module type                             (FUNCTION)
        Module Name                             EXIT_SAPLRSAP_001
    Source Code Extract
    Line  SourceCde
        1 *&----
        2 *&  Include           ZXRSAU01
        3 *&----
        4
        5 TABLES: VTTK.
        6 DATA: L_MCCOMVTTS LIKE MCCOMVTTS,
        7       L_TABIX LIKE SY-TABIX.
        8
        9
       10
       11 CASE I_DATASOURCE.
       12
       13  WHEN '2LIS_08TRTLP'.
       14
       15 *FIND TDLNR & VSART IN THE SHIPMENT HEADER TABLE
       16
    >>>>>  LOOP AT C_T_DATA INTO L_MCCOMVTTS.
       18   L_TABIX = SY-tabix.
       19   SELECT SINGLE * FROM VTTK WHERE TKNUM = L_MCCOMVTTS-TKNUM.
       20
       21 *FILL FIELDS WITH DATA FROM VTTK(SHIPMENT HEADER TABLE)
       22   IF SY-SUBRC = 0.
       23    L_MCCOMVTTS-Z_TDLNR = VTTK-TDLNR.
       24    L_MCCOMVTTS-Z_VSART = VTTK-VSART.
       25    MODIFY C_T_DATA FROM L_MCCOMVTTS INDEX L_TABIX.
       26   ENDIF.
       27  ENDLOOP.
       28 ENDCASE.

    ra you sure the
    table C_T_DATA and the work area L_MCCOMVTTS have the smae fileds with same data element .
    i think somewhere ther is adifference that why systerm is umable to populate the table data in to work area..
    <b>i have observed that C_T_DATA is not defined any format..
    Make sure u have the same structure for the work area as well</b>
    Please Close this thread.. when u r problem ise solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

  • I keep getting different errors when i try to upgrade why? i have been 5 hours trying to figure out this ? im soo freaked

    help please.
    im on firmwere 4.3.5 im trying to go up to 5.0...

    Windows 7 includes DirectX 11 in its baseline and it is not necessary to install another version of it.  Your problems may be caused by the installation of the version of DirectX you installed.  Uninstall the one you installed and see if you
    still have the errors.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

Maybe you are looking for

  • Podcasts dragged to playlists not able to be deleted

    i listen to a lot of podcasts and find older episodes from the site's archives which i drag to playlists on my ipod. i've been noticing that some of these (while playable and visible within the playlist) are not appearing under music while in itunes,

  • AP 1200 local authentication PEAP

    Can I use AP 1200 with configured local radius server as authenticator for Windows XP clients using PEAP auhentication metod ?

  • ECO 7.0 for ERP product catalog views

    To warn everyone, I know this question has been asked before for earlier releases several times, but I did not find anything in the threads I mention below. We are currently on CRM 7 and ECC 6(no enhancement packs).  I have found quite a few good mat

  • Data acquisition palette missing in Labview6.1

    The DAQ palette is missing with Labview6.1. The computer is connected with PXI Chassis per MXI3. It contents 2 PXI-6040E and 2 PXI-6527. There's no Hardware Conflict with Windows2000 or NI-MAX. How can I solve the Problem?

  • Problem in networking

    Dear all: I am doing my homework. And I had solve the question 2.But in Q3, I spend about two weeks and cannot solve it. And the time is limited, pls. give me a hand. Thanks! The questions are: (Q2) The system has a total of 10 threads. 5 threads are