Add to Favorites    Make Home Page 88 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Files Home » MkDatabase Function

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title MkDatabase Function
Description The MkDatabase statement creates an empty Microsoft Access database. The required argument pathname must end in .mdb and reflects the location of where the new database will be created. MkDatabase can only create a database. An error occurs if the specified path is not found or if there is a database with the same name at the location specified in the pathname argument. Use the Kill Statement to delete an MS Access database.
Category ASP » Files
Hits 3280
Code Select and Copy the Code
click an example below VBScript: SQLServerTools ... MkDatabase Function < prev proc MkArchive Function Next proc > MkDir Statement purpose: The MkDatabase statement creates an Empty Microsoft Access database. The required argument pathname must End In .mdb And reflects the location of where the New database will be created. MkDatabase can only create a database. An Error occurs If the specified path Is Not found Or If there Is a database With the same name at the location specified In the pathname argument. Use the Kill Statement To delete an MS Access database. syntax: MkDatabase pathname example usage: <% MkDatabase "C:database.mdb" %> source code: <% Private Sub MkDatabase(ByVal pathname) Dim objAccess, objFSO If LCase( Right( pathname, 4 ) ) <> ".mdb" Then Err.Raise 5155, "MkDatabase Statement", _ "Database name must end with '.mdb'" Exit Sub End If Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO.FileExists( pathname ) Then Set objFSO = Nothing Err.Raise 5155, "MkDatabase Statement", _ "Specified MS Access database already exists." Exit Sub End If Set objFSO = Nothing On Error Resume Next Set objAccess = CreateObject("Access.Application") If Err Then On Error GoTo 0 Err.Raise 5155, "MkDatabase Statement", _ "MS Access is not installed on this server." Exit Sub End If With objAccess .Echo False .NewCurrentDatabase pathname .CloseCurrentDatabase .Quit End With Set objAccess = Nothing On Error GoTo 0 End Sub %>

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions
Copyright ©2003-2020 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=361


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review