Professional IronPython


Binn;%PATH% and press Enter at the command line. Creating the database Support module



Download 20,35 Mb.
Pdf ko'rish
bet390/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   386   387   388   389   390   391   392   393   ...   453
Binn;%PATH% and press Enter at the command line.
Creating the database Support module
Creating a database support module is a multi-step process. At a minimum, you must first create a 
connection to the database and then work with that connection using code. The example that fol-
lows isn’t very complex. All that this example will do is retrieve some information from the database 
in the interest of keeping things simple. Even so, the basics shown in the example provide enough 
information for you to start creating database extensions of your own.
Creating a Connection to the Database
The first step in working with the Northwind database is to create a connection to it. The following 
steps describe how to perform this task.
1.
Right-click on the Data Connections entry in Server Explorer and choose Add Connection from 
the context menu. You may see the Choose Data Source dialog box shown in Figure 17-17. If 
not, you’ll see the Add Connection dialog box shown in Figure 17-18 and will need to proceed 
to Step 3.
548592c17.indd 379
2/24/10 12:49:38 PM
www.finebook.ir


380

CHAPTER 17
ExtEnding ironPython Using VisUal Basic.nEt
 2.
Highlight the Microsoft SQL Server 
entry. Select the .NET Framework Data 
Provider for SQL Server entry in the 
Data Provider field. Click Continue. 
You’ll see the Add Connection dialog 
box shown in Figure 17-18.
3.
Select or type the server name in the 
Server Name field. You can type a 
period (.) for the default server. The
Add Connection dialog box automati-
cally enables the Select or Enter
a Database Name field.
4.
Select the Northwind database in the Select or Enter a Database Name field.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   386   387   388   389   390   391   392   393   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish