logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
How to Store Object in Access ???

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Cyric



Joined: 22 May 2005
Posts: 4
Location: Rome, Italy

PostPosted: Sun May 22, 2005 14:14    Post subject: How to Store Object in Access ??? Reply with quote

I was trying to set up a persistent storage chest, anyone know how must be created in Access the table "pwobjdata" ?
I can't find the field type for the object anywhere...
_________________
Reami Perduti - Server Italiano PW
Back to top
View user's profile Send private message Visit poster's website
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun May 22, 2005 15:12    Post subject: Reply with quote

My hint would be to use the OLE-Object type. This seems to be the only type that can store blobs, although I haven't tested this.

http://www.jamiessoftware.tk/articles/handlingimages.html

The ODBC driver should be able to store binary data in that field type.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cyric



Joined: 22 May 2005
Posts: 4
Location: Rome, Italy

PostPosted: Mon Jun 13, 2005 16:51    Post subject: Reply with quote

I tried many time to use it with Access, but cannot store the data...
In the logs (odbc logs) the operation seems to be executed, but no data is stored in the database.

Code:
o Got request (scorco): INSERT INTO pwobjdata (player,tag,name,val,expire) VALUES('Cyric the Dark','Aluvian Darkstar','Item_0',~s,0)
o Got request (scorco): SELECT val FROM pwobjdata WHERE player='Cyric the Dark' AND tag='Aluvian Darkstar' AND name='Item_0'
o Got request: DELETE FROM pwobjdata WHERE player='Cyric the Dark' AND tag='Aluvian Darkstar' AND name='Item_0'
o Got request: SELECT player FROM pwobjdata WHERE player='Cyric the Dark' AND tag='Aluvian Darkstar' AND name='Item_0'
o Empty set


The Database was created this way:
Code:
CREATE TABLE pwobjdata (player varchar(64) NOT NULL, tag varchar(64) NOT NULL ,name varchar(64) NOT NULL ,val OLEOBJECT,expire int, last timestamp NOT NULL,PRIMARY KEY (player,tag,name))


Any idea about why it don't works ?
_________________
Reami Perduti - Server Italiano PW
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group