Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 404241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:17:25+00:00 2026-05-12T17:17:25+00:00

I am using the Microsoft.Practices.EnterpriseLibrary Database tools and I’m having trouble creating a new

  • 0

I am using the Microsoft.Practices.EnterpriseLibrary Database tools and I’m having trouble creating a new database using just the connection string information.

Ideally I would like to do the following:

Database dbEngine = DatabaseFactory.CreateDatabase(
    "Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;");

Is it possible to create a database using just the connection string?

If so, how can it be achieved?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:17:25+00:00Added an answer on May 12, 2026 at 5:17 pm

    You can also do

    
    Database mydb = new EnterpriseLibrary.Data.Sql.SqlDatabase("connection string here");
    

    and you’ll retain the versatility of the Database object, but create it with a connection string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Microsoft.Practices.EnterpriseLibrary.Data library to establish a database connection. I suspect that that
I'm using Microsoft.Practices.EnterpriseLibrary.Data.Database to create my accessors and execute my queries. I'd like to
I'm attempting to use the DatabaseFactory method from the Microsoft Enterprise Library. using Microsoft.Practices.EnterpriseLibrary.Data;
According to Microsoft Website on Database.ExecutedDataSet method http://msdn.microsoft.com/en-us/library/microsoft.practices.enterpriselibrary.data.database.executedataset(v=pandp.31).aspx Retired Content This content is outdated
we encounter a weird problem with logging. We are using Microsoft.Practices.EnterpriseLibrary.Logging library for logging
We typically only reference Microsoft.Practices.Unity.dll in our applications. We're only using basic capabilities, and
I am using Microsoft.Practices.Unity framework 1.2 and I can see the memory usage dramatically
I am using the EntLib in an environment where database connection strings are retrieved
using Microsoft.Practices.Unity; .. .. public class ContentsController : BaseController { [Dependency] public IContentService contentService
We're using Microsoft.Practices.CompositeUI.EventBroker to handle event subscription and publication in our application. The way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.