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. Web Development
  3. ASP.NET
  4. ASP.NET Call SQL Server DTS

ASP.NET Call SQL Server DTS

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpasp-netsql-server
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.
  • L Offline
    L Offline
    Linus51680
    wrote on last edited by
    #1

    Dim sql As String sql = "exec master.dbo.xp_cmdshell 'dtsrun /Shitsql033 /NLinus_DTS_ASP_Test /UASPDTS /PASPDTS'" oic.executeSelectStatement(sql) oic.CloseConnection() Result: EXECUTE permission denied on object 'xp_cmdshell', database 'master', owner 'dbo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: EXECUTE permission denied on object 'xp_cmdshell', database 'master', owner 'dbo'. I have make the account "ASPDTS" to be System Administrator Can anyone help? Many thanks Linus

    T 1 Reply Last reply
    0
    • L Linus51680

      Dim sql As String sql = "exec master.dbo.xp_cmdshell 'dtsrun /Shitsql033 /NLinus_DTS_ASP_Test /UASPDTS /PASPDTS'" oic.executeSelectStatement(sql) oic.CloseConnection() Result: EXECUTE permission denied on object 'xp_cmdshell', database 'master', owner 'dbo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: EXECUTE permission denied on object 'xp_cmdshell', database 'master', owner 'dbo'. I have make the account "ASPDTS" to be System Administrator Can anyone help? Many thanks Linus

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      You really don't want to use the xp_cmdshell. You can actually execute a sql dts package from you vb.net / c# code. Check out this Link "People who never make mistakes, never do anything." My Blog

      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