Article View: be.comp.programming
Article #4205Gereserveerde woorden SQL met MS Access?
From: TP
Date: Sun, 14 Sep 2003 09:46
Date: Sun, 14 Sep 2003 09:46
38 lines
2834 bytes
2834 bytes
Betreft volgend stukje code: Dim Sql As String Sql = "CREATE TABLE tblType " Sql = Sql & "( " Sql = Sql & "Typenr TINYINT, " Sql = Sql & "Name CHAR(20) NOT NULL UNIQUE, " Sql = Sql & "Title BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Version BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Maker BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Language BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Size BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Location BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Album BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Track BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Duration BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Year BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Date BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Website BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Genre BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "Format BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Text BIT NOT NULL DEFAULT FALSE, " 'Sql = Sql & "Note BIT NOT NULL DEFAULT FALSE, " Sql = Sql & "CONSTRAINT TypePK PRIMARY KEY(Typenr) " Sql = Sql & ") " Call SqlManipulate(Sql) Bedoelt om een tabel aan te maken in een Access-database mbv SQL in VB6, met de functie SqlManipulate zelf en de databaseconnectie en zo is niks mis, heb die al meer gebruikt. Maar nu geeft hij fouten op de lijnen in commentaar, zijn de woorden "Language", "Size", "Year", "Date", "Text", "Note" misschien gereserveerd? Zoja is er een andere mogelijkheid om een database aan te maken met velden met die namen? Of zit er niks anders op dan andere namen te gebruiken voor die velden? Alvast bedankt. Tim
Technical Details
Message-ID:
<%NW8b.19654$Ot2.1297465@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!news-out.cwix.com!newsfeed.cwix.com!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,3cba1dc45b3dfe7f,start X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,3cba1dc45b3dfe7f,start X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-09-14 02:46:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!news-out.cwix.com!newsfeed.cwix.com!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail Reply-To: "TP" <nettp@pandora.be> From: "TP" <nettp@pandora.be.nospam> Newsgroups: be.comp.programming,nl.comp.programmeren Subject: Gereserveerde woorden SQL met MS Access? Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <%NW8b.19654$Ot2.1297465@phobos.telenet-ops.be> Date: Sun, 14 Sep 2003 09:46:35 GMT NNTP-Posting-Host: 213.224.115.159 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1063532795 213.224.115.159 (Sun, 14 Sep 2003 11:46:35 MEST) NNTP-Posting-Date: Sun, 14 Sep 2003 11:46:35 MEST Organization: Telenet Internet