Pandoraの開発日記

~日々の開発の中で悩んでいる問題や簡単なTips~

目次

Blog 利用状況

書庫

日記カテゴリ

コミュニテイサイト

過去日記

SQLServer管理オブジェクト(SMO)の探索結果 Part01

SMOプログラミングで必要最低限な参照設定は、下記の6つのコンポーネントである。

1.Microsoft.SqlServer.ConnectionInfo
  (C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SqlServer.ConnectionInfo.dll)

2.Microsoft.SqlServer.Smo
  (C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SqlServer.Smo.dll)

3.Microsoft.SqlServer.SmoEnum
  (C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SqlServer.SmoEnum.dll)

4.Microsoft.SqlServer.SqlEnum
  (C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SqlServer.SqlEnum.dll)

5.System
  (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll)

6.System.Data
  (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll)

この6つがあればデータベースサーバーに接続することが可能になります。

SQL-DMOに比べればすごく作りやすくなっていると感じています。(^^)v

SQL Server のインスタンスである Server オブジェクトが作成できれば、基本的な情報は全てその Server

オブジェクトを介して取得することができます。

Windows認証であれば、 Server オブジェクトの作成は凄く簡単で下記のコードでOKです。

Server server = new Server(サーバー名)

SQL認証であれば、ログイン情報の設定が必要ですが、そんなに難しくないです。

   ServerConnection connection = new ServerConnection(サーバー名);
   connection.LoginSecure = false;
   connection.Login = ログイン名;
   connection.Password = パスワード;
   Server server = new Server(connection);

 注意としては、connection.LoginSecure = false; の設定をログイン情報より先に設定しなければ

 ならないことです。

 明日は、データベース作成を探索します。

 

投稿日時 : 2006年10月26日 15:34

コメントを追加

# SQLServer管理オブジェクト(SMO) 2006/10/27 7:08 ひろえむの日々是勉強

SQLServer管理オブジェクト(SMO)

# データベースからの変更通知(SqlDependency)の調査結果 Part01 2008/12/10 15:23 Pandoraの開発日記

データベースからの変更通知(SqlDependency)の調査結果 Part01

# Wow, amazing blog format! How lengthy have you ever been running a blog for? you make blogging glance easy. The full glance of your website is great, as neatly as the content material! 2019/06/02 18:31 Wow, amazing blog format! How lengthy have you eve

Wow, amazing blog format! How lengthy have you ever been running a blog
for? you make blogging glance easy. The full glance of your website is great, as neatly as the content material!

# What's up, just wanted to say, I liked this post. It was funny. Keep on posting! 2019/07/30 19:47 What's up, just wanted to say, I liked this post.

What's up, just wanted to say, I liked this post. It was funny.
Keep on posting!

# What's up, just wanted to say, I liked this post. It was funny. Keep on posting! 2019/07/30 19:48 What's up, just wanted to say, I liked this post.

What's up, just wanted to say, I liked this post. It was funny.
Keep on posting!

# What's up, just wanted to say, I liked this post. It was funny. Keep on posting! 2019/07/30 19:49 What's up, just wanted to say, I liked this post.

What's up, just wanted to say, I liked this post. It was funny.
Keep on posting!

# What's up, just wanted to say, I liked this post. It was funny. Keep on posting! 2019/07/30 19:50 What's up, just wanted to say, I liked this post.

What's up, just wanted to say, I liked this post. It was funny.
Keep on posting!

# That is really attention-grabbing, You're a very skilled blogger. I've joined your feed and stay up for seeking more of your excellent post. Also, I've shared your website in my social networks 2019/08/19 10:46 That is really attention-grabbing, You're a very s

That is really attention-grabbing, You're a very skilled
blogger. I've joined your feed and stay up for seeking more of your excellent post.
Also, I've shared your website in my social networks

# I know this web site gives quality based content and extra stuff, is there any other web site which provides these information in quality? 2019/09/04 20:56 I know this web site gives quality based content a

