you need to provide valid connection string
go to
https://www.connectionstrings.com/sql-server-2008/[
^] and check the connection string formats you can use.
note that
Database
property is for name of the database and it is not equal to database file name.
Quote:
The database name must be specified with the keyword 'database' (or one of its aliases) as in the following: "AttachDbFileName=|DataDirectory|\data\YourDB.mdf;integrated security=true;database=YourDatabase". An error will be generated if a log file exists in the same directory as the data file and the 'database' keyword is used when attaching the primary data file. In this case, remove the log file. Once the database is attached, a new log file will be automatically generated based on the physical path.