Connection from ASP page to SQL Server Express

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ma.giorgi@gmail.com

    Connection from ASP page to SQL Server Express

    Hi!

    I have two servers, the web (with IIS - win2003) and the test data
    server (winXPpro with SQL Express)
    I'm trying to connect to the db but with no success...
    here is the connection string I'm using:
    sConn = "Driver=SQLNCLI ;
    Server=marco-server\SQLEXPRE SS;
    Database=grimp;
    Uid=grimpuser;
    Pwd=somePasswor d;"

    I get this:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC Driver Manager] Data source name not found and no
    default driver specified

    I've tried also with Driver={SQL Native Client} but I get the same
    error.

    do I have to install something on the web server???

  • Erland Sommarskog

    #2
    Re: Connection from ASP page to SQL Server Express

    (ma.giorgi@gmai l.com) writes:
    I have two servers, the web (with IIS - win2003) and the test data
    server (winXPpro with SQL Express)
    I'm trying to connect to the db but with no success...
    here is the connection string I'm using:
    sConn = "Driver=SQLNCLI ;
    Server=marco-server\SQLEXPRE SS;
    Database=grimp;
    Uid=grimpuser;
    Pwd=somePasswor d;"
    >
    I get this:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC Driver Manager] Data source name not found and no
    default driver specified
    >
    I've tried also with Driver={SQL Native Client} but I get the same
    error.
    Try using "Provider", rather than "Driver".


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    Working...