I am currently trying to create a program that is like a school management/timeInOut system.
I am using T-SQL as that is the default SQL version within visual studio as I thought this would be easier as they are fairly integrated. The problem I am having is the error: System.ArgumentException: 'Invalid value for key 'attachdbfilename'.'
With the connection string being:
string ConString = @"Data Source = (LocalDB)\MSSQLLocalDB; AttachDbFilename =| DataDirectory |\GardenRegister.mdf; Integrated Security = True";
are there any ideas what is wrong and why it wont recognise the database, If possible I would also like someone to be in personal contact to help aid me in this as there are a few problems I have encountered.