Code
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\solutionvs10\test\test\bin\Debug\db2.mdb;Jet OLEDB:Database Password=secret")
cn.Open()
''# codes
cn.Close()CSS
I used V S 2010 The above is my code......u can see that it is Ms Access DataBase....(password protection) How i can create a setup .....that can be easy to install other computer.........
Can i Create such a setup ???
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Nov 17, 2010, 10:19 PM EST
In web.config file declare the code like:
Shahan AyyubRank #5,163 · 309 reputationPosted Dec 8, 2010, 11:57 AM EST
for Asp.Net you can see the other experts' comment, for Windows application I would recommend you to place the db2.mdb in projects' BIN folder and for that use connectionstring like this:
Sam HobbsRank #107 · 20.5K reputationPosted Dec 8, 2010, 4:14 PM EST
Hirendra SisodiyaRank #258 · 9.8K reputationPosted Dec 16, 2010, 12:08 AM EST
thanks