- Sep 10, 2001
- 12,348
- 1
- 81
I'm trying to rig up a database that can store numbers and memo data types. The database is Access 2003 and I'm writing the aspx code in C#. I have a working version where all variables are stored simply as text, but I would like to expand it for greater utility. I haven't been able to track down the syntax to change a string or integer to the appropriate type for database storage.
Since I'm sure that didn't make any sense, here is an example:
I have a post ID number (integer, stored as number), post author name (string, stored as text), post content (string, stored as memo).
If anyone can point me in the right direction, it would be much appreciated. I've read the W3schools SQL tutorial but it didn't really mention this.
I'll throw in an extra :beer: for anyone who can tell me how to have a very long string in C# (>255 characters) that is analagous to the memo database type. All of these things are probably simple for anyone with relevant experience, but I'm trying to teach myself, so any help is greatly appreciated.
Since I'm sure that didn't make any sense, here is an example:
I have a post ID number (integer, stored as number), post author name (string, stored as text), post content (string, stored as memo).
If anyone can point me in the right direction, it would be much appreciated. I've read the W3schools SQL tutorial but it didn't really mention this.
I'll throw in an extra :beer: for anyone who can tell me how to have a very long string in C# (>255 characters) that is analagous to the memo database type. All of these things are probably simple for anyone with relevant experience, but I'm trying to teach myself, so any help is greatly appreciated.