.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to Add SqlDataBase or Excel DataBase To C#.Net(WinForm)Application Before Create A Setup ?

Posted By: Mahi     Posted Date: November 27, 2012    Points:5   Category :C#

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
Author: Narayanan             
Posted Date: November 27, 2012     Points: 20   

Hi Dileep,
First , Backup your Database[Without Data] and Store in your Setup folder .
Restore in your working PC before Installed Application .


Try this link for Restore Database .
http://www.codeproject.com/Tips/461494/Backing-up-an-SQL-Database-in-Csharp

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


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend