xp_cmdshell

Discussion in 'Databases' started by mfatehy, Jul 4, 2010.

  1. Dear sir,

    I need to import data from text file to my database. so I am trying to use bcp command ,
    Is their any way to execute stored procedures like
    bcp DBedurec.dbo.srd in E:\web\edurecn1\rania.txt -n -Sabuomarpc\sqlexpress -UDBedurec_user –P**** '

    it returns

    The EXECUTE permission was denied on the object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'.



    Thanks
    :rolleyes:
     
  2. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015

Share This Page