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 
 
SCO/RCO on MS-SQL Server 2008

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Axe Murderer



Joined: 11 Aug 2011
Posts: 1

PostPosted: Thu Aug 11, 2011 21:01    Post subject: SCO/RCO on MS-SQL Server 2008 Reply with quote

Can't get SetPersistentObject to work on this platform.

I'm Sending the following SQL statement to the hook when SPO is called:
INSERT INTO ObjCampaign (player,tag,name,val,expire) VALUES( 'Axe Murderer','Unknown','MyChest', %s,0 ) val=%s;

The hook is sending the following to SQL Server:
INSERT INTO ObjCampaign (player,tag,name,val,expire) VALUES( 'Axe Murderer','Unknown','MyChest', ~s,0 ) val=~s;

No error is being reported in the nwnx_odbc.txt log file.
Nothing is getting entered into the table.

Table is created using this:
CREATE TABLE ObjCampaign ( player varchar(256) NOT NULL, tag varchar(256) NULL DEFAULT NULL, name varchar(256) NOT NULL, val text NULL DEFAULT NULL, expire int NOT NULL DEFAULT 0 );

I'm thinking the %s --> ~s business is not valid syntax on this platform.

Anybody know?
Back to top
View user's profile Send private message Send e-mail
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Aug 12, 2011 11:07    Post subject: Reply with quote

it looks like the hook it replacing the % 'a sql wildcard' with ~, perhaps it thinks you left it in by mistake, and is an unintentional special character?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related 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