Access 2007 & "Password" Reserved?
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Access 2007 & "Password" Reserved?Expand / Collapse
Author
Message
Posted 03/22/2008 5:47:44 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/03/2008 8:49:49 AM
Posts: 30, Visits: 269
Is the term "Password" a reserved word in an Access 2007 Database?
I keep getting an Syntax Error in INSERT and on UPDATE commands when I have a field named "Password".
This was driving me nuts because looking at the DEBUG output of the command, it is valid...

INSERT INTO Users (Username, Password, DisplayName) VALUES (?, ?, ?);

Param0: 'Testing' [DbType: String | Size: 7 | Direction: Input | SourceColumn: Username | SourceVersion: Current]
Param1: 'Testing' [DbType: String | Size: 7 | Direction: Input | SourceColumn: Password | SourceVersion: Current]
Param2: 'DisplayName' [DbType: String | Size: 11 | Direction: Input | SourceColumn: DisplayName | SourceVersion: Current]

I don't recall having this issue in the past....
Post #15112
Posted 03/24/2008 8:36:08 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 06/17/2008 9:28:35 AM
Posts: 2,649, Visits: 1,863
Yes, it might very well be a reserved word.  Try calling that command directly on the database (not through the SF data source) and see if it executes (create a quick little test app to try it out).  If it still gives you an error, then try putting [] around the "password" so it looks like [Password] in the command.  If that works, then we'll need to modify our data source item to add the quoted identifiers for the field names.


www.bungie.net
Post #15124
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:17am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.