Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using reflection to get the instance name of a variable Pin
Pete O'Hanlon8-Dec-06 9:27
mvePete O'Hanlon8-Dec-06 9:27 
AnswerRe: Using reflection to get the instance name of a variable Pin
karam chandrabose8-Dec-06 10:11
karam chandrabose8-Dec-06 10:11 
QuestionAccess DB wont Update Pin
Vodstok8-Dec-06 8:11
Vodstok8-Dec-06 8:11 
AnswerRe: Access DB wont Update Pin
Vodstok8-Dec-06 8:40
Vodstok8-Dec-06 8:40 
QuestionNHibernate Pin
peshawarcoder8-Dec-06 7:52
peshawarcoder8-Dec-06 7:52 
AnswerRe: NHibernate Pin
Pete O'Hanlon8-Dec-06 9:28
mvePete O'Hanlon8-Dec-06 9:28 
GeneralRe: NHibernate Pin
peshawarcoder11-Dec-06 2:12
peshawarcoder11-Dec-06 2:12 
QuestionDatabase Question [modified] Pin
mfcuser8-Dec-06 7:44
mfcuser8-Dec-06 7:44 
First, I am using sql statement to create table like "CREATE TABLE"; I have several tables to create with a lot of fields and I find out it is very inconvenient to do. I keep getting sentax error and it takes me time to fix. I want to know if there is any other way to do that if I don't wnat to do the wizard.

Does microsoft access provides a translator for sql. Assume that I have the table in access, can it gives me the correspondent sql statement for that table?

The sedcond question I have, I also wnat to create an access file (.mdb) for that table. Right now I have to create an empty file than put the table to it. I mean an empty access file from ms access. So how can I create an access file

here is the way I do it
<br />
  OleDbConnection dbConnection;<br />
            dbConnection = new OleDbConnection();<br />
            string tableName = "Table Name";<br />
            dbConnection.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; " +<br />
                "Data Source = " + Application.StartupPath + "\\EmptyFile.mdb";<br />

show how can I use the OleDbConnection to create a new access file before I put any table to it

also how to autoincrement the primary field or set it to true?

-- modified at 13:53 Friday 8th December, 2006
AnswerRe: Database Question Pin
User 17164929-Dec-06 4:55
professionalUser 17164929-Dec-06 4:55 
QuestionRestaurant POS Database Question (long) Pin
jeweladdict8-Dec-06 7:29
jeweladdict8-Dec-06 7:29 
AnswerRe: Restaurant POS Database Question (long) Pin
karam chandrabose8-Dec-06 10:06
karam chandrabose8-Dec-06 10:06 
AnswerRe: Restaurant POS Database Question (long) Pin
Not Active8-Dec-06 14:35
mentorNot Active8-Dec-06 14:35 
QuestionWhat is wrong Pin
CodeItWell8-Dec-06 7:16
CodeItWell8-Dec-06 7:16 
AnswerRe: What is wrong Pin
Andrew Rissing8-Dec-06 7:58
Andrew Rissing8-Dec-06 7:58 
QuestionNHibernate Pin
peshawarcoder8-Dec-06 6:41
peshawarcoder8-Dec-06 6:41 
AnswerRe: NHibernate Pin
Judah Gabriel Himango8-Dec-06 6:54
sponsorJudah Gabriel Himango8-Dec-06 6:54 
QuestionDisplay Datagrid Decimal to 2 places Pin
jeweladdict8-Dec-06 5:47
jeweladdict8-Dec-06 5:47 
AnswerRe: Display Datagrid Decimal to 2 places Pin
ednrgc8-Dec-06 5:58
ednrgc8-Dec-06 5:58 
GeneralRe: Display Datagrid Decimal to 2 places Pin
jeweladdict8-Dec-06 6:49
jeweladdict8-Dec-06 6:49 
GeneralRe: Display Datagrid Decimal to 2 places Pin
ednrgc8-Dec-06 6:59
ednrgc8-Dec-06 6:59 
QuestionNeed help with Regex Pin
zaboboa8-Dec-06 5:08
zaboboa8-Dec-06 5:08 
AnswerRe: Need help with Regex Pin
ednrgc8-Dec-06 7:04
ednrgc8-Dec-06 7:04 
QuestionInsert javascript into IE Address bar Pin
PhrankBooth8-Dec-06 4:39
PhrankBooth8-Dec-06 4:39 
AnswerRe: Insert javascript into IE Address bar Pin
ednrgc8-Dec-06 7:06
ednrgc8-Dec-06 7:06 
QuestionHow to Use Sql Transactions With DataRow ? Pin
hdv2128-Dec-06 4:17
hdv2128-Dec-06 4:17 

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.