Sahil
Wed Jan 05 16:04:53 CST 2005
Yes the WITH ENCRYPTION stored procs can be deciphered.
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"Fredrik Wahlgren" <fredrik.p.wahlgren@mailbox.swipnet.se> wrote in message
news:eGkrK228EHA.3260@TK2MSFTNGP14.phx.gbl...
>
> "Eric Barr" <REMOVE_First_22_chars_hanz_zarcovic@hotmail.com> wrote in
> message news:OvWytk28EHA.1408@TK2MSFTNGP10.phx.gbl...
> > Well, without specifying what DB you are using its kind of tough to say.
> > I will assume SQL Server, but all major DBMS'es should have a way
> > to get at this.
> >
> > In SQL Server There are a number of ways you can do this.
> >
> > 1) Select the appropariate rows from syscomments ...look up they system
> > tables in SQL Server Books on Line for more info. Probably a join
> > between sysobjects and syscomments.
> >
> > 2) Use a sql system stored procedure
> > sp_helptext MyStoredProcedureName
> >
> > 3) Use the INFORMATION_SCHEMA views that SQL Provides. These views are
> > part of the SQL-92 standard so are probably the most generic way to go
> > about it.
> > SELECT ROUTINE_DEFINITION
> > FROM INFORMATION_SCHEMA.Routines
> > WHERE ROUTINE_Name = 'TheStoredProcIWantToFind'
> >
> > Hope that helps,
> > -eric
> >
>
> Of course, you can't get the source code if the stored procure was created
> with the "WITH ENCRYPTION" clause. At least not if you are logged in as an
> average joe. I'm not sure whether the administrator will be able to see
it.
> Anyone?
>
> / Fredrik
>
>