View Active Threads
View Today's Posts
Home
Forums
View New Posts
View Today's Posts
My Discussions
Unanswered Posts
Unread Posts
Active Threads
Mark all forums read
Staff List
Member List
Help
Calendar
Search
Statistics
Interpreter
IRC
Sample code to connect DB using parameter values
Python Forum
Python Coding
General Coding Help
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
Thread Modes
Sample code to connect DB using parameter values
nithin
Unladen Swallow
Posts:
2
Threads:
1
Joined:
Oct 2018
Reputation:
0
#1
Oct-14-2018, 09:42 PM
Need a sample program to connect SQL SERVER DB using parameter file
1) looking for sample code for connecting to DB using parameter file
Reply
Find
Reply
Larz60+
aetate et sapientia
Posts:
11,875
Threads:
474
Joined:
Sep 2016
Reputation:
452
#2
Oct-14-2018, 10:45 PM
which DBMS?
Reply
Find
Reply
nithin
Unladen Swallow
Posts:
2
Threads:
1
Joined:
Oct 2018
Reputation:
0
#3
Oct-15-2018, 01:44 AM
(This post was last modified: Oct-15-2018, 01:44 AM by
nithin
.)
SQL SERVER, Sorry for late response
These are the parameters i want to call from a file into the program.
sourceDBDriver
sourceDBBserver
sourceDatabase
userid
password
and i am connecting this way
connect_String = 'Driver={%s}.....................
conn = pyodbc.connect(connect_string)
Reply
Find
Reply
Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
[ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter
gdbengo
3
11,196
Dec-26-2022, 08:48 AM
Last Post
:
ibreeden
autocomplete working code sample not working...
aviper4u
0
1,655
Oct-24-2020, 03:04 AM
Last Post
:
aviper4u
Syntax error in python code sample
ErnestTBass
5
3,147
Aug-14-2020, 07:14 PM
Last Post
:
deanhystad
Hi Guys, please help me to write SAS macro parameter equivalent code in Python
Manohar9589
2
2,631
Jun-14-2020, 05:07 PM
Last Post
:
Larz60+
How to pass multiple values from one sample to nc variable?
Baloch
0
1,877
Jun-01-2020, 09:27 PM
Last Post
:
Baloch
Can anyone Please help on fixing this python code to connect and save things on sqlit
Roscoes
2
2,930
Mar-06-2018, 04:48 AM
Last Post
:
Roscoes
Unable to connect oracle database using python code
mayuresh
2
17,127
Jan-27-2018, 11:57 AM
Last Post
:
mayuresh
SoX Sound Exchange sample code to Rec & Play audio file
Fran_3
3
6,590
Sep-11-2017, 09:13 AM
Last Post
:
Larz60+
Users browsing this thread: 1 Guest(s)
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
Python Coding
-- General Coding Help
-- Data Science
-- Homework
-- GUI
-- Game Development
-- Networking
-- Web Scraping & Web Development
General
-- News and Discussions
-- Tutorials
---- Tutorial Requests and Submissions
---- Python Installation and Execution
---- Fundamentals
---- Common pitfalls and what to do
---- Web Scraping
---- Web Tutorials
---- GUI tutorials
---- Game Tutorials
---- Networking Tutorials
-- Code sharing
-- Code Review
-- Jobs
Forum & Off Topic
-- Board
---- Weekly Top Picks
-- Bar
User Panel
Messages
Log Out
My Profile
Pay your profile a visit
User Control Panel
Do some changes on your profile
My Messages
View private messages
unread
Avatar
Change avatar
Signature
Change signature
Announcements
Announcement #1
8/1/2020
Announcement #2
8/2/2020
Announcement #3
8/6/2020
Login to Python Forum
Enter your details to login to your account:
Remember me
Lost Password?
Login
Don't have an account yet?
Sign Up!
Linear Mode
Threaded Mode