Results 1 to 14 of 14

Thread: SQL Server 2008 Frustrations

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    SQL Server 2008 Frustrations

    I have Visual Studio 2008 Professional installed. I just installed SQL Server 2008 Express. I'd like to think I'm a pretty capable computer person but I can't seem to connect to SQL Server period. Clearly I haven't configured something properly but I don't know what it is.

    In visual studio I click on "Add Connection" then select "Microsoft SQL Server". In "Server Name" I select the only instance shown (MAIN-PC) and under databases there are none shown. When I click "test connection" I get...

    The server was not found or was not accessible.......

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

    Re: SQL Server 2008 Frustrations

    Is your OS 32-bit or 64-bit? Also, unless you specified otherwise, your instance will be named <ComputerName>\SQLExpress.
    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    Quote Originally Posted by jmcilhinney View Post
    Is your OS 32-bit or 64-bit? Also, unless you specified otherwise, your instance will be named <ComputerName>\SQLExpress.

    Vista 64 bit. I installed the 32 bit version of SQL Server though.

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

    Re: SQL Server 2008 Frustrations

    I'm not sure whether this will help but it may well do.

    http://kristofmattei.be/2009/02/17/s...tfix-released/
    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

  5. #5
    Addicted Member
    Join Date
    Oct 2008
    Location
    Califorina
    Posts
    235

    Re: SQL Server 2008 Frustrations

    Have you created any databases in the instance you created?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    Trying to download that hotfix but it said it sent me an email with the link but it didn't.

    I can't even seem to install SQL Server Management Studio to create databases. I installed the 2005 version but 2008 just opens up a screen with a bunch of options and doesn't actually install anything.

    Man - I've spent the last three years working with Oracle and bragging to my Oracle buddies how simple it is to install and use SQL Server. Two days into this and I can seem to get things going. Urg....

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    I should add that I also have a 32 bit Vista machine and although I have successfully installed everything including SSMS and created several databases, I am unable to connect to those databases from VS 2008 either. Same error.

    I must be doing something simple wrong but have tried everything I can think of.

  8. #8
    Addicted Member
    Join Date
    Oct 2008
    Location
    Califorina
    Posts
    235

    Re: SQL Server 2008 Frustrations

    Can you log into the dbs you created through SSMS? Are you using windows auth? or supplying a L/P?

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    Quote Originally Posted by smendoza View Post
    Can you log into the dbs you created through SSMS? Are you using windows auth? or supplying a L/P?
    I can on my Vista 32 box but I can't seem to even install SSMS on the 64 bit OS. I'm using mixed auth and I've tried both methods of connecting from VS 2008.

    I should mention that I can't create DSN to it either so it isn't a VS 2008 problem. Maybe firewall? But I've turned off my firewall to see if that solved the problem and no luck.

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    I hate to say this because I'm a huge Microsoft fan but I just installed MySQL and MySQL tools, created a database, downloaded a MySQL data provider, and connected to it in Visual Studio 2008 in under 15 minutes.

  11. #11
    Addicted Member
    Join Date
    Oct 2008
    Location
    Califorina
    Posts
    235

    Re: SQL Server 2008 Frustrations

    Is the allow remote connection enabled? Also try connection through SQLCMD to the instance...
    For SSMS what do the install logs say? I'm assuming you're a admin on the vista 64box?

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    Quote Originally Posted by smendoza View Post
    Is the allow remote connection enabled? Also try connection through SQLCMD to the instance...
    For SSMS what do the install logs say? I'm assuming you're a admin on the vista 64box?
    Thanks for your help. "Allow remote connections" is checked off. I'll try the SQLCMD tonight (wasn't aware of that option). For SSMS, I downloaded it but when I click on the installer it just brings up a utility screen and I don't know how to install it (not intuitive like most software). I am an admin (at least I should be as I'm using the original account for the computer).

  13. #13
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: SQL Server 2008 Frustrations

    Quote Originally Posted by ferrethouse View Post
    I am an admin (at least I should be as I'm using the original account for the computer).
    You almost certainly aren't, at least not completely.

    Vista has forced lax people to do what they weren't willing to do themselves - run Windows with at least some security.

    Even tho the account you are using might be listed as an Admin, that doesn't mean it is - it is usually a power user who has permission to elevate to Admin level if they request it.

    You can do that by right-clicking on an executable, or automatically when running some installation programs (which Vista will notice need proper Admin rights); either way, you should get a UAC confirmation dialog (assuming UAC is turned on).

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    205

    Re: SQL Server 2008 Frustrations

    I'll try reinstalling tonight by right clicking and "run as administrator". You would think that there would be errors during the install if it didn't have sufficient permissions though. It reported a successful installation.

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