TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
naushad india
NA
2
720
c# doubt . database connection problem
Mar 31 2018 4:43 PM
Hi, I am naushad from Kerala. (.net student)
Please help me !
I had created a simple database project in c sharp and make it exe file ans installed it. Its working fine in my system. because sql server is installed. when i installed it in my friends system its not working because it does not have sql server.
Can the project will run without sql server.
or is the connection string problem
static string path = Path.GetFullPath(Environment.CurrentDirectory);
static string databaseName = "ContactDB.mdf";
SqlConnection sqlCon = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="+path+@"\"+databaseName+";Integrated Security=SSPI;");
when i install exe in my system no problem. When on friend's system the form appears. when we add new filed. its not reponding
please help...
Thanks in advance
Naushad
Reply
Answers (
2
)
Using finally block woth out catch block
Dictionary(key,value) to get number occurrences of key