Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Local Database attachment in Windows Application
July 11, 2011
i want to attach local database ie Database.sdf in my windows application but i am not able to get the connection.
Please tell me any solution?
my connection string is given here:
String connectionString = "Data Source=|DataDirectory|\\Database1.sdf";
Ravi Ranjan Kumar
Posted Date: July 11, 2011 Points: 20
Thanks & Regards
Ravi Ranjan Kumar
Posted Date: July 12, 2011 Points: 20
Data Source=" + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\DatabaseName.sdf;Persist Security Info=False;
Regards, Lakshmi Naraayanan.S
Posted Date: July 13, 2011 Points: 20
Hey in tools u have option as connect to database
den u fill some necessary details fo server name and database finally click advanced button u will find connection string der
Thanks & Regards,
Mark if the answer is true
To post reply
Related Questions Related Questions
How to lock the database programetically using c# + windows application
database backup through coding in windows application..
Requirements to do a windows application with database activity
Create a Windows form application using Excel as database..
How to create a control in windows application also how could add in the Tool box itself
Windows application Form Focus in C#.NET
Difference Between console application and windows application?
upload image file in windows application
Can we use Web form controls in window form of Windows application
How to call Calculator Control in C# Windows Application..
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend