[web2py] Re: error ('', 'SQL_INVALID_HANDLE') when DAL is mssq

2014-01-16 Thread Josh Myers
I was also getting this same error and I thank Gianganh for his help in moving me along. Now, using the solution above, instead of getting the SQL_INVALID_HANDLE, I am getting the following: " ('HY000', 'The driver did not supply an error!')" Gianganh, did you also get this error? Or, if you

[web2py] Re: Dealing with Large Numpy Array in Session

2013-11-30 Thread Josh Myers
Thanks for your help...still learning. That makes sense. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscr

[web2py] Dealing with Large Numpy Array in Session

2013-11-29 Thread Josh Myers
Good afternoon, I am new to web and python development, but I have managed until now to get pretty far along into a statistical analysis application without any real problems. Web2py is great. The simplified concept of my app is that Users connect to the local database and pull in data, the a

[web2py] Re: Strange Issue with Executesql

2013-11-29 Thread Josh Myers
@Brian is right, the query is more complicated and it was just a placeholder. When I get back in the office on Monday, I will run some more speed tests. I am not the DBA and the city office where I am working doesn't have access to SQL Server Management Studio. All of that is kept by the IT

[web2py] Re: Strange Issue with Executesql

2013-11-25 Thread Josh Myers
@Brian - The minute I sent you the email the problem returned. I ran the following code: test = db1.executesql('select * from table') print test print len(test) "print test" yields None Exception thrown from line "print len(test)": " object of type 'NoneType' has no len()" Seeing as this

[web2py] Re: Strange Issue with Executesql

2013-11-25 Thread Josh Myers
@Brian - Yeah, I do need to pull in those rows at one time. I thought I had provided a workaround by only pulling a few thousand at a time and then combining later. I just got back in town from being gone for about a week. I come back and now the problem I was having before is no longer

[web2py] Re: Strange Issue with Executesql

2013-11-18 Thread Josh Myers
@Brian - That is a great suggestion and I didn't know about that. I will get it. The table current has about 50k rows and about 25 columns and I wanted to pull in all of them. It creates a list of tuples. In the future, the table might have potentially millions of records, but I would sti

[web2py] Re: Strange Issue with Executesql

2013-11-18 Thread Josh Myers
@Tim - Thanks for the suggstion. I will upgrade to the newest version soon. @Willoughby - Thanks for the reply. I doubt there is a row limit, but I will look into it. @Brian - The queries are more complicated than that, usually. I was just giving an example. I have tried the exact same qu

[web2py] Strange Issue with Executesql

2013-11-15 Thread Josh Myers
Hey all, I am running web2py version 2.4.6 and python 2.7.4. I am using executesql to run raw ms sql queries, but I am having a problem with them consistently yielding results. I am still in test right now as I develop the app and I am running queries on a local database. I do not know if

Re: [web2py] embed image from variable

2013-11-04 Thread Josh Myers
form = SQLFORM.factory(Field('x')).process() >>return locals() >> >> and in index.html() >> >> {{=form}} >> {{if form.accepted:}} >> >> {{pass}} >> >> >> On Wednesday, 30 October 2013 14:55:50 UTC-5, Josh Myers wrote: >>>

Re: [web2py] embed image from variable

2013-10-30 Thread Josh Myers
I have all this working the same way as Massimo suggested with matplotlib, no problems. But, I can't for the life of me figure out how to pass a variable into the controller plot function from the view. This would be so I can, for example, ask the user to choose a variable through a form and t

[web2py] Re: PATCH(?) DAL with MSSQL and windows authentication

2013-10-03 Thread Josh Myers
it needed that DRIVER statement. That was also the same connection string that worked using pyodbc explicitly, so that makes sense I guess. On Thursday, October 3, 2013 4:53:55 AM UTC-4, Niphlod wrote: > > > Il giorno giovedì 3 ottobre 2013 01:20:40 UTC+2, Josh Myers ha scrit

[web2py] Re: PATCH(?) DAL with MSSQL and windows authentication

2013-10-02 Thread Josh Myers
ql-server-native-client-11-0-oledb-provider/ > > basically as long as there isn't a @ in it, the connection string will be > used as it is with pyodbc, while if there is a @ in it, the connection > string is "similar" to the usual user:pass@host/database > > On Wednesday, Oc

[web2py] Re: PATCH(?) DAL with MSSQL and windows authentication

2013-10-02 Thread Josh Myers
Brian and/or Massimo, Did this issue ever get resolved so that the DAL can connect with windows authentication? If so, what is the syntax for the connection string? Thanks. - Josh -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: web2py 2.5.1 is OUT

2013-06-17 Thread Josh Myers
Nice! Thanks Massimo! I'm excited about the Conditional Fields! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For

[web2py] Re: Conditional Fields in Custom Forms

2013-05-29 Thread Josh Myers
Thank you, everyone. You helped me answer #1 and I am appreciative. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. F

[web2py] Conditional Fields in Custom Forms

2013-05-03 Thread Josh Myers
Hey Group, I am new to web2py and I am working to create a custom form from the SQLForm.Factory with a conditional field built in. I have two questions. 1. Using a conditional field based on the checkbox, I can get it to work if I don't use the custom form, but I can't get it to work with t