Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Sql Session

$
0
0
Re: Sql Session
Web Connection
Re: Sql Session
Mar. 27, 2013
08:34 am
3QX0IDBMEShow this entire thread in new window
Gratar Image based on email address
From:MatNat
To:Rick Strahl
Good morning Rick,
the connection and query on wwsession table work properly.
I'm using windows 8 and sql server 2012, is perhaps have some compatibility problems?

thanks
Matias


YOu should make sure your SQL connection is working and you can access the wwSession table.

Something along the lines of:

DO wconnect loSql = CREATE("wwSQL") ? loSql.Connect("yourconnectionstringhere") ? loSql.cErrorMsg ? loSql.Execute("Select * from wwSession")Browse

+++ Rick ---


Hi,
I'm trying to save session data in sql server table.
I have already enabled variables in wconnect.h file as indicated in the documentation, created tables through your wizard, and set the connection string in my ini file.
Now I'm initializing the session with the command:
Process.InitSession("Test")

when I try to save a variable in session, the command:
Session.SetSessionVar("Matias","1")

return an error because the Session.oData is not an object:
FUNCTION SetSessionVarLPARAMETERS lcVarName, lcValueLOCAL lctext, lcValue, lcOldAlias, loData lcVarName = lower(lcVarname) loData = THIS.oDataIFEMPTY(lcValue) lcValue = ""ENDIF*** New Id value lcText="<"+lcVarName+">"+TRANS(lcValue)+"</" + lcVarName + ">"+CHR(13)IFATC("<"+lcVarName+">",loData.vars) > 0 **** .... ....

This.oData is null and I can not understand if I forget something or if I'm wrong to initialize the session. Does anyone know how to help me or can send some examples?

thank you very much
Matias






Viewing all articles
Browse latest Browse all 10393

Trending Articles