Click here to Skip to main content
15,912,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: ArrayList vs. List<object> Pin
dbrenth8-Oct-08 5:44
dbrenth8-Oct-08 5:44 
GeneralRe: ArrayList vs. List<object> Pin
Mark Salsbery8-Oct-08 7:35
Mark Salsbery8-Oct-08 7:35 
AnswerRe: ArrayList vs. List<object> Pin
DaveyM698-Oct-08 5:43
professionalDaveyM698-Oct-08 5:43 
AnswerRe: ArrayList vs. List<object> Pin
Scott Dorman8-Oct-08 7:38
professionalScott Dorman8-Oct-08 7:38 
AnswerRe: ArrayList vs. List<object> Pin
Daniel Grunwald8-Oct-08 8:11
Daniel Grunwald8-Oct-08 8:11 
AnswerRe: ArrayList vs. List<object> Pin
CPallini8-Oct-08 9:15
mveCPallini8-Oct-08 9:15 
AnswerRe: ArrayList vs. List<object> Pin
Guffa8-Oct-08 9:19
Guffa8-Oct-08 9:19 
QuestionCreate new Table in Access mdb Pin
Planker8-Oct-08 5:07
Planker8-Oct-08 5:07 
I am trying to create a table in an Access database

I have verified all of my SQL commands work in SQL Server so I'm figuring that i have a formatting for C# issue i am over looking or doing something wrong via the OLDDB driver

here is my code

String connect = "Provider=Microsoft.JET.OLEDB.4.0;data source=.\\Test.mdb";
OleDbConnection con = new OleDbConnection(connect);
con.Open();
OleDbCommand cmd = con.CreateCommand();
cmd.CommandText = "Create Table GroupPolicy(GUID char(50) NOT NULL Unique, GPONAME char(50), Domain Char(50), Created datetime, Modified datetime, Status char(10))";
try
{
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
con.Close();

the exception is telling me there is a syntax error

Thanks
AnswerRe: Create new Table in Access mdb Pin
led mike8-Oct-08 5:41
led mike8-Oct-08 5:41 
GeneralRe: Create new Table in Access mdb [modified] Pin
Planker8-Oct-08 6:34
Planker8-Oct-08 6:34 
QuestionRe: Create new Table in Access mdb Pin
led mike8-Oct-08 10:05
led mike8-Oct-08 10:05 
AnswerRe: Create new Table in Access mdb Pin
Planker9-Oct-08 7:41
Planker9-Oct-08 7:41 
GeneralRe: Create new Table in Access mdb Pin
led mike9-Oct-08 8:22
led mike9-Oct-08 8:22 
QuestionIs it possible to sort of embed an assembly within another assembly" Pin
Member 30621768-Oct-08 4:41
Member 30621768-Oct-08 4:41 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
#realJSOP8-Oct-08 4:47
professional#realJSOP8-Oct-08 4:47 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
Member 30621768-Oct-08 4:51
Member 30621768-Oct-08 4:51 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
Ashfield8-Oct-08 4:58
Ashfield8-Oct-08 4:58 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
#realJSOP8-Oct-08 5:05
professional#realJSOP8-Oct-08 5:05 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
Ennis Ray Lynch, Jr.8-Oct-08 5:18
Ennis Ray Lynch, Jr.8-Oct-08 5:18 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
PIEBALDconsult8-Oct-08 5:19
mvePIEBALDconsult8-Oct-08 5:19 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
teejayem8-Oct-08 8:34
teejayem8-Oct-08 8:34 
QuestionBinaryFormatter: Serializing an object's base class Pin
mav.northwind8-Oct-08 4:01
mav.northwind8-Oct-08 4:01 
AnswerRe: BinaryFormatter: Serializing an object's base class Pin
PIEBALDconsult8-Oct-08 4:07
mvePIEBALDconsult8-Oct-08 4:07 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
mav.northwind8-Oct-08 4:12
mav.northwind8-Oct-08 4:12 
AnswerRe: BinaryFormatter: Serializing an object's base class Pin
#realJSOP8-Oct-08 4:17
professional#realJSOP8-Oct-08 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.