Question Locked

connection

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi
how to connect asp.net2003 with sql.
while iam trying to establish the connection
it was prompting me to enter server name
and username and password. if i want to enterthe server name,what should i want to give and same as for password also.Is anyone there to help me...pleae

2 replies

by Former member

using system.data.sqlclient

SqlConnection Con(username='....';pwd='....';server='localhost';database='pubs')

using System.Data.SqlClient;

SqlConnection con = new SqlConnection("server=; database= ;user id= ;password= ;");

http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=135682

Please post back if you have any more problems or questions.

This discussion is closed to new replies.