Browse by Tags

Related Posts

  • Re: recording your connectionString (from your web.config file) w/n SQLHelper

    This may be of help: namespace Microsoft.ApplicationBlocks.Data { public class Config { private static string _ServerDB=string.Empty; static Config() { _ServerDB = ConfigurationManager.ConnectionStrings["AshiServer"].ConnectionString; } public static string ServerDB { get { return _ServerDB;...
    Posted to Microsoft Application Blocks (Forum) by Deepak Kothari on 04-23-2009, 12:00 AM
    Filed under: .NET, Application Block, configSections, ConfigurationSource, connection string, data application block, Microsoft Application Block
  • How to connect to hundred's of SQL Server Instances via EntLib

    I have 300 database instances on 2 SQL server databases. Do you recommend me to use EntLib Configuration tool to create these 300 connection string in web.config ? Is there any other way I can create the database connection in the DAL layer without creating an entry in the web.config. I know the DB instance...
    Posted to Microsoft Application Blocks (Forum) by mayuresh_s on 01-03-2008, 12:00 AM
    Filed under: .NET, ado.net, architecture, asp.net 2.0, configSections, Enterprise Library 2.0 Introduction, enterprise Library 2.0 shared hosting, asp.net2.0, Enterprise Library 3.1, Enterprise Library medium trust, Enterprise Library, "Enterprise Library 2.0", Patterns & Practices
  • EntLib Connectionstring Runtime using DAAB

    My app needs to support multiple SQL server databases (DB1, DB2, DB3....) on different physical servers Server 1 and Server 2. How can I configure the web.config and create the database connection string at runtime when I comet to know the database. I am using data access application block. Do I need...
    Posted to Microsoft Application Blocks (Forum) by marcus80 on 12-15-2007, 12:00 AM
    Filed under: configSections, ConfigurationSource, Enterprise Library 2.0 Introduction, Enterprise Library 3.1, Enterprise Library medium trust, Enterprise Library, Enterprise Library 2.0- Exception Handing Block, Enterprise Library 2.0- Logging Application Block, "Enterprise Library 2.0", Patterns & Practices
  • Database.CreateDatabase blows up.

    First of all "Object reference not set to an instance of an object." isn't very informational to me when I call: Database db = Database.CreateDatabase(); All that tells me is that a null object is being accessed inside this wonderful "time saving" library. Now, when I call: Database...
    Posted to Microsoft Application Blocks (Forum) by TripleThreat on 08-14-2007, 12:00 AM
    Filed under: need hint, configSections, Enterprise Library, Error
  • How to use Entlib 3.1 in Asp.Net 2.0 web application?

    Hi, Following is my scenario. 1. I have to use EntLib 3.1 DAAB in my asp.net 2.0 web application. 2. I have to provide the connection string in an encrypted way (sql authentication) Can anyone please let me know, what needs to be kept in web.config file under configuration section and what needs to be...
    Posted to Microsoft Application Blocks (Forum) by guugul on 07-10-2007, 12:00 AM
    Filed under: configSections
  • Passing connection string to Enterprise Library DAAB 3.1

    The company I work is considering to use the Enterprise Library Data Access Application Block. The problem is an internal policy that forces all company systems to get the connection string from a sql server. Is there any way to just pass the connection string to the Data Access Application Block instead...
    Posted to Microsoft Application Blocks (Forum) by sk78 on 06-11-2007, 12:00 AM
    Filed under: Application Programming Issue, configSections, Enterprise Library 2.0 Introduction, "Enterprise Library 2.0"
  • GenericDatabase not passing parameter to stored proc

    I can't pass parameters to stored procs. I'm using the ODBC class to connect to a SQL Server db with the DAAB. The factory returns a GenericDatabase object for ODBC. I have a stored proc that takes one Integer parameter. I'm adding an "in" parameter and calling ExecuteReader. Pretty basic. I can see...
    Posted to Microsoft Application Blocks (Forum) by dobrien on 01-16-2007, 12:00 AM
    Filed under: configSections, Enterprise Library 2.0 Introduction, "Enterprise Library 2.0"
  • Re: Exception when use DAAB 2.0 to config web.config

    You have forgotten to declare the dataConfiguration block, it should be some thing like the following: < configSections > < section name = " dataConfiguration " type = " Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data " />...
    Posted to Microsoft Application Blocks (Forum) by abiratsis on 01-11-2007, 12:00 AM
    Filed under: configSections
Page 1 of 1 (8 items)