Hey ppl,
I am having trouble in building a smart device application. I cant create a
table on SQLCE server using this line. Anyone can tell me what the problem
is?
I am able to create another 3 Tables same way but this SQL line is always
gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD
nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH
nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY
nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT
nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN
nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON
nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK
nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK
nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))" 4 2700
What is the error?
Rgds,
Anand
VB.NET MVP http://www.dotnetindia.com
"Enver A" wrote: Hey ppl, I am having trouble in building a smart device application. I cant create a table on SQLCE server using this line. Anyone can tell me what the problem is? I am able to create another 3 Tables same way but this SQL line is always gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
This line alone can't be giving you the trouble Syntactically I don't see
anything wrong off the top of my head, but it'd help if you posted the code
that's throwing the exception in particular.
--
W.G. Ryan, eMVP http://forums.devbuzz.com/ http://www.knowdotnet.com/williamryan.html http://www.msmvps.com/WilliamRyan/
"Enver A" <ea**@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hey ppl, I am having trouble in building a smart device application. I cant create
a table on SQLCE server using this line. Anyone can tell me what the problem is? I am able to create another 3 Tables same way but this SQL line is always gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
Under Public Class Form1 definition:
Private Const filename4 As String = "MUSTERI.SDF"
Private connstr4 As String = String.Format("Datasource={0};Password={1}",
filename4, "Admin")
Private connection4 As SqlCeConnection
Under Private sub CreateDB Click():
Dim engine4 As New SqlCeEngine(connstr4)
If Not File.Exists(filename4) Then
engine4.CreateDatabase()
Else
MsgBox("FILE EXISTS")
End If
engine4.Dispose()
connection4 = New SqlCeConnection(connstr4)
connection4.Open()
Dim command4 As SqlCeCommand = connection4.CreateCommand
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD
nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH
nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY
nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT
nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN
nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON
nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK
nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK
nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
command4.ExecuteNonQuery()
command4.Dispose()
MsgBox("MUSTERI.SDF TAMAM")
' 4TH Creation Complete
connection4.Close()
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eR*************@TK2MSFTNGP11.phx.gbl... This line alone can't be giving you the trouble Syntactically I don't
see anything wrong off the top of my head, but it'd help if you posted the
code that's throwing the exception in particular. --
W.G. Ryan, eMVP
http://forums.devbuzz.com/ http://www.knowdotnet.com/williamryan.html http://www.msmvps.com/WilliamRyan/ "Enver A" <ea**@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hey ppl, I am having trouble in building a smart device application. I cant
create a table on SQLCE server using this line. Anyone can tell me what the
problem is? I am able to create another 3 Tables same way but this SQL line is
always gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
*The code is below. It always stuck on line "command4.ExecuteNonQuery()" and
it throws an Sqlce exception
Under Public Class Form1 definition:
Private Const filename4 As String = "MUSTERI.SDF"
Private connstr4 As String = String.Format("Datasource={0};Password={1}",
filename4, "Admin")
Private connection4 As SqlCeConnection
Under Private sub CreateDB Click():
Dim engine4 As New SqlCeEngine(connstr4)
If Not File.Exists(filename4) Then
engine4.CreateDatabase()
Else
MsgBox("FILE EXISTS")
End If
engine4.Dispose()
connection4 = New SqlCeConnection(connstr4)
connection4.Open()
Dim command4 As SqlCeCommand = connection4.CreateCommand
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD
nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH
nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY
nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT
nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN
nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON
nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK
nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK
nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
command4.ExecuteNonQuery()
command4.Dispose()
MsgBox("MUSTERI.SDF TAMAM")
' 4TH Creation Complete
connection4.Close()
"Enver A" <ea**@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hey ppl, I am having trouble in building a smart device application. I cant create
a table on SQLCE server using this line. Anyone can tell me what the problem is? I am able to create another 3 Tables same way but this SQL line is always gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD nvarchar(30),MSSOYAD nvarchar(30),MSSEMT nvarchar(30),MSSEMTRCH nvarchar(30),MSTLF nvarchar(15),FIYAT nvarchar(3),INDEXBY nvarchar(4),VHMARKA nvarchar(30),VHMODEL nvarchar(50),VHLSEBAT nvarchar(20),VHYIL nvarchar(4),LASONMRK nvarchar(20),LASONDSN nvarchar(30),LASRKMRK nvarchar(20),LASRKDSN nvarchar(30),VHDSSGON nvarchar(10),VHDSSGRK nvarchar(10),VHDSSLON nvarchar(10),VHDISSLRK nvarchar(10),VHPLAKA nvarchar(15),VHIDHVON nvarchar(3),VHIDHVRK nvarchar(3),TARIH nvarchar(10),USER nvarchar(5))"
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Enver A |
last post by:
Hey ppl,
I am having trouble in building a smart device application. I cant create a
table on SQLCE server using this line. Anyone can tell me what the problem
is?
I am able to create another 3...
|
by: Paul Aspinall |
last post by:
Hi
Does anyone know if SQLHelper (Application Blocks) for SQLCE is available?
Thanks
|
by: Locusta |
last post by:
Hello,
I'm looking for a generic way to import XML documents into a local
SQLCE database (on Pocket PC).
To complicate, the local SQLCE database has more fields in the tables
than the XML...
|
by: Titeuf |
last post by:
ok I start programming mobile application with VB.NET (VS 2005)
I am interested work with Sqlce
Also I look for add reference in my project
I search "System.Data.SqlServerCe" but not found....
|
by: jamie |
last post by:
I'm sure this is probably really easy and I'm just not knowing the correct
thing to search on to find it.
I have a SQLCE database and I need to get the data out of it into an XML
file that...
|
by: Johnny |
last post by:
I have a PocketPC mobile application that gets its data from the Sql Server
database via a web service. The web service returns a dataset that I need to
load into the SqlCe database on the mobile...
|
by: drgoon |
last post by:
I have a mobile app using sqlce 2.0 connecting to an sql 2000 server db. I am able to push, pull and execute sql statements no problem. I would like to be able to "sniff" messages and data going...
|
by: dariosalvi78 |
last post by:
Hi,
I am trying to use MyGeneration with a SQLCe database in the Compact
Framework 2 environment.
My first problem now is that MyGeneration (its latest version) has no
template for the SqlCe...
|
by: dipalipatel |
last post by:
Hi,
I have a very hard time to insert Image into Sqlce Database.
Table : Test
Column : mypic
Datatype : image
below the code while i am inserting
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |