database connection problem
-
hi all i am just beginner in c# and i want to make a PhoneBook project by using ADO.Net.. and i use SQL Server 2005 Express Edition for my database but i have a problem while connecting database..in the error it says: "Cannot database "Kisiler" requested by the login.The login failed.The login failed for user 'Computer\SQLEXPRESS'" my connection string is like that : SqlConnection con = new SqlConnection("Data source=COMPUTER\\SQLEXPRESS;initial catalog=Kisiler;integrated security=True"); i checked services after that error..everything looks running when i looked at SQL Server Configuration manager what should i do now ?
-
hi all i am just beginner in c# and i want to make a PhoneBook project by using ADO.Net.. and i use SQL Server 2005 Express Edition for my database but i have a problem while connecting database..in the error it says: "Cannot database "Kisiler" requested by the login.The login failed.The login failed for user 'Computer\SQLEXPRESS'" my connection string is like that : SqlConnection con = new SqlConnection("Data source=COMPUTER\\SQLEXPRESS;initial catalog=Kisiler;integrated security=True"); i checked services after that error..everything looks running when i looked at SQL Server Configuration manager what should i do now ?
-
hi all i am just beginner in c# and i want to make a PhoneBook project by using ADO.Net.. and i use SQL Server 2005 Express Edition for my database but i have a problem while connecting database..in the error it says: "Cannot database "Kisiler" requested by the login.The login failed.The login failed for user 'Computer\SQLEXPRESS'" my connection string is like that : SqlConnection con = new SqlConnection("Data source=COMPUTER\\SQLEXPRESS;initial catalog=Kisiler;integrated security=True"); i checked services after that error..everything looks running when i looked at SQL Server Configuration manager what should i do now ?
Problem is with connection string. User name and password credentials are missing there....
-
hi all i am just beginner in c# and i want to make a PhoneBook project by using ADO.Net.. and i use SQL Server 2005 Express Edition for my database but i have a problem while connecting database..in the error it says: "Cannot database "Kisiler" requested by the login.The login failed.The login failed for user 'Computer\SQLEXPRESS'" my connection string is like that : SqlConnection con = new SqlConnection("Data source=COMPUTER\\SQLEXPRESS;initial catalog=Kisiler;integrated security=True"); i checked services after that error..everything looks running when i looked at SQL Server Configuration manager what should i do now ?
-
SqlConnection con = new SqlConnection("Data source=COMPUTER\\SQLEXPRESS;initial catalog=Kisiler;integrated security=True**; User id=sa; Password=123456**"); Use this. but do remember to type ur userid and password Regards Lalit Manik
-
Problem is with connection string. User name and password credentials are missing there....
-
Try changing the Data Source to Data Source=.\\SQLEXPRESS (Assuming you're using the default instance.) You can also check out connectionstrings.com[^] Hope this helps =)
-
hi i checked the site but as i see my connection string is the same in the site i give permission that user to use the database but still i have error :(
-
Temme 1 thing, the account from which u logged in to Ur computer have rights to access the SQl?
-
yeah i have given permission to that user but still it says it doesnt have to reach the db