473,657 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

configuring SQL and connecting to database

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="Syst em.Data.SqlClie nt" %>

<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?
Nov 18 '05 #1
2 1231
Have you read this page?
http://msdn.microsoft.com/library/de...classtopic.asp

Does the user "ammar" have a password and if so try adding
"PWD=the_passwo rd" to the connection string. Does the "ammar" user exist in
MSDE?

Todd Casey
"Ammar" <am**********@c omhem.se> wrote in message
news:RJ******** **********@news b.telia.net...
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="Syst em.Data.SqlClie nt" %>

<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?

Nov 18 '05 #2
I tired that but it didnt work
i even used the web data adminstrator to check on the database, but couldnt
do more...
help !!
"Todd Casey" <todd@_SPAMMER_ GET_A_LIFE_velo citywest.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Have you read this page?
http://msdn.microsoft.com/library/de...classtopic.asp
Does the user "ammar" have a password and if so try adding
"PWD=the_passwo rd" to the connection string. Does the "ammar" user exist in MSDE?

Todd Casey
"Ammar" <am**********@c omhem.se> wrote in message
news:RJ******** **********@news b.telia.net...
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="Syst em.Data.SqlClie nt" %>

<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?


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3872
by: Ramachandran Pramod | last post by:
HI Group, I have installed WAS 5.0 in my machine recently and would like to configure Oracle JDBC thin driver. I tried it with the admin console, with the following parametners JDBC provider implementation classname : oracle.jdbc.pool.OracleConnect­ionPoolDataSource
4
5488
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP applied some sort of extra security arrangements to their SQL Server to allow access only through port 1433. they have told me to configure an alias using Network Client and to register this alias in the usual way using my Enterprise Manager. My...
10
4368
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled thru one install and config, with a lot of handholding from IBM Support. I'm comfortable in unix but have never dealt with DB2 Connect there. (my main job is as an Oracle DBA, and most of my db's are on Solaris or AIX) I've found the install...
12
2774
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
5
7588
by: nielsgron | last post by:
Hi, I have created a database on DB2 8.1 and 8.2 for Windows using the codeset "Big5" with the command: db2 CREATE DATABASE TWBIG5 USING CODESET BIG5 TERRITORY TW When I try to connect to the database using the DB2 Universal Type 4 JDBC drivers v2.6 I get an error: "com.ibm.db2.jcc.b.DisconnectException: encoding not supported!!
2
1287
by: Racerx | last post by:
Hi All: I use db2 v8.2 on AIX platform. I have three databases using the same instance. Whenever I stop and start my database for taking a full backup all my three databases are disconnected. Can someone suggest me a way to isolate these databases so the instance restart for one does no affect the other two.
0
1539
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've my win32 application which connecting to my sql database. till now i used MSDE as my database and now i want to upgrade to sql express 2005. after the upgrade i tried to connect to the database and couldn't. i keep getting an error which saying that database doesn't exists or access is denied. is there something diffrent between connecting to MSDE and connecting to sql express 2005 ? here with my connection string.
3
1441
by: Sebouh | last post by:
Hi guys. I'm completely new to databases, so i wanna ask you if this is achievable. I've been learning how to connect to an MS SQL database file with java. I've finally learned the basics, connecting and manipulating... but here's what i wanna do. I don't want to connect to a server to change the database content. I want to have the database file inside the application folder and manipulate it directly from there, without logging on to some...
1
1091
by: ZackariyaYoosuf | last post by:
Hi, I am using vb.net 2003 and sql server 2005.I am getting error when configuring data adapter.It is not creating INSERT,DELETE and UPDATE commands.It creats SELECT command. When connecting with vb.net 2005 and sql server 2005 there is no problem. If you know any solution reply... Thanks Regards
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.