Ejemplo n.º 1
0
 public void DropFunction(ProcRef funcName)
 {
     using (Log.DebugTraceMethodCallFormat("DropFunction", "Dropping function [{0}]", funcName))
     {
         _provider.DropFunction(funcName);
     }
 }
Ejemplo n.º 2
0
        public string GetProcedureDefinition(ProcRef proc)
        {
            if (proc == null)
            {
                return(null);
            }

            var procs = db.GetSchema(OleDbMetaDataCollectionNames.Procedures, new string[] { null, null, proc.Name });

            if (procs.Rows.Count != 1)
            {
                throw new InvalidOperationException(string.Format("Did not get exactly one result for Procedure {0}", proc));
            }
            var def = procs.Rows[0]["PROCEDURE_TYPE"] + Environment.NewLine + procs.Rows[0]["PROCEDURE_DEFINITION"];

            return(def.ToString());
        }
Ejemplo n.º 3
0
 public abstract void DropFunction(ProcRef funcName);
Ejemplo n.º 4
0
 public abstract void ExecRefreshRightsOnProcedure(ProcRef procName);
Ejemplo n.º 5
0
 public string GetProcedureDefinition(ProcRef proc)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public abstract void DropProcedure(ProcRef procName);
Ejemplo n.º 7
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.DropProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 8
0
 public bool CheckFunctionExists(ProcRef funcName)
 {
     return(_provider.CheckFunctionExists(funcName));
 }
Ejemplo n.º 9
0
 public void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     Log.InfoFormat("Creating refresh rights procedure for [{0}]", tblName);
     _provider.CreateRefreshRightsOnProcedure(procName, viewUnmaterializedName, tblName, tblNameRights);
 }
 public void ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     _provider.ExecRefreshRightsOnProcedure(procName);
 }
Ejemplo n.º 11
0
 public bool CheckFunctionExists(ProcRef funcName)
 {
     var result = _provider.CheckFunctionExists(funcName);
     LogExistance("Function", funcName, result);
     return result;
 }
Ejemplo n.º 12
0
 public bool CheckProcedureExists(ProcRef procName)
 {
     var result = _provider.CheckProcedureExists(procName);
     LogExistance("Procedure", procName, result);
     return result;
 }
Ejemplo n.º 13
0
 bool ISchemaProvider.CheckFunctionExists(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 14
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 15
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     throw new NotSupportedException();
 }
 public bool CheckProcedureExists(ProcRef procName)
 {
     return _provider.CheckProcedureExists(procName);
 }
Ejemplo n.º 17
0
 public bool CheckProcedureExists(ProcRef procName)
 {
     return(_provider.CheckProcedureExists(procName));
 }
 public void DropFunction(ProcRef funcName)
 {
     using (Log.DebugTraceMethodCallFormat("DropFunction", "Dropping function [{0}]", funcName))
     {
         _provider.DropFunction(funcName);
     }
 }
Ejemplo n.º 19
0
 public void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     _provider.CreateRefreshRightsOnProcedure(procName, viewUnmaterializedName, tblName, tblNameRights);
 }
Ejemplo n.º 20
0
 public void DropFunction(ProcRef funcName)
 {
     Log.InfoFormat("Dropping function [{0}]", funcName);
     _provider.DropFunction(funcName);
 }
Ejemplo n.º 21
0
 /// <summary>Not supported.</summary>
 bool ISchemaProvider.CheckProcedureExists(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 22
0
 public void DropProcedure(ProcRef procName)
 {
     Log.DebugFormat("Dropping procedure [{0}]", procName);
     _provider.DropProcedure(procName);
 }
Ejemplo n.º 23
0
 public void ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     using (Log.InfoTraceMethodCallFormat("RefreshRights", "Refreshing [{0}]", procName))
     {
         _provider.ExecRefreshRightsOnProcedure(procName);
     }
 }
Ejemplo n.º 24
0
 public void ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     _provider.ExecRefreshRightsOnProcedure(procName);
 }
Ejemplo n.º 25
0
 public string GetProcedureDefinition(ProcRef proc)
 {
     var result = _provider.GetProcedureDefinition(proc);
     Log.DebugFormat("Fetched procedure {0} definition:\n{1}", proc, result);
     return result;
 }
Ejemplo n.º 26
0
        public string GetProcedureDefinition(ProcRef proc)
        {
            if (proc == null) return null;

            var procs = db.GetSchema(OleDbMetaDataCollectionNames.Procedures, new string[] { null, null, proc.Name });
            if (procs.Rows.Count != 1)
            {
                throw new InvalidOperationException(string.Format("Did not get exactly one result for Procedure {0}", proc));
            }
            var def = procs.Rows[0]["PROCEDURE_TYPE"] + Environment.NewLine + procs.Rows[0]["PROCEDURE_DEFINITION"];
            return def.ToString();
        }
Ejemplo n.º 27
0
 bool ISchemaProvider.CheckFunctionExists(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 28
0
 public abstract bool CheckProcedureExists(ProcRef procName);
Ejemplo n.º 29
0
 /// <summary>Not supported.</summary>
 bool ISchemaProvider.CheckProcedureExists(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 30
0
 public abstract bool CheckFunctionExists(ProcRef funcName);
Ejemplo n.º 31
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 32
0
 public abstract void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights);
Ejemplo n.º 33
0
 void ISchemaProvider.DropFunction(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
 public bool CheckFunctionExists(ProcRef funcName)
 {
     return _provider.CheckFunctionExists(funcName);
 }
Ejemplo n.º 35
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.DropProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
 public void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     _provider.CreateRefreshRightsOnProcedure(procName, viewUnmaterializedName, tblName, tblNameRights);
 }
Ejemplo n.º 37
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
 public void DropProcedure(ProcRef procName)
 {
     Log.DebugFormat("Dropping procedure [{0}]", procName);
     _provider.DropProcedure(procName);
 }
Ejemplo n.º 39
0
 public string GetProcedureDefinition(ProcRef proc)
 {
     return(_provider.GetProcedureDefinition(proc));
 }
 public string GetProcedureDefinition(ProcRef proc)
 {
     return _provider.GetProcedureDefinition(proc);
 }
Ejemplo n.º 41
0
 void ISchemaProvider.DropFunction(ProcRef funcName)
 {
     throw new NotSupportedException();
 }