---
# System prepended metadata

title: c#-4
tags: [資安筆記-c#]

---

---
title: c#-4
tags: 資安筆記-c#
---
連線的方法:
SqlConnection
SqlConnection conn = new SqlConnection();
OracleConnection conn = new OracleConnection();
![](https://i.imgur.com/DwZNsX9.png)

---
先確認是否可以連資料庫
portal.azure.com
![](https://i.imgur.com/4W6IJtS.png)
要怎麼看到自己打出來的表格內容..再資料庫要按?
老師我找到了 右鍵的編輯

![](https://i.imgur.com/MxqpBU1.png)
![](https://i.imgur.com/nhmucvh.png)
----
','') DELETE FROM Customers --
樓上是駭客會說的語法=刪掉顧客的語法
','') UPDATE Customers SET Photo='hacker' --
SQL Injection

---
註解掉CTRL+K+C
CMD顯示 fwd-i-search: _ 要怎麼弄掉
=程式碼沒寫好+要存檔

---
有時