Hi Tinkerer,
Are you on Windows or are you on Linux. You're referring to cpanel time and again. CPANEL is usually referred to the control panel under linux. If you're on Linux, you can't use MS_SQL database on the same platform. You will also not be able to run ASPx files under Linux not without using third party tools such as chillisoftASP. However, even with this, it won't work properly.
Ideally you should shift to Windows Hosting.
If you're on Windows Already:
a) First Create the Database, (goto Domains->Properties-->Databases->(Click on Database Name" heading to show the option to "create a database" this seems to be a bug in HC7) use MS SQL Server
b) Type a databas name. Note the Database Name: It will have a prefix like yourdomain_com_nameyouselect
c) Type a database login (this is database username) . Note again it will have yourdomain_com_ prefix
d) Enter the password twice.
Half work done! Final settings for connection to database will be:
Database Name: someprefix_com_databasenameyouselected
DB Username: someprefix_com_usernameyouselected
DB Password: WhateveryouTypedTwice
DB Hostname/Server: Set localhost or Enter your domain name or IP of your control panel (87.117.234.246)
Now onto the application part.
Here is an ASP example:
==========================
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Driver={SQL Server};" & _
"Server="LOCALHOST;" & _
"Database=someprefix_com_databasenameyouselect ed;" & _
"Uid=someprefix_com_usernameyouselected;" & _
"Pwd=WhateveryouTypedTwice;"
objConn.Close
Set objConn = Nothing
=========================
You could also use oleDB Connection method:
==========================
Provider=sqloledb;
Data Source=87.xx.xx.xx,1433;
Network Library= ;
Initial Catalog=someprefix_com_databasenameyouselected;
User Id=someprefix_com_usernameyouselected;
Password=WhateveryouTypedTwice;
Connect Timeout=4;
==========================
VB.NET (1.1 Only)
==========================
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = _
"Driver={SQL Server};" & _
"Server=localhost or IP ;" & _
"Database=someprefix_com_databasenameyouselect ed;" & _
"Uid=someprefix_com_usernameyouselected;" & _
"Pwd=WhateveryouTypedTwice"
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
===========================
If no error is generated in the above examples, you got the connection!
You may also see
http://www.connectionstrings.com if you wish to know more.
Hope this helps a bit.
Regds
IJ