Click here to Skip to main content
15,912,329 members
Home / Discussions / Database
   

Database

 
Questionserver name & machine name Pin
md_refay19-Jun-06 23:14
md_refay19-Jun-06 23:14 
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 
You can't get there from here...I always found that statement ironic. You hear it a lot when asking directions. It is like the problem I am having in creating a new Access database from ADO.NET programmatically.

First, you need a connection. This connection needs a connection string. The connection string has to have the path of the new database or it gripes about no Data Source. But when you put the new database name and path connection string it complains that the Data Source does not exist.

How do you do this? Any gurus know how to do this?

My plan was to:

OdbcConnection myConn = new OdbcConnection("Provider=blah..blah");
OdbcCommand myCommand = new OdbcCommand("CREATE DATABASE MyDbPath", myConn);

myComm.Open();
myCommand.ExecuteNonQuery();

...

How do you get there from here?

Thanks in advance!



-- modified at 22:48 Monday 19th June, 2006
AnswerRe: Programmatically creating a new Access DB Pin
Eric Dahlvang20-Jun-06 3:21
Eric Dahlvang20-Jun-06 3:21 
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 

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.