0

I have a small project with Access-2007 Database available in directory C:\SVHML_ERP\Data\SVHML_Management.accdb

Therefore my connection string is

SVHMLConStr = "Provider=Microsoft.ace.Oledb.12.0; Data Source='C:\\SVHML_ERP\\Data\\SVHML_Management.accdb'; Persist Security Info=False;"

But, it's simply adding the project directory to it's data source directory ....Iam getting the error like

OleDb Exception was unhandled : "Could not find file C:\Documents and Settings\Paraman\My Documents\visual studio 2010\projects\My_Applications\My_Applications\SVHML_ERPDataSVHML_Management.accdb

Does anybody can point me the mistake... Thanks & Regards Paramu

2
  • 1
    You want to add your accdb to your VS Project, am I right? Commented Apr 3, 2014 at 8:18
  • Yes.. I wish to add to my project... thank you Commented Apr 3, 2014 at 8:24

1 Answer 1

0

I found the error because of SQL Server Database has been mistyped on Select Query... Therefore the connection string has not a problem...

After removing the SQl Server Database Name from Query, the path has cleared and works fine...

Thanks for all the helps & Valuable minutes

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.