How to Add SqlDataBase To Windows Based Project Before create Setup?

Posted by Dileepbajoji under DotNetFunda.Com on 11/27/2012 | Points: 10 | Views : 981 | Status : [Member] | Replies : 2
Hi..

i was crate a Desktop Application Using C#.Net(Windows Forms) .and Using Excel or SqlServer2008 as DataBase . and i was Create Setup File and Install on My PC.. It will Run properly. When ever i am trying to Install On OTHER PC it will show Error like [ Micro soft ][odbc Excel Driver]External table is not in Expected format(Using Excel DataBase as Back-end) and Object Reference not Set to In Instance of an Object(Using SqlDataBase as BackEnd).

My Question is How to ADD Database to Application Before Create a Setup properly ?

Can Any One Give Me Solution for It ...


Thanks and Regards
.........................
Dileep.B




Responses

Posted by: Naraayanan on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Create a Backup of your Database.
Restore in your Local PC before Installation Complete.


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Dileepbajoji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dileepbajoji on: 11/29/2012 [Member] Starter | Points: 25

Up
0
Down
hI Naraayanan..

Thanks for Replay..

i am working on MS Excel DB as Back end and C# as Front End . i am Creating DataBase.xlsx as My DB and it will place on D:\Dileep\WndowsApp\bin\Debug\DataBase.xlsx and Create a Setup file for this application.


But it will not Work it .. if you Have Time Can You Send Can You Please Send Steps . like How to add Db Back Up file to application


Thanks&Regards
.......................
Dileep.B


Dileepbajoji, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response