Re: How to log a connection from the server side
Thanks, HanbinTurns out I used the wrong stored procedure.When I used sp_login_environment everything started working.Thanks for your help.
View ArticleRe: How to log a connection from the server side
Just to make sure that you understand that sp_login_environment should not be modified. Rather, you need to set the LOGIN_PROCEDURE option to a user defined procedure that implements your login logic...
View ArticleUnable to open an entity framework model in LinqSample
Hi I'm trying to open SampleModel.edmx that comes with LinqSample project, which in turns comes as a sample with SQLA 16. I receive the following message: "Unable to cast object of type...
View ArticleRe: Unable to open an entity framework model in LinqSample
I have tested with Visual Studio Professional 2013 update 5 and SQL Anywhere 16 and I can open LinqSample SampleModel.edmx on Windows 8.1.Did you have to convert the project to open it in VS 2013? Have...
View ArticleRe: Unable to open an entity framework model in LinqSample
Hi Mirco After re-installation of both Visual Studio and SQL Anywhere, I was able to open the model and run LinqSample application. However, when I tried to update the model from the database, I...
View ArticleRe: Unable to open an entity framework model in LinqSample
I would start making sure that you are running SQL Anywhere 16.0.0.1993 or above. EF 6 support has been introduced since then. Then open the readme_EBF.HTML file that is in C:\Program Files\SQL...
View ArticleOData Offline
Hi, we are trying to get OData work offline. It works fine online, but we get exception on oDataStore.Open. It stops with "Unknown network error occured" or in Windows "Exception calling native with...
View ArticleRe: How to log a connection from the server side
A further approach would be to use an event of system type CONNECT for logging purposes. Note that events run on their own connection so they cannot "impersonate" the newly connected user but might be...
View ArticleRe: Json in SQL Anywhere16
Hello Anal, I believe you have opened a support incident for this question and I have been working directly with you. I have replied via the incident on how to write query to convert table to complex...
View ArticleCount total and missing in one query
I am able to use COUNT(*) AS CNT_TOT, SUM(VAR1="") AS CNT1_MISSING, SUM(VAR2="") AS CNT2_MISSING, etc; in many other SQL tools, such as Microsoft SQL, SAS SQL. How can I do this as a pass through SQL...
View ArticleRe: Json in SQL Anywhere16
Yes Chang... Thanks for the help and query... Below is the whole script starting from creating Json with inner Array and Parsing back to normal table....
View ArticleRe: Count total and missing in one query
Hello Z X, I haven't tried all the possibilities, but if SUM(VAR1=""), SUM(VAR2="") are trying to find rows that have column VAR1 empty string and column VAR2 empty string, following SQL query seems...
View ArticleRe: Count total and missing in one query
I am able to use COUNT(*) AS CNT_TOT, SUM(VAR1="") AS CNT1_MISSING,SUM(VAR2="") AS CNT2_MISSING, etc; in many other SQL tools,such as Microsoft SQL No, you're not, at least not as you have shown the...
View ArticleMultiple sub SQL not working
Hello, I am able to run the 1st pass through SQL select count(*) as cnt1, (select count(*) as cnt2 from table1 where var1 is null)from table1However, the 2nd SQL failed with "undefined index"...
View ArticleRe: Count total and missing in one query
Thanks to all. Here are my test results:SELECT COUNT(*) as CNT_TOT, (SELECT count(VAR1) from table_name where VAR1 = '""') as CNT1_MISSINGThis one works.SELECT COUNT(*) as CNT_TOT,...
View ArticleRe: Count total and missing in one query
For second option, you have syntax error for IF Statements.Try following : SELECT COUNT(*) as CNT_TOT, SUM(IF var1 = '""' THEN 1 ELSE 0 ENDIF) AS CNT1_MISSING Empty string and NULL are different data...
View ArticleRe: Count total and missing in one query
HANA SQL doesn't recognize "ENDIF" or "END IF".
View Article