제목 : 05.CREATE명령실행하기(DB생성).aspx
<%@ Import NameSpace="System.Data" %>
<%@ Import NameSpace="System.Data.SqlClient" %>
<%
Dim objConnection As SqlConnection
Dim objCommand As SqlCommand
objConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=master")
objConnection.Open()
objCommand = New SqlCommand("Create Database ADOdotNET", objConnection)
objCommand.ExecuteNonQuery()
objConnection.Close()
%>
<center>ADOdotNET데이터베이스가 생성되었습니다.</center>