You are here: Re: Connection from ASP page to SQL Server Express « MsSQL Server « IT news, forums, messages
Re: Connection from ASP page to SQL Server Express

Posted by Erland Sommarskog on 01/08/07 22:55

(ma.giorgi@gmail.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\SQLEXPRESS;
> Database=grimp;
> Uid=grimpuser;
> Pwd=somePassword;"
>
> 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@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация