Using MS SQL
Table of Contents
- Account Information
- Host names
- Connecting with ASP
- Connecting with SQL Server Management Studio
- Connecting with SQL Server Management Studio
- Troubleshooting
Account Information
For SCE (Personal) Web Hosting
Request a MS SQL account from an RA.
-
Account (username): [your_sce_username]
Note: the username is not prefixed with 'SCE\'.
Account information can viewed on your accounts page.
For DCM (Course) Web Hosting
- Account (username): [your_sce_username]
Check your accounts page for course information.
Host Names
For SCE (Personal) Accounts
Host name: sceweb.sce.uhcl.edu
For DCM (Course) Accounts
Host name: dcm.uhcl.edu
Connecting With ASP
The connection string for the MS SQL Server is
SqlConnection myConnection = new SqlConnection(
"user id=[your_sce_username]" +
"password=Sce[your student ID]!!;" +
"server=dcmweb;" +
"Trusted_Connection=no;" +
"database=[your database name];" +
"connection timeout=30"
);
If your name is Alex Smith, with ID of 1234567, and database name c432009SmithA, then here is the connection string format:
SqlConnection myConnection = new SqlConnection(
"user id=SmithA;" +
"password==Sce1234567!!;" +
"server=dcmweb;" +
"Trusted_Connection=no;" +
"database=c432009SmithA; " +
"connection timeout=30"
);
Connecting With SQL Server Management Studio
Note: You will not be able to access the MS SQL server from the UHCL Wifi.
To access the database with SQL Server Management Studio, follow these steps.
For SCE (Personal) Web Hosting
- Open SQL Server Management Studio.
- Type sceweb as server name. If you are off campus, use sce.uhcl.edu.
- Select SQL Server Authentication.
- For the credentials, enter the username and password as specified on the accounts page.
- Click Connect.
For DCM (Course) Web Hosting
- Open SQL Server Management Studio.
- Type dcmweb as server name. If you are off campus, use dcm.uhcl.edu.
- Select SQL Server Authentication.
- For the credentials, enter the username and password as specified on the accounts page for the course.
- Click Connect.
Connecting With Visual Studio
Note: You will not be able to access the MS SQL server from the UHCL Wifi.
To access the database with Visual Studio, follow these steps.
For SCE (Personal) Web Hosting
- Open Visual Studio.
- Select Tools -> Connect to Database...
- Type dcm.uhcl.edu as server name.
- Select SQL Server Authentication.
- For the credentials, enter the username and password as specified on the accounts page.
- Click OK.
- There should now be a new data connection in Server Explorer
For DCM (Course) Web Hosting
- Open SQL Server Management Studio.
- Type dcm.uhcl.edu as server name.
- Select SQL Server Authentication.
- For the credentials, enter the username and password as specified on the accounts page for the course.
- Click OK.
- There should now be a new data connection in Server Explorer