I think the newer 
extract_pgsql_models.py<http://code.google.com/p/web2py/source/browse/scripts/extract_pgsql_models.py>might
 be a little better, and it can be tweaked to work with other db's. 
Note, if you have defined the models already in one app and simply want to 
access them from a different app, see 
http://web2py.com/books/default/chapter/29/6#Using-DAL-without-define-tables
.

Anthony

On Sunday, August 12, 2012 2:46:32 PM UTC-4, rochacbruno wrote:
>
> That feature exists only for Mysql and Postgres under 
> scripts/extract_mysql_models.py
>
> You can try to rewrite this for SQLserver, or you can use 
> db.executesql("RAW SQL")
>
>  *Bruno Cezar Rocha** - @rochacbruno*
> rocha...@gmail.com <javascript:> | Mobile: +55 (11) 99210-8821
> www.CursoDePython.com.br | www.rochacbruno.com.br
> Blog: web2py routes <https://rochacbruno.snipt.net/web2py-routes/>
>   Get a signature like this. 
> <http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18>
>  Click 
> here.<http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18>
>    
>
>
>
> On Sun, Aug 12, 2012 at 3:41 PM, Hassan Alnatour <
> haln...@gardeniatelco.com <javascript:>> wrote:
>
>> Dear ALL ,
>>
>> I have a database that is running under Microsoft SQL server ,  i want to 
>> connect to that database and use its tables , but i dont want to define any 
>> tables in my db.py , how can i do that ?
>>
>> Best Regards,
>>
>> -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to