はじめに
今の会社に入社してから1週間でできるASP.netっという本を使用して勉強をしました。
実際1週間やったところでメソッドの組み立て方・イベントの挿入方法・DBの接続、本でやったことなんてまったく使えないことばかりでした。
なんやかんや1カ月後に何か作るか!!って話になり、
「これからの業務で使うから、SQLserverを繋げてテーブル定義が一覧で見れるもの作成して!」
ここからはじまりました。
課題として
- 一覧で表示する表にはRepeaterを使用すること
- SQLserverに接続するのに、web.configに設定値を出すこと
- SQLserverの接続を2時間くらいにすること
- ViewのCreate文の一覧が見たい
extra
- ViewのCreate文の一覧をMSSQLと同じ色分けにする
- SQLserverの接続DB・ユーザー名・パスワードをクエリストリングで接続する
- SQLserverで接続値を登録しておく
もっとありましたが大きいところではこのような内容でした。
この記事作成現在でもできていない所はあります。
(色分けは調べたところ難しいみたい)
記録として
今後に使用できる部分も多々あるだろうからパーツで分けて記録していきたい。
外観イメージ
「aaaa,ああああ,1111,iiiiii」をクリックすると「接続情報」に移動して、以下のようになるようにログインを行います。
環境としては
- VisualStadio2015
- MSSSQLserver2015
- C#
- windows10
- .net Framework4.5以上
上記で作成を行いました。
Unquestionably believe that that you stated.
Wow, marvelous blog structure! How lengthy have
We’re a group of volunteers and opening a new scheme in our community. Your website provided us with valuable information to work on. You have done an impressive job and our whole community will be thankful to you.
I was just looking for this information for a while. After 6 hours of continuous Googleing, at last I got it in your web site. I wonder what’s the lack of Google strategy that don’t rank this type of informative web sites in top of the list. Normally the top web sites are full of garbage.
love to write some articles for your blog in exchange for a link back
I have learn a few just right stuff here. Certainly price bookmarking for revisiting. I surprise how so much attempt you set to make any such fantastic informative web site.