I am developing an application for a client that will have data in a MS
SQL Server database. Costs have to be kept down so I have to develop
using the free version of any and all tools I may need. I have the SQL
Server installed, running on Windows XP. I was going to develop the GUI
using wxPython. My only obstacle so far is having Python (wxPython or
just plain Python) connect to the database. Is there a way to use
Python (installed on the same XP server) to connect to SQL Server? I
had read somewhere that Sybase and SQL Server have the same 'roots' and
that using a Sybase driver, can sometimes work when one wants to connect
to a SQL Server instance.
Any ideas? 4 2392
> Is there a way to use Python (installed on the same XP server) to connect to SQL Server? I had read somewhere that Sybase and SQL Server have the same 'roots' and that using a Sybase driver, can sometimes work when one wants to connect to a SQL Server instance.
Any ideas?
Steve,
I program in Python against MS SQL Server fairly often, using Mark
Hammond's Win32 extensions for Python.
( http://starship.python.net/crew/mham...Downloads.html) With its
help, you can easily wrap ADO COM objects & access SQL Server. If
you're already familiar with ADO, it's a snap. (Even if you're not, ADO
is a pretty straightforward interface.)
Brian wrote: Is there a way to use Python (installed on the same XP server) to connect to SQL Server? I had read somewhere that Sybase and SQL Server have the same 'roots' and that using a Sybase driver, can sometimes work when one wants to connect to a SQL Server instance.
I program in Python against MS SQL Server fairly often, using Mark Hammond's Win32 extensions for Python. (http://starship.python.net/crew/mham...Downloads.html) With its help, you can easily wrap ADO COM objects & access SQL Server. If you're already familiar with ADO, it's a snap. (Even if you're not, ADO is a pretty straightforward interface.)
That's have already been done. ;-)
See adodbapi.sf.net .
Max Ischenko wrote: you can easily wrap ADO COM objects & access SQL Server. If you're already familiar with ADO, it's a snap. (Even if you're not, ADO is a pretty straightforward interface.)
That's have already been done. ;-)
See adodbapi.sf.net .
Thanks Max, I didn't realize this was available. I'll give it a try on
my next project.
Steve <sp***@pennswoo ds.net> wrote in message news:<ma******* *************** *************** @python.org>... I am developing an application for a client that will have data in a MS SQL Server database. Costs have to be kept down so I have to develop using the free version of any and all tools I may need. I have the SQL Server installed, running on Windows XP. I was going to develop the GUI using wxPython. My only obstacle so far is having Python (wxPython or just plain Python) connect to the database. Is there a way to use Python (installed on the same XP server) to connect to SQL Server? I had read somewhere that Sybase and SQL Server have the same 'roots' and that using a Sybase driver, can sometimes work when one wants to connect to a SQL Server instance.
Any ideas?
mssql python db api http://pymssql.sf.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jane Austine |
last post by:
As far as I know python's threading module models after Java's.
However, I can't find something equivalent to Java's interrupt and
isInterrupted methods, along with InterruptedException.
"somethread.interrupt()" will wake somethread up when it's in
sleeping/waiting state.
Is there any way of doing this with python's thread? I suppose thread
interrupt is a very primitive functionality for stopping a blocked
thread.
|
by: francisl |
last post by:
We have to build some script were I work to make a dynamic server inventory.
But, the project team, a windows crew, start it all in vbscript and on
mssql. Note, due to political reason, we can not use mysql or anyother
one that are not *authorize*, it's oracle or mssql. Now we have to make
it work also with our sun and HP unix server(plus one Linux).
So I propose to use python, and after they see my litle python/wxwindow
program, that...
|
by: Andrew Dalke |
last post by:
Is there an author index for the new version of the
Python cookbook? As a contributor I got my comp version
delivered today and my ego wanted some gratification.
I couldn't find my entries.
Andrew
dalke@dalkescientific.com
|
by: Mike Moum |
last post by:
Hi,
I'm a civil engineer who also doubles as chief programmer for technical
applications at my company. Most of our software is written in Visual
Basic because our VP in charge of I.T. likes to have "consistency", and
at the moment we're a Microsoft shop. He has assigned me the task of
developing an new application, the exact nature of which is not
important for my question. I told him that, in my opinion, that Visual
Basic was not the...
|
by: martijn |
last post by:
H!
I'm using a windows machine.
And a FreeBSD server where I run my python scripts.
I'm working/making my python scripts in a windows OS with putty now.
But I really want the python text colors and tab spacing like the
python windows IDE but the problem is that I can't find a good program.
Thanks
| |
by: Gary Kshepitzki |
last post by:
Hello
I am trying to send an event from a Python COM server to a VB (or VB.NET)
COM client.
I am a newbie both in VB and in python.
Can anyone give me a simple (but complete) code example both of the Python
server side and the VB client side for raising a single event.
Any answer would be highly appreciated.
Regards
Gary
|
by: diffuser78 |
last post by:
I want to write a python program and call OS specific commands in it.
So basically, instead of typing in on the command line argument I want
to have it in a python program and let it do the action.
for example. in my program I would want to call the ssh feature like
one does on the command line
ssh Admin@192.168.2.10 .....etc
How can I do this easily ?
|
by: Kurt B. Kaiser |
last post by:
Patch / Bug Summary
___________________
Patches : 385 open (+21) / 3790 closed (+21) / 4175 total (+42)
Bugs : 1029 open (+43) / 6744 closed (+43) / 7773 total (+86)
RFE : 262 open ( +4) / 291 closed ( +4) / 553 total ( +8)
New / Reopened Patches
______________________
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |