Install Table issues

Mar 7, 2009 at 12:04 AM
Forgive us but we are new to this but we get to the Create Table button and get the following error:
we are running SQL server 2005 and tried to change the SQLEXPRESS to numerous other lines but no luck

Any ideas or guidance would be greatly appreciated


dd
name="SlickTicket" connectionString="

Data Source=.\SQLEXPRESS;

Initial Catalog=SlickTicket;

Integrated Security=True

"

 





An error occured: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at setup_build_database.btnRunSQL_Click(Object sender, EventArgs e) in c:\Slick-Ticket_v1.02\setup\build_database.aspx.cs:line 44
Coordinator
Mar 8, 2009 at 5:46 AM
So you say you are running SQL 2005.  That connection string will not work.  Two things have to happen:

-You have to change Data Source  to your SQL server name
-You have to make sure your permissions are set

Right now it is set to use Windows permissions with the line: Integrated Security=True

In order for that to work, you need to make sure whatever account is going to be using it has rights in the Security section of your database.
You can also change to SQL Authenticatoin which is a username/password.

Check out this site, it has helped me many times:  http://connectionstrings.com/
Mar 13, 2009 at 11:46 PM
Thanks Works great so far.  Would like to change and add one filed to the initial ticket entry screen but that is no big deal.  So far everything works great at this point.  Much appreciation for you selfless dedication.  Respectfully Lamont242  
Coordinator
Mar 14, 2009 at 11:46 AM
Fantastic, I am glad it is working for you.  Feel free to give it a rating/review... I haven't got any yet :(