Results 1 to 5 of 5

Thread: SQL 2008 database issue

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Question SQL 2008 database issue

    Hello friends,
    I just installed sql 2008 express edition at my PC, but I am not able to view database after connection.
    Please find attach image for more detail.

    Thanks
    Shakti
    Attached Images Attached Images  

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: SQL 2008 database issue

    Um, that's because there are no databases.... you need to create one first... Right-click the Databases node and select "Create Database" and go from there....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: SQL 2008 database issue

    If you're implying that you have created a project in Visual Studio and added a database to that then it won't show up in Management Studio because it's not attached to the server. Database files that you add to VS projects directly are only attached when you run your project and they are, by default, attached to an isolated user instance, not the main instance.

    It's also worth noting that you say that you just installed SQL Server 2008 Express and yet the screen shot you posted shows you connected to what appears to be an instance of SQL Server 2005. If you don't connect to the right instance then you won't see the databases attached to that instance.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Lively Member
    Join Date
    Sep 2009
    Posts
    104

    Re: SQL 2008 database issue

    sorry for bump up an old post,
    but i have some question regarding create database in SQL Server 2008 Express.

    how do i specify a location for database created?
    does it has function like sql server, create database with sql?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: SQL 2008 database issue

    Quote Originally Posted by vandoren View Post
    sorry for bump up an old post,
    but i have some question regarding create database in SQL Server 2008 Express.

    how do i specify a location for database created?
    does it has function like sql server, create database with sql?
    You have two choices with SQL Server Express:

    1. Create the database exactly as you would for SQL Server, i.e. build the original in Management Studio and then either deploy a backup and restore it on the target or else build it on the target from scratch using SQL DDL scripts.

    2. Add the database to your project in VS and build the schema in VS. The database file is attached on-demand, both while debugging and after deployment. As such, you simply deploy a copy of your MDF file alnog with your app. The build process creates the copy for you and places it in the output folder, along with your EXE.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width