On Wed, Oct 17, 2012 at 10:34 AM, Markus Christen <markuschriste...@gmail.com> wrote: > Hi all > I have to make a WebPage with Django. It must be possible to connect from > the page to the mssql database. i have an odbc program know atm, and this > works... > ----- > import pyodbc > > cnxn = pyodbc.connect('DRIVER={SQL Server}; > SERVER=MAURITIUS;DATABASE=baan5c;UID=portal;PWD=P0rtalReader') > cursor = cnxn.cursor() > > cursor.execute("SELECT x.t_name, y.t_mail FROM tttaad200000 as x, > tttcmf200000 as y WHERE (x.t_name = y.t_name) AND (x.t_user = 'niedereh')") > row = cursor.fetchall() > if row: > print row > ----- > How i have to make the page, that i can change UID, PWD and the filter with > a textfield and how can i make the field for the data output from server? > > I know now only how to draw up the page thx > http://www.djangobook.com/en/2.0/index.html i worked chapter 1-3 but i have > not more time... :( > > i hope you can help me... > greeze Markus >
Have you read or followed any of the guides on setting up mssql, django and odbc that can be found by googling for "django odbc mssql"? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.