|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
PLEASE, I really need help. I have installed SQL Server 2000 Developer version on my Windows XP Professional. After I ran the "Enterprise Manager", under the "SQL Server Group", it must be my COMPUTER NAME (ie. andrew), but unfortunately, it is "local" (Below is the diagram). My question is how can I change it to my COMPUTER NAME? Since my ASP.NET page can't connect to the SQL Server 2000 database. I have followed the instruction from this web page, http://www.stardeveloper.com/articl...02041001&page=1 I am very appreciative for any help. Last edited by Andrew2004 : February 14th, 2004 at 02:31 AM. |
|
#2
|
|||
|
|||
|
Try creating an alias with the client network utility
Although your code should be able to connect via IP or computername from the local computer anyway.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Thank you Doug G. Is there anyway that I can change its name to my computername? I don't want to make alias. Since I have checked the icon in the taskbar of the SQL Server 2000, it is assigned with my computer name, "Pentium4_2400". You can see the below attached diagram.
Last edited by Andrew2004 : February 14th, 2004 at 11:57 AM. |
|
#4
|
|||
|
|||
|
You could try deleting the current server registration in EM and re-registering your server using the computer name.
Unless you installed a named instance of sql server, the sql server will inherit the computer's name, but in various screens it will be listed as local. This has never been a problem for me. |
|
#5
|
|||
|
|||
|
Thank you Doug G. Since I am new to ASP.NET and SQL Server 2000 so I just follow the tutorial from the website that I provided the link before, but my code could not connect to the SQL database.
Below is one of my OTHER code that I have tried to connect to the Northwind database with the SQL Server 2000, but it gave me an error. I think that the "connection string" of the code below is not right to connect to the SQL Server 2000. So could you PLEASE correct the connection string and test on your system to see if it works or not? I am very appreciative for your help. ----------- SQLServer_connection.aspx --------------- <%@ Import namespace="System.Data" %> <%@ Import namespace="System.Data.SqlClient" %> <html> <head> <title>Beginning ASP.NET Databases Chapter 3</title> </head> <body> <h4>First Example: Listing data from the Employees table</h4> <asp: DataGrid id="dgNameList" runat="server" GridLines="None" BackColor="LightBlue" CellPadding="5" CellSpacing="5" BorderWidth="2" BorderColor="Black" ToolTip="Includes only those employees who are at HQ" /> </body> </html> <script language="VB" runat="server"> Sub Page_Load(Source As Object, E As EventArgs) Dim strConnection As String = "server=(local)\NetSDK; database= Northwind; " & _ "integrated security=true;" Dim objConnection As New SqlConnection(strConnection) Dim strSQL As String = "SELECT FirstName, LastName, Country " & _ "FROM Employees" Dim objCommand As New SqlCommand(strSQL, objConnection) objConnection.Open() dgNameList.DataSource = objCommand.ExecuteReader() dgNameList.DataBind() objConnection.Close() End Sub </script> |
|
#6
|
|||
|
|||
|
Take a look here, I'm sure it will help you get connected
![]() http://www.able-consulting.com/ADO_Conn.htm |
|
#7
|
|||
|
|||
|
Thank you
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > How to change the COMPUTER NAME in SQL Server 2000 manager??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|