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 
 
SQLExecDirect don't work ?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
cieciwa



Joined: 09 Aug 2005
Posts: 33
Location: Cracov, Poland

PostPosted: Wed Dec 28, 2005 10:20    Post subject: SQLExecDirect don't work ? Reply with quote

Hi, I try to make my own module, but is something strange which I can't understand ...

OnModuleLoad is:
Code:

#include "__default"
#include "aps_include"

void main()
{
    // initialize SQL
    SQLInit();

    // connected to database ?
    SQLExecDirect("select * from world_time;");
    if (SQLFetch() != SQL_SUCCESS)
    if (DEBUG)
        PrintString("[DEBUG] Not connected.");


table "world_time is created.
no errors when server start,
but in nwn logs are:

[Wed Dec 28 09:07:22] Loading Module: EXS00
[DEBUG] Not connected.

what's wrong ?
I don't understund this ...
Back to top
View user's profile Send private message Send e-mail
dumbo



Joined: 21 Aug 2005
Posts: 21

PostPosted: Wed Dec 28, 2005 12:01    Post subject: Reply with quote

set LogLevel=2 in [ODBC2] section(nwnx.ini)
post nwnx_odbc.txt here
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion 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