I know this web site gives quality based content and extra
stuff, is there any other web site which provides these information in quality?

# It's a pity you don't have a donate button! I'd most certainly donate to this outstanding blog! I guess for now i'll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with 2019/09/05 13:25 It's a pity you don't have a donate button! I'd mo

It's a pity you don't have a donate button! I'd most certainly donate to this outstanding blog!
I guess for now i'll settle for book-marking and adding your RSS
feed to my Google account. I look forward to fresh updates and will
talk about this site with my Facebook group. Talk soon!

# uMeaOiEQshZWTa 2021/07/03 1:31 https://waterdamagerepairs.godaddysites.com/

Very good article. I definitely appreciate this website. Thanks!

# LfjiOlHwFljm 2021/07/03 4:30 https://www.blogger.com/profile/060647091882378654

Really informative blog.Really looking forward to read more. Keep writing.

# Learn about the side effects, dosages, and interactions. Get warning information here.
https://edonlinefast.com
What side effects can this medication cause? drug information and news for professionals and consumers. 2023/02/18 0:59 EdOnline

Learn about the side effects, dosages, and interactions. Get warning information here.
https://edonlinefast.com
What side effects can this medication cause? drug information and news for professionals and consumers.

# doxycycline 100mg - https://doxycyclinesale.pro/# 2023/04/22 4:18 Doxycycline

doxycycline 100mg - https://doxycyclinesale.pro/#

# 5 mg prednisone tablets - https://prednisonesale.pro/# 2023/04/22 15:24 Prednisone

5 mg prednisone tablets - https://prednisonesale.pro/#

# buy cytotec in usa - https://cytotecsale.pro/# 2023/04/29 4:54 Cytotec

buy cytotec in usa - https://cytotecsale.pro/#

# best ed medication https://edpill.pro/# - male ed pills 2023/06/27 14:46 EdPills

best ed medication https://edpill.pro/# - male ed pills

# paxlovid price https://paxlovid.life/# paxlovid covid 2023/07/26 6:31 Paxlovid

paxlovid price https://paxlovid.life/# paxlovid covid

# cheapest ed pills https://edpills.ink/# - mens erection pills 2023/07/27 1:03 EdPills

cheapest ed pills https://edpills.ink/# - mens erection pills

# ï»¿cytotec pills online https://cytotec.ink/# - cytotec pills online 2023/07/27 1:28 PillsFree

cytotec pills online https://cytotec.ink/# - cytotec pills online

# meet online service 2023/08/09 14:21 WayneGurry

fdating 100 free dating site free: https://datingtopreview.com/# - free for online chatting with singles

# п»їcytotec pills online 2023/08/25 10:27 Georgejep

http://misoprostol.guru/# buy cytotec in usa

# farmaci senza ricetta elenco 2023/09/24 20:40 Archieonelf

https://farmaciabarata.pro/# farmacias baratas online envГ­o gratis

# comprare farmaci online con ricetta 2023/09/25 20:54 Archieonelf

http://onlineapotheke.tech/# online apotheke preisvergleich

# internet apotheke 2023/09/26 12:48 Williamreomo

http://onlineapotheke.tech/# versandapotheke
versandapotheke deutschland

# gГјnstige online apotheke 2023/09/26 23:25 Williamreomo

https://onlineapotheke.tech/# gГ?nstige online apotheke
versandapotheke deutschland

# online apotheke gГјnstig 2023/09/27 1:13 Williamreomo

http://onlineapotheke.tech/# online apotheke deutschland
versandapotheke deutschland

# п»їonline apotheke 2023/09/27 7:59 Williamreomo

https://onlineapotheke.tech/# gГ?nstige online apotheke
versandapotheke

# farmacia online miglior prezzo 2023/09/27 17:25 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# acquistare farmaci senza ricetta 2023/09/27 22:33 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# farmacie online sicure 2023/09/29 3:41 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# buy ed pills online 2023/10/08 11:56 BobbyAtobe

