Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
help.. error on connection string
basim salih
Dec 23 2017 9:02 PM
129
Reply
hi ...
i have a database with sql server 2012 authontication called "box"
i build an aplplication in c#.. what i want to do is :
attach this database file into client matchine to run an application without setup sql server.
1- from mycomputer --> manage--> i stoped the sql server serviice
2- i copy database files (box.mdf and box_log.ldf) inside application directory.
3- build connection string to connect with database as:
(
this work correctly:
conn.ConnectionString = "Data Source=BASIM-PC\\SQLSERVER2012;Initial Catalog=box;Persist Security Info=True;User ID=basimbox;Password=f1977";
but this error:c
onn.ConnectionString = @"Data Source=.\sqlexpress;Initial Catalog=box;Persist Security Info=True;User ID=basimbox;Password=f1977";
)
plz my friend help me!!!
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Deploy my application in c# into clients?
Need permission details from db