MS SQL Server
  Home arrow MS SQL Server arrow Page 5 - Configuring SQL Server Express 2005
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Configuring SQL Server Express 2005
By: Justin Cook
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 45
    2004-09-09

    Table of Contents:
  • Configuring SQL Server Express 2005
  • The Easy Part – Installation
  • The Not-So-Easy Part – Configuration
  • Next – Connecting to Your Application
  • The Connection String

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Configuring SQL Server Express 2005 - The Connection String


    (Page 5 of 5 )

    You may come from an ASP background, where you're used to stuffing the connection string into an application level variable, and retrieving it each time you need to access the database. Well you can do that with .Net as well. You can use the web.config file, and write application level variables in an XML format.

    In ASP.Net 1, the easiest way was to stuff the string into the appSettings section of the web.config. Now with ASP.Net 2.0, Microsoft has realized that one of if not the most commong thing going in there is a connection string, so they went ahead and created a custom section. This is conspicuously called 'connectionStrings', and you can add a key as you would any other section. A connection string key takes three parameters: connectionString, name, and providerName.

    You can use this new feature, or the plain old appSettings. Whichever you choose, the connection string will look like this:

    Server=(local)\SQLEXPRESS;
    User ID=[userName];
    password=[password];
    Database=[databaseName];
    Persist Security Info=True 

    Conclusion

    The new SQL Server 2005 Express is truly a great tool for developers. I think Microsoft has done it something of an injustice by hailing it as a tool for 'hobbyists and amateurs'. It's fast, lightweight, and very tightly integrated with the .Net 2.0 framework. Once Microsoft releases a GUI administration tool for it, life will be far simpler. But until that time, I hope you are spared many hours of frustration by using the methods described in this article!

    By the way, if you would like more information on the SQL Server System Stored Procedures, visit the documentation in MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_sp_00_519s.asp


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · I just wanted to leave you my compliments and thanks for the great article. I had...
       · 
       · ----------------------------------------Get free email at...
       · At the second step when I enter the command for EXEC sp_grantlogin...
       · Many thanks - I found your article very helpful. Just one thing. I believe that the...
       · Same problem I am having.
       · Can you register SQL 2005 Express server with SQL Enterprise Manager (GUI tool to...
       · What is going to happen when the app is published to a website on a server operated...
       · I came across the same error when I tried using MachineName/UserNameWhat I tried...
       · Thanks for the amazing tutorial. Got me up and running with no errors in 5 minutes!...
       · tnx, it has been very helpfull
       · Hi this article looks very relevant however before i start i would be grateful...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT