My server is NT 2003 R2. I have installed Web Developer 2008 Express and SQL
Server Express edition on the server. When I copy my code and run the app
via Web Developer it works fine. But When I try to access the web app as a
web site from a brower my database connection fails to open.
When I try to open the mdb file through SQL Server Management Studio - it
appears under the databases but I am unable to open or do anything with it.
When I double click the mdb file name from the folder, it starts the SQL
Server Management Studio but give message - that mdb file format are not
supported.
I have played with following settings in web.config:
Integrated Security=True/False
User Instance=True/False
Nothing works.
How do you get my web app through IIS recognize the database?
Thanks for you help,
Santosh
MDB? That extension is normally used for Access databases, I think.
The primary data file for an SQL Server database usually has the extension
.mdf.
> My server is NT 2003 R2. I have installed Web Developer 2008 Express and
> SQL Server Express edition on the server. When I copy my code and run
> the app via Web Developer it works fine. But When I try to access the
> web app as a web site from a brower my database connection fails to
> open.
What is the error message? What does your code look like?
> When I try to open the mdb file through SQL Server Management Studio -
> it appears under the databases but I am unable to open or do anything
> with it. When I double click the mdb file name from the folder, it
> starts the SQL Server Management Studio but give message - that mdb file
> format are not supported.
No matter if it is an Access database or SQL Server database you have,
you cannot open it as a file in Mgmt Studio. Keep in mind that SQL Server
is a server-based application, and SSMS is a client just like any other
client.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx