473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make connection .net with sqlserver

Hi friends,

i am suffering with one problem. i am unable to make connectivity between .net 2003 and sqlserver. I want to make connection String with sqlserver. but not possible. i am a new learner of .net. Is there any problem with "web.config" file or others. For Example i have a login page and now i want to make sql server connection. Connection string is also making. but when i am running that application. then error message is showing. so plz send me all procedure.




Kuldeep singh sethi
Oct 24 '06 #1
7 1931
nmsreddi
366 256MB
hello

first you got connected from code behind write connection string in your code (not in config) if its working then copy that to config file between appSetting tags

and refer that setting in your code behing by using cofiguration name space

and use configurationsettings.Appsetting[your connection string name]


try it out it works fine


regards

nmsreddy
Oct 25 '06 #2
Dim objCon as sqlConnection
objCon =new sqlConnection("SERVER=ebizserver;Database=KIML_PRO DDATA;UID=SA;PWD=;")
Oct 25 '06 #3
radcaesar
759 Expert 512MB
First tell Whats the Error u had got

:)
Oct 25 '06 #4
Thanks!!!

But sir my question is that i have installed .net2003 and sqlserver 2003. but now the trouble is not to make connectivity between both. so pls guide me how can i do that.


Kuldeep singh sethi
Oct 25 '06 #5
First tell Whats the Error u had got

:)

Thanks!!!

But sir my question is that i have installed .net2003 and sqlserver 2003. but now the trouble is not to make connectivity between both. so pls guide me how can i do that.


Kuldeep singh sethi
Oct 25 '06 #6
Dim objCon as sqlConnection
objCon =new sqlConnection("SERVER=ebizserver;Database=KIML_PRO DDATA;UID=SA;PWD=;")



Thanks!!!

But sir my question is that i have installed .net2003 and sqlserver 2003. but now the trouble is not to make connectivity between both. so pls guide me how can i do that.


Kuldeep singh sethi
Oct 25 '06 #7
hello

first you got connected from code behind write connection string in your code (not in config) if its working then copy that to config file between appSetting tags

and refer that setting in your code behing by using cofiguration name space

and use configurationsettings.Appsetting[your connection string name]


try it out it works fine


regards

nmsreddy


Thanks!!!

But sir my question is that i have installed .net2003 and sqlserver 2003. but now the trouble is not to make connectivity between both. so pls guide me how can i do that.


Kuldeep singh sethi
Oct 25 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: mdurliSPAMFILTER | last post by:
Hello, I developed a win32 .exe CGI that connects to a clustered SQLServer to report some data. The software is written with Borland C++Builder. This is the oledb string:...
3
by: ebrahimbandookwala | last post by:
Hi , I am trying to connect to MS Sql server 2000 from Java (1.4.2 / 1.5 ). I installed my Sql Server(8.00.382) from the one supplied with VS.NET 2001. When I installed it on my laptop it did not...
6
by: Eric | last post by:
for example: SqlConnection is used in my project, how can I know if all connections were closed after open and execution. If some guys forget to close connections after using, how can i check it...
18
by: Rob Nicholson | last post by:
We're getting an occasional occurrence of the following error when two users try and open the same record in our ASP.NET app: "There is already an open DataReader associated with this Connection...
7
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be...
3
by: Bart | last post by:
Hi, I have an Access mdb file which asks for a connection with server XYZ when I try to open tables. How do I change the connection in this mdb file? I didn't find any option in Access which...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
2
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
1
by: -pb- | last post by:
Hi, Following is our different database infrastructure. Server1 on NetwrokDomain1 SQL Server 2000 Server2 on NetwrokDomain2 SQL Server 2000 The database on Server2 is being used by third...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.