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
kritika Rana
NA
252
101.3k
asp.net connectivity with sql server 2008
May 22 2013 1:19 AM
Hi
I am trying to establish a connection between asp.net and sql server using C# connection string but it shows error that the file name is not specified
My code is like this:
SqlConnection con = new SqlConnection("data source=MYserver;initial catalog=master;integrated security=true");
con.Open();
SqlCommand cmd = new SqlCommand("insert into sqldb values("+textBox1.Text+",'"+ textBox2.Text+"',"+textBox3.Text+",'"+textBox4.Text+"')",con);
cmd.ExecuteNonQuery();
con.Close();
Help me in solving the problem
Thanks
Reply
Answers (
2
)
Inserting Query
to display inbox in mail which control is used