Exemple #1
0
 public void DropFunction(ProcRef funcName)
 {
     using (Log.DebugTraceMethodCallFormat("DropFunction", "Dropping function [{0}]", funcName))
     {
         _provider.DropFunction(funcName);
     }
 }
Exemple #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());
        }
Exemple #3
0
 public abstract void DropFunction(ProcRef funcName);
Exemple #4
0
 public abstract void ExecRefreshRightsOnProcedure(ProcRef procName);
Exemple #5
0
 public string GetProcedureDefinition(ProcRef proc)
 {
     throw new NotImplementedException();
 }
Exemple #6
0
 public abstract void DropProcedure(ProcRef procName);
Exemple #7
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.DropProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Exemple #8
0
 public bool CheckFunctionExists(ProcRef funcName)
 {
     return(_provider.CheckFunctionExists(funcName));
 }
 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);
 }
 public bool CheckFunctionExists(ProcRef funcName)
 {
     var result = _provider.CheckFunctionExists(funcName);
     LogExistance("Function", funcName, result);
     return result;
 }
 public bool CheckProcedureExists(ProcRef procName)
 {
     var result = _provider.CheckProcedureExists(procName);
     LogExistance("Procedure", procName, result);
     return result;
 }
Exemple #13
0
 bool ISchemaProvider.CheckFunctionExists(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
Exemple #14
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Exemple #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);
 }
Exemple #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);
     }
 }
Exemple #19
0
 public void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     _provider.CreateRefreshRightsOnProcedure(procName, viewUnmaterializedName, tblName, tblNameRights);
 }
 public void DropFunction(ProcRef funcName)
 {
     Log.InfoFormat("Dropping function [{0}]", funcName);
     _provider.DropFunction(funcName);
 }
Exemple #21
0
 /// <summary>Not supported.</summary>
 bool ISchemaProvider.CheckProcedureExists(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Exemple #22
0
 public void DropProcedure(ProcRef procName)
 {
     Log.DebugFormat("Dropping procedure [{0}]", procName);
     _provider.DropProcedure(procName);
 }
 public void ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     using (Log.InfoTraceMethodCallFormat("RefreshRights", "Refreshing [{0}]", procName))
     {
         _provider.ExecRefreshRightsOnProcedure(procName);
     }
 }
Exemple #24
0
 public void ExecRefreshRightsOnProcedure(ProcRef procName)
 {
     _provider.ExecRefreshRightsOnProcedure(procName);
 }
 public string GetProcedureDefinition(ProcRef proc)
 {
     var result = _provider.GetProcedureDefinition(proc);
     Log.DebugFormat("Fetched procedure {0} definition:\n{1}", proc, result);
     return result;
 }
Exemple #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();
        }
Exemple #27
0
 bool ISchemaProvider.CheckFunctionExists(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
Exemple #28
0
 public abstract bool CheckProcedureExists(ProcRef procName);
Exemple #29
0
 /// <summary>Not supported.</summary>
 bool ISchemaProvider.CheckProcedureExists(ProcRef procName)
 {
     throw new NotSupportedException();
 }
Exemple #30
0
 public abstract bool CheckFunctionExists(ProcRef funcName);
Exemple #31
0
 /// <summary>Not supported.</summary>
 void ISchemaProvider.CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights)
 {
     throw new NotSupportedException();
 }
Exemple #32
0
 public abstract void CreateRefreshRightsOnProcedure(ProcRef procName, TableRef viewUnmaterializedName, TableRef tblName, TableRef tblNameRights);
Exemple #33
0
 void ISchemaProvider.DropFunction(ProcRef funcName)
 {
     throw new NotSupportedException();
 }
 public bool CheckFunctionExists(ProcRef funcName)
 {
     return _provider.CheckFunctionExists(funcName);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #39
0
 public string GetProcedureDefinition(ProcRef proc)
 {
     return(_provider.GetProcedureDefinition(proc));
 }
 public string GetProcedureDefinition(ProcRef proc)
 {
     return _provider.GetProcedureDefinition(proc);
 }
Exemple #41
0
 void ISchemaProvider.DropFunction(ProcRef funcName)
 {
     throw new NotSupportedException();
 }