configuring SQL and connecting to database

A

Ammar

hi all...
it is me again asking silly questions lol
i am trying to access SQL database through ASP.NET, and i am having some
troubles
i just installed MSDE 2000 and you can safely say that i dont know that much
about configuring the whole thing
here is what i am doing:

<%@ Import Namespace="System.Data.SqlClient" %>

<Script Runat="Server">

Sub Page_Load

Dim condbs As SqlConnection

condbs = New SqlConnection("Server=(local); uid=ammar; database= test")

condbs.Open()

End Sub

</Script>

this is the first step,. just trying to connect to the database, but it
dosent seem to work, i tied reading in the internet but i cant say i became
wiser...

any idea?
 
A

Ammar

I tired that but it didnt work
i even used the web data adminstrator to check on the database, but couldnt
do more...
help !!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top