.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

Attaching database to exe

Posted By: Aamrapali Tamgadge     Posted Date: July 02, 2011    Points:5   Category :C#
hi friends me having one windows application in c sharp.net i have made the exe file like the process we have done in c sharp but the problem is when i amm running this setup the database is not attched so how can i attached the database so that the when i run the exe setup the database is connected to it

Responses
Author: Amit Mehra             
Posted Date: July 04, 2011     Points: 20   

Hi,

How you want to attach Database? Is it SQL Script?

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Gowthammanju             
Posted Date: July 05, 2011     Points: 20   

Hey try this url for various connection strings as


http://www.connectionstrings.com/sql-server-2005

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: July 05, 2011     Points: 20   

Try this for manual back up of database as

http://www.linglom.com/2008/01/12/how-to-backup-and-restore-database-on-microsoft-sql-server-2005/

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Aamrapali Tamgadge             
Posted Date: July 05, 2011     Points: 20   

hi. actualy i have created the setup of the project and i have written the connection string in connection class but after installing the setup tha exe file is not connecting to database in other computereven i attached the database how can i change the connection string.please tel me how to run the setup so that wen the user run the setup no need to ask the connection automaticaly database wil attache to any pc wherever i run the setup .

Software Programmer At OTIS ISRC


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