Results 1 to 3 of 3

Thread: Connect to SQL Server with VB .NET Express

  1. #1

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Connect to SQL Server with VB .NET Express

    I try to use my data source and setup a new connection, but i see it wont let me.

    Is this another features they left out of 2010 express edtions?

    I just want to setup a connection to sql server with vb.net express 2010

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: Connect to SQL Server with VB .NET Express

    you really should provide more details. what is the error you get ?
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

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

    Re: Connect to SQL Server with VB .NET Express

    Yes... it even tells you this when you first try to create the datasource - VBExpress can/will only connect to local databases (like Access) or local SQL Express instances.

    You can still use SQL Server but you just can't connect to it using the datasource tool. There's two ways to work around this: 1) Create a local version of the database on your machine.... then you can use that for development, just be sure to change the connectionstring in the config file when you deploy. 2) Skip the datasource explorer all together and code the connections and averything else yourself directly.

    -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??? *

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