Their compounding services are impeccable. http://edpillsotc.store/# new treatments for ed

# canadian pharamcy 2023/10/16 12:52 Dannyhealm

I trust them with all my medication needs. https://mexicanpharmonline.shop/# pharmacies in mexico that ship to usa

# rx meds online 2023/10/16 17:24 Dannyhealm

Professional, courteous, and attentive в?“ every time. https://mexicanpharmonline.com/# mexico drug stores pharmacies

# no perscription required 2023/10/16 19:04 Dannyhealm

They handle all the insurance paperwork seamlessly. https://mexicanpharmonline.com/# reputable mexican pharmacies online

# canadian pharma 2023/10/16 23:15 Dannyhealm

I've sourced rare medications thanks to their global network. https://mexicanpharmonline.shop/# reputable mexican pharmacies online

# canadian certified pharmacies 2023/10/17 8:55 Dannyhealm

Their international health forums provide crucial insights. http://mexicanpharmonline.com/# pharmacies in mexico that ship to usa

# canadian oharmacy 2023/10/17 19:40 Dannyhealm

Their online prescription system is so efficient. https://mexicanpharmonline.com/# mexican mail order pharmacies

# canadian mail order medications 2023/10/17 20:47 Dannyhealm

I'm always impressed with their efficient system. http://mexicanpharmonline.shop/# pharmacies in mexico that ship to usa

# canadian pharmacies that ship to the us 2023/10/18 12:20 Dannyhealm

Consistent service, irrespective of borders. http://mexicanpharmonline.com/# reputable mexican pharmacies online

# canadian mail order prescriptions 2023/10/19 0:30 Dannyhealm

The team always ensures that I understand my medication fully. https://mexicanpharmonline.shop/# mexican rx online

# ï»¿paxlovid https://paxlovid.bid/ paxlovid generic 2023/10/25 23:09 Paxlovid

paxlovid https://paxlovid.bid/ paxlovid generic

# non prescription erection pills 2023/11/22 15:56 WilliamApomb

https://tadalafil.trade/# tadalafil 2.5 mg tablets india

# doxycycline prices https://doxycycline.forum/ doxycycline 100mg dogs 2023/11/25 13:24 Doxycycline

doxycycline prices https://doxycycline.forum/ doxycycline 100mg dogs

# paxlovid buy 2023/12/01 5:27 Mathewhip

Paxlovid over the counter https://paxlovid.club/# paxlovid

# canada meds 2023/12/02 3:52 MichaelBum

http://claritin.icu/# where to get ventolin cheap

# migliori farmacie online 2023 https://farmaciait.pro/ acquistare farmaci senza ricetta 2023/12/04 10:20 Farmacia

migliori farmacie online 2023 https://farmaciait.pro/ acquistare farmaci senza ricetta

# farmacia online barata 2023/12/07 21:35 RonnieCag

https://farmacia.best/# farmacia barata

# farmacia online madrid 2023/12/08 6:53 RonnieCag

http://farmacia.best/# farmacias online seguras en españa

# farmacia online 24 horas 2023/12/08 9:40 RonnieCag

http://farmacia.best/# farmacia online

# farmacias online seguras en españa 2023/12/08 12:29 RonnieCag

http://sildenafilo.store/# sildenafil 100mg genérico

# ï»¿farmacia online 2023/12/10 5:51 RonnieCag

https://farmacia.best/# farmacias online baratas

# farmacias baratas online envío gratis 2023/12/10 9:08 RonnieCag

https://sildenafilo.store/# sildenafilo 100mg precio farmacia

# farmacia envíos internacionales 2023/12/10 18:19 RonnieCag

https://farmacia.best/# farmacia envíos internacionales

# farmacia envíos internacionales 2023/12/11 2:05 RonnieCag

http://farmacia.best/# farmacia online envío gratis

# ï»¿farmacia online 2023/12/11 11:26 RonnieCag

https://farmacia.best/# farmacias online seguras

# farmacias online seguras en españa 2023/12/11 14:12 RonnieCag

https://vardenafilo.icu/# farmacia 24h

# ï»¿farmacia online 2023/12/12 0:15 RonnieCag

http://farmacia.best/# farmacia envíos internacionales

# farmacias online seguras en españa 2023/12/12 23:03 RonnieCag

https://farmacia.best/# farmacia online 24 horas

# farmacias online seguras en españa 2023/12/13 12:34 RonnieCag

https://farmacia.best/# farmacia online 24 horas

# pharmacie ouverte 2023/12/14 20:08 Larryedump

http://pharmacieenligne.guru/# Acheter médicaments sans ordonnance sur internet

# acheter medicament a l etranger sans ordonnance 2023/12/15 0:07 Larryedump

https://pharmacieenligne.guru/# Pharmacie en ligne France

# Pharmacies en ligne certifiées 2023/12/15 7:34 Larryedump

https://pharmacieenligne.guru/# pharmacie ouverte

# Sildenafil Preis 2023/12/18 8:02 StevenNuant

https://apotheke.company/# online apotheke gГ?nstig

# pragmatic play gates of olympus - https://gatesofolympus.auction/ gates of olympus demo türkçe 2024/03/27 20:45 Olympic

pragmatic play gates of olympus - https://gatesofolympus.auction/ gates of olympus demo türkçe

# Misoprostol 200 mg buy online https://cytotec.club/ Misoprostol 200 mg buy online 2024/04/28 2:04 Cytotec

Misoprostol 200 mg buy online https://cytotec.club/ Misoprostol 200 mg buy online

# prednisone 20 mg purchase 2024/08/06 17:11 Stevenput

prednisone otc price http://prednisonebestprice.pro/# average cost of prednisone 20 mg
prednisone 50 mg buy

# lasix online 2024/08/22 4:26 DanielEruts

buy cytotec over the counter http://cytotec.pro/# Abortion pills online
lasix generic

# guvenilir slot siteleri 2024 2024/09/04 2:38 Kevincrild

http://sweetbonanza.network/# sweet bonanza yasal site

# вавада 2024/09/04 17:32 Warrenpseut

https://vavada.auction/# казино вавада

# vavada казино 2024/09/06 14:28 Warrenpseut

http://vavada.auction/# vavada зеркало

# gate of olympus oyna 2024/09/18 21:25 GeorgeMum

http://starzbet.shop/# starzbet guncel giris

# gates of olympus turkce 2024/09/19 12:39 GeorgeMum

http://betine.online/# betine giris

# gates of olympus demo oyna 2024/09/20 20:59 GeorgeMum

http://starzbet.shop/# starzbet giris

# farmacia online envГ­o gratis 2024/09/21 13:26 FloydUnorm

http://tadalafilo.bid/# farmacia online barcelona
farmacia barata

# sildenafilo cinfa 25 mg precio 2024/09/21 17:38 DennisevElp

https://farmaciaeu.com/# farmacias online seguras

# comprar sildenafilo cinfa 100 mg espaГ±a 2024/09/22 3:55 DennisevElp

http://tadalafilo.bid/# farmacia online envГ­o gratis

# sildenafilo cinfa 100 mg precio farmacia 2024/09/23 9:42 DennisevElp

http://tadalafilo.bid/# farmacias online seguras

# farmacia online envГ­o gratis 2024/09/23 11:55 FloydUnorm

https://sildenafilo.men/# se puede comprar sildenafil sin receta
farmacia online madrid

# ventolin cost 2024/09/29 3:45 Sergiodab

https://prednisolone.pro/# steroids prednisone for sale

# acheter mГ©dicament en ligne sans ordonnance 2024/10/04 4:34 StephenWadly

https://clssansordonnance.icu/# Pharmacie sans ordonnance

タイトル
名前
URL
コメント