I have the app working on my development PC which has SQLServer Express, and ready to move to a test web server which has MS SQL Server 2000. The Test web server also has sharepoint installed on it, which installed SQLServerExpress by mistake. So it has two instances of SQL, but I know that the name of the MS SQL Server 2000 instance is "MSSQLSERVER"
I getting getting the error in IE that I'm connecting to a SQL Server 2005 express database. I've been trying to follow the directions I found in this forum, but I'm still stuck. Here's what I've done so far.
1. Created a new database in MS SQL Server 2000 called "timetracker"
2. Ran aspnet_regsql to create the roles user tables required by the app
3. Ran the timetracker-add.sql on SQL server to generate the tables, sprocs and such.
4. Made sure the IIS user has the necessary rights to the database
5. Trying to modify the web.config from this....
<connectionStrings>
<
add name="aspnet_staterKits_TimeTracker" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" /><remove name="LocalSqlServer"/>
<
add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
</
connectionStrings>
to this....
<connectionStrings>
<
remove name="LocalSqlServer" /><add name="LocalSqlServer" connectionString="Data Source=.\MSSQLSERVER;Integrated Security=True;database=timetracker;User Instance=true" />
<
add name="aspnet_staterKits_TimeTracker" connectionString="Data Source=localhost;Integrated Security=True;database=timetracker;User Instance=true" />
</
connectionStrings>
But no matter what I try, I getting the below error when trying to login. Any idea what I'm doing wrong?
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)