Forums

Overview » C# » SQL Connection string
Reply

SQL Connection string

gayatri patil
Newbie



Since: 23 Jan 2007
Posts: 2
Posted 29 Jan 2007 13:00:39

hello sir
in my computer sql server is running , asp.net also running but sql connectionstring have problem.
pls tell me how to write sql connection string.
and when i run the program that time i have error-
" An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error."

pls give me solution earlier.
Gayatri patil

hello sir
in my computer sql server is running , asp.net also running but sql connectionstring have problem.
pls tell me how to write sql connection string.
and when i run the program that time i have error-
" An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error."

pls give me solution earlier.
Gayatri patil

Shangar S
Newbie



Since: 26 Feb 2007
Posts: 4
Replied 26 Feb 2007 16:58:15
Connection is open successfully or when you connect the db only i'll giving this error or
connection is ok when you populating data in that time only it is giving this error.

you try with that connection string again with sql server password.
sasi nagarajan
Newbie



Since: 20 Nov 2006
Posts: 3
Replied 06 Sep 2007 18:20:59
I think your are not added the namespace.
Sudeep Aravind
Newbie



Since: 06 Sep 2007
Posts: 1
Replied 06 Sep 2007 18:57:51
Hi gayatri

you can find the all types of connection strings here

www.connectionstrings.com/

Regards,
Sudeep...
Shahriar Khondokar
Newbie



Since: 01 Jun 2010
Posts: 1
Replied 01 Jun 2010 16:09:30
Check this link HOW TO: SQL & C#for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries, calling stored procedures, pass parameters etc.

Shahriar Nour Khondokar

Reply to this topic

Message
Reply
Follow us on twitter Subscribe to our RSS feed
Activate your free membership today | Login | Currency