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.Comman dText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSA D
nvarchar(30),MS SOYAD nvarchar(30),MS SEMT nvarchar(30),MS SEMTRCH
nvarchar(30),MS TLF nvarchar(15),FI YAT nvarchar(3),IND EXBY
nvarchar(4),VHM ARKA nvarchar(30),VH MODEL nvarchar(50),VH LSEBAT
nvarchar(20),VH YIL nvarchar(4),LAS ONMRK nvarchar(20),LA SONDSN
nvarchar(30),LA SRKMRK nvarchar(20),LA SRKDSN nvarchar(30),VH DSSGON
nvarchar(10),VH DSSGRK nvarchar(10),VH DSSLON nvarchar(10),VH DISSLRK
nvarchar(10),VH PLAKA nvarchar(15),VH IDHVON nvarchar(3),VHI DHVRK
nvarchar(3),TAR IH nvarchar(10),US ER nvarchar(5))" 3 1859
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.Comman dText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSA D nvarchar(30),MS SOYAD nvarchar(30),MS SEMT nvarchar(30),MS SEMTRCH nvarchar(30),MS TLF nvarchar(15),FI YAT nvarchar(3),IND EXBY nvarchar(4),VHM ARKA nvarchar(30),VH MODEL nvarchar(50),VH LSEBAT nvarchar(20),VH YIL nvarchar(4),LAS ONMRK nvarchar(20),LA SONDSN nvarchar(30),LA SRKMRK nvarchar(20),LA SRKDSN nvarchar(30),VH DSSGON nvarchar(10),VH DSSGRK nvarchar(10),VH DSSLON nvarchar(10),VH DISSLRK nvarchar(10),VH PLAKA nvarchar(15),VH IDHVON nvarchar(3),VHI DHVRK nvarchar(3),TAR IH nvarchar(10),US ER 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.c om> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.Comman dText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSA D nvarchar(30),MS SOYAD nvarchar(30),MS SEMT nvarchar(30),MS SEMTRCH nvarchar(30),MS TLF nvarchar(15),FI YAT nvarchar(3),IND EXBY nvarchar(4),VHM ARKA nvarchar(30),VH MODEL nvarchar(50),VH LSEBAT nvarchar(20),VH YIL nvarchar(4),LAS ONMRK nvarchar(20),LA SONDSN nvarchar(30),LA SRKMRK nvarchar(20),LA SRKDSN nvarchar(30),VH DSSGON nvarchar(10),VH DSSGRK nvarchar(10),VH DSSLON nvarchar(10),VH DISSLRK nvarchar(10),VH PLAKA nvarchar(15),VH IDHVON nvarchar(3),VHI DHVRK nvarchar(3),TAR IH nvarchar(10),US ER nvarchar(5))"
Under Public Class Form1 definition:
Private Const filename4 As String = "MUSTERI.SD F"
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(con nstr4)
If Not File.Exists(fil ename4) Then
engine4.CreateD atabase()
Else
MsgBox("FILE EXISTS")
End If
engine4.Dispose ()
connection4 = New SqlCeConnection (connstr4)
connection4.Ope n()
Dim command4 As SqlCeCommand = connection4.Cre ateCommand
command4.Comman dText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSA D
nvarchar(30),MS SOYAD nvarchar(30),MS SEMT nvarchar(30),MS SEMTRCH
nvarchar(30),MS TLF nvarchar(15),FI YAT nvarchar(3),IND EXBY
nvarchar(4),VHM ARKA nvarchar(30),VH MODEL nvarchar(50),VH LSEBAT
nvarchar(20),VH YIL nvarchar(4),LAS ONMRK nvarchar(20),LA SONDSN
nvarchar(30),LA SRKMRK nvarchar(20),LA SRKDSN nvarchar(30),VH DSSGON
nvarchar(10),VH DSSGRK nvarchar(10),VH DSSLON nvarchar(10),VH DISSLRK
nvarchar(10),VH PLAKA nvarchar(15),VH IDHVON nvarchar(3),VHI DHVRK
nvarchar(3),TAR IH nvarchar(10),US ER nvarchar(5))"
command4.Execut eNonQuery()
command4.Dispos e()
MsgBox("MUSTERI .SDF TAMAM")
' 4TH Creation Complete
connection4.Clo se()
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message
news:eR******** *****@TK2MSFTNG P11.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.c om> wrote in message news:%2******** ********@TK2MSF TNGP11.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.Comman dText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSA D nvarchar(30),MS SOYAD nvarchar(30),MS SEMT nvarchar(30),MS SEMTRCH nvarchar(30),MS TLF nvarchar(15),FI YAT nvarchar(3),IND EXBY nvarchar(4),VHM ARKA nvarchar(30),VH MODEL nvarchar(50),VH LSEBAT nvarchar(20),VH YIL nvarchar(4),LAS ONMRK nvarchar(20),LA SONDSN nvarchar(30),LA SRKMRK nvarchar(20),LA SRKDSN nvarchar(30),VH DSSGON nvarchar(10),VH DSSGRK nvarchar(10),VH DSSLON nvarchar(10),VH DISSLRK nvarchar(10),VH PLAKA nvarchar(15),VH IDHVON nvarchar(3),VHI DHVRK nvarchar(3),TAR IH nvarchar(10),US ER nvarchar(5))"
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 document has nodes, and I would like to have a generic
tool (I need to import about 35 tables).
I'm trying something below:
|
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 Tables same way but this SQL line is always
gives me problems.
command4.CommandText = "CREATE TABLE MUSTERI (INDEXMS nvarchar(5),MSAD...
|
by: Rod |
last post by:
I orginally posted this to microsoft.public.sqlserver.ce but had not
received any responses.
I have a CF.NET application (C#) with a SqlCE database. We had
originally planned to use SQL Authentication to replicate with the
publication and indeed had SQL Authentication working flawlessly. Then
our client asked us to use Windows...
|
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.
Where is? Sqlce is not installed by default?
Thanks
| |
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 matches a Schema XSD file that I have.
Where can I find a tutorial on how to do this. I'm hoping that somehow I
just need to create a link between...
|
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 device. I have a method to
perform this task but it doesn't load the data into the SqlCe database. The
data is downloaded into the dataset from...
|
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 between sqlce on the mobile device and sql 2000 server with another app(written in c# .net) running on the same physical drive as sql server, IIS and...
|
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 as far as I know.
The SQL Server template seems easily adaptable to the sqlce, but
before starting generating a new template I would like to ask you...
|
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: 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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |