Click here to Skip to main content
15,885,869 members
Articles / Programming Languages / ASP

Online DB Administration

Rate me:
Please Sign up or sign in to vote.
3.88/5 (16 votes)
17 Mar 2003 236.3K   2.5K   58  
Online administration of your database. Create or modify tables, keys, and indexes. Edit or insert data.
<script language=javascript runat=server>
function Config(arg) {
	switch(arg.toLowerCase()) {
	case 'title':		return 'DB Admin 2.0.0 Beta';
	case 'connstr':		return 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + Config('database');
	case 'database':	return Server.MapPath('/database/mydb.mdb');
	//case 'connstr':	return 'Provider=SQLOLEDB.1;User ID=sa;Password=;Initial Catalog=mydb;Data Source=(local)';
	//case 'database':	return 'mydb';
	case 'locale':		return 'no';	// 'en', 'en-us', ...
	default:			throw new Error('Unknown config argument ' + arg);
	}
}

function CheckSecurity() {
	if(""+Request.ServerVariables("AUTH_USER")=="") {
		ErrorOut('<span style="color:red;font-weight:bold">Access Denied</span>');
		Response.Status = '401 Access Denied';
		Response.End();
	}
}

</script>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Norway Norway
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions