Click here to Skip to main content
15,898,222 members
Home / Discussions / Database
   

Database

 
AnswerRe: server name & machine name Pin
Colin Angus Mackay20-Jun-06 10:53
Colin Angus Mackay20-Jun-06 10:53 
QuestionSQL Replications Pin
Mugombi19-Jun-06 21:02
Mugombi19-Jun-06 21:02 
AnswerRe: SQL Replications Pin
Frank Kerrigan20-Jun-06 4:49
Frank Kerrigan20-Jun-06 4:49 
QuestionHow to delete all data of a specific column Pin
CandyMe19-Jun-06 19:43
CandyMe19-Jun-06 19:43 
AnswerRe: How to delete all data of a specific column Pin
rittjc19-Jun-06 20:22
rittjc19-Jun-06 20:22 
GeneralRe: How to delete all data of a specific column Pin
CandyMe19-Jun-06 22:00
CandyMe19-Jun-06 22:00 
QuestionProgrammatically creating a new Access DB [modified] Pin
rittjc19-Jun-06 16:38
rittjc19-Jun-06 16:38 
AnswerRe: Programmatically creating a new Access DB Pin
Eric Dahlvang20-Jun-06 3:21
Eric Dahlvang20-Jun-06 3:21 
Intriguing dilemma. I searched a little, and only came up with this:
http://support.microsoft.com/kb/317881/EN-US/[^]

The gist of it is that you need to use Microsoft ADO Ext. 2.7 for DDL and Security.


Build an Access Database
Open a new Visual C# .NET console application.
In Solution Explorer, right-click the References node and select Add Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security, click Select to add it to the Selected Components, and then click OK.
Delete all of the code from the code window for Class1.cs.
Paste the following code into the code window:

using System;
using ADOX;

namespace ConsoleApplication1
{
	class Class1
	{
		[STAThread]
		static void Main(string[] args)
		{
			ADOX.CatalogClass cat = new ADOX.CatalogClass();

			cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +
				   "Data Source=D:\\AccessDB\\NewMDB.mdb;" +
				   "Jet OLEDB:Engine Type=5");

			Console.WriteLine("Database Created Successfully");

			cat = null;

		}
	}
}


Change the path to the new .mdb file as appropriate, and then press F5 to build and run the project.

The new .mdb file will be created in Access 2000 (Jet 4.0) format.


----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: Programmatically creating a new Access DB Pin
rittjc20-Jun-06 3:40
rittjc20-Jun-06 3:40 
Questionconversion Pin
pavan kumar.p19-Jun-06 4:40
pavan kumar.p19-Jun-06 4:40 
AnswerRe: conversion Pin
Eric Dahlvang19-Jun-06 5:14
Eric Dahlvang19-Jun-06 5:14 
GeneralRe: conversion Pin
r.stropek20-Jun-06 23:42
r.stropek20-Jun-06 23:42 
GeneralRe: conversion Pin
Eric Dahlvang21-Jun-06 4:44
Eric Dahlvang21-Jun-06 4:44 
Questioninsertquery Pin
pavan kumar.p19-Jun-06 4:37
pavan kumar.p19-Jun-06 4:37 
AnswerRe: insertquery Pin
Colin Angus Mackay19-Jun-06 5:50
Colin Angus Mackay19-Jun-06 5:50 
QuestionCONVERT() Function Pin
NICE TO MEET19-Jun-06 1:05
NICE TO MEET19-Jun-06 1:05 
AnswerRe: CONVERT() Function Pin
vivek-g20-Jun-06 23:45
vivek-g20-Jun-06 23:45 
QuestionBest way of searching XML [modified] Pin
__makaveli__19-Jun-06 0:44
__makaveli__19-Jun-06 0:44 
AnswerRe: Best way of searching XML Pin
rittjc20-Jun-06 2:38
rittjc20-Jun-06 2:38 
Questiontrim in select stmt Pin
bony_baba18-Jun-06 21:27
bony_baba18-Jun-06 21:27 
AnswerRe: trim in select stmt Pin
Reza Raad18-Jun-06 23:34
Reza Raad18-Jun-06 23:34 
Questionhow to show date in access table?? Pin
areon2518-Jun-06 19:45
areon2518-Jun-06 19:45 
QuestionInserting a Row - Returning the ID Pin
AJ12317-Jun-06 22:40
AJ12317-Jun-06 22:40 
AnswerRe: Inserting a Row - Returning the ID Pin
AJ12317-Jun-06 23:09
AJ12317-Jun-06 23:09 
Questionhow to give a name to the result table Pin
TheBeginner7717-Jun-06 22:39
TheBeginner7717-Jun-06 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.