Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL error Pin
spankyleo12310-Nov-09 3:31
spankyleo12310-Nov-09 3:31 
GeneralRe: SQL error Pin
Pete O'Hanlon10-Nov-09 3:42
mvePete O'Hanlon10-Nov-09 3:42 
GeneralRe: SQL error Pin
spankyleo12310-Nov-09 3:46
spankyleo12310-Nov-09 3:46 
GeneralRe: SQL error Pin
Shameel10-Nov-09 7:24
professionalShameel10-Nov-09 7:24 
QuestionHide shape in work document through C# Pin
Pankaj Saha9-Nov-09 22:57
Pankaj Saha9-Nov-09 22:57 
Questionpanel Pin
farokhian9-Nov-09 22:06
farokhian9-Nov-09 22:06 
AnswerRe: panel Pin
The Man from U.N.C.L.E.9-Nov-09 22:28
The Man from U.N.C.L.E.9-Nov-09 22:28 
QuestionSQL create table syntax error? Pin
Emmet_Brown9-Nov-09 22:01
Emmet_Brown9-Nov-09 22:01 
Hi everyone...

I'm using an SQL Server Compact Edition
I can do all the queries without a problem but I cannot create a table.

in the runtime, when it comes to create a table, the line of the "ExecutNonQuery" gives an error:
"There was an error parsing the query [Token line number=1, Token line offset = 14]..etc"

I now that this kind of error appears when your SQL command syntax is wrong

can anybody tell me what is my fault?

string CreCom = "CREATE TABLE " + TCkim + YilBox.Text + " (Aylar nvarchar (10), Statu nvarchar (20), Odeme nvarchar (20), Servis nvarchar (20), Kiyafet nvarchar (20), Kitap nvarchar (20), Tiyatro nvarchar (20), Sinema nvarchar (20), Yemek nvarchar (20), Muze nvarchar (20), Piknik nvarchar (20), Parti nvarchar (20), Diger nvarchar (20), Yoklama nvarchar (20), Aylik nvarchar (20), Odenen nvarchar (20), Kalan nvarchar (20))";
SqlCeCommand CreateCommand = new SqlCeCommand(CreCom, conn);
CreateCommand.ExecuteNonQuery();


note: SqlCeCommand is the "SqlCommand" for Compact Edition. Usage is all the same
AnswerRe: SQL create table syntax error? Pin
Emmet_Brown9-Nov-09 22:05
Emmet_Brown9-Nov-09 22:05 
AnswerRe: SQL create table syntax error? Pin
Emmet_Brown9-Nov-09 22:24
Emmet_Brown9-Nov-09 22:24 
GeneralRe: SQL create table syntax error? Pin
Luc Pattyn10-Nov-09 1:10
sitebuilderLuc Pattyn10-Nov-09 1:10 
Questiontreeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 21:30
miss YY9-Nov-09 21:30 
AnswerRe: treeview?this problem has Troubled me for few days Pin
Pete O'Hanlon9-Nov-09 21:56
mvePete O'Hanlon9-Nov-09 21:56 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 22:18
miss YY9-Nov-09 22:18 
GeneralRe: treeview?this problem has Troubled me for few days Pin
Pete O'Hanlon9-Nov-09 22:42
mvePete O'Hanlon9-Nov-09 22:42 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY11-Nov-09 14:19
miss YY11-Nov-09 14:19 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 22:19
miss YY9-Nov-09 22:19 
Questionabout Sql2000 Pin
miss YY9-Nov-09 21:05
miss YY9-Nov-09 21:05 
AnswerRe: about Sql2000 Pin
Christian Graus9-Nov-09 21:07
protectorChristian Graus9-Nov-09 21:07 
QuestionHow to induce form to hide rather than dispose upon user [x] button click? Pin
Chesnokov Yuriy9-Nov-09 20:55
professionalChesnokov Yuriy9-Nov-09 20:55 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
Christian Graus9-Nov-09 21:02
protectorChristian Graus9-Nov-09 21:02 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
Chesnokov Yuriy9-Nov-09 22:11
professionalChesnokov Yuriy9-Nov-09 22:11 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
PIEBALDconsult10-Nov-09 4:12
mvePIEBALDconsult10-Nov-09 4:12 
Questiongeneral knowledge Pin
sujeet3082@yahoo.com9-Nov-09 20:20
sujeet3082@yahoo.com9-Nov-09 20:20 
AnswerRe: general knowledge Pin
Ashfield9-Nov-09 20:59
Ashfield9-Nov-09 20:59 

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.