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. SQL Server Stored Procedure Encryption

SQL Server Stored Procedure Encryption

Scheduled Pinned Locked Moved Database
databasesharepointsql-serversysadminsecurity
3 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.
  • S Offline
    S Offline
    Syed Mujtaba Hassan
    wrote on last edited by
    #1

    Hi there, I am trying to encrypt my sotred procedures with "WITH ENCRYPTION" clause like this ALTER PROC myProcedure WITH ENCRYPTION. It works well for the stored procedure that has not parameters but for a stored procedure with parameter list it generates the following error. "Incorrect syntax near '@p_param1'." where @p_param1 is the first parameter. Note that this SP is giving the proper results and runs well. Thanx in advance

    Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."

    S 1 Reply Last reply
    0
    • S Syed Mujtaba Hassan

      Hi there, I am trying to encrypt my sotred procedures with "WITH ENCRYPTION" clause like this ALTER PROC myProcedure WITH ENCRYPTION. It works well for the stored procedure that has not parameters but for a stored procedure with parameter list it generates the following error. "Incorrect syntax near '@p_param1'." where @p_param1 is the first parameter. Note that this SP is giving the proper results and runs well. Thanx in advance

      Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #2

      Try adding the WITH clause after your parameters list like create procedure testproc @param1 int with encryption as begin [your stmts here] end

      SG Cause is effect concealed. Effect is cause revealed.

      S 1 Reply Last reply
      0
      • S SimulationofSai

        Try adding the WITH clause after your parameters list like create procedure testproc @param1 int with encryption as begin [your stmts here] end

        SG Cause is effect concealed. Effect is cause revealed.

        S Offline
        S Offline
        Syed Mujtaba Hassan
        wrote on last edited by
        #3

        Well I wonder why this idea didn't struck me. :) that was too simple. Thanx for help SimulationofSai.

        Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."

        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