|
|
|
|
俵ÀÌ / 2000-04-27 / ¿ÀÈÄ 7:19:01 / 203.255.3.190
Á¶È¸¼ö : 130
|
[Áú¹®] Å×À̺í Áߺ¹°Ë»ç..´Â..yl |
> ¾È³çÇϼ¼¿ä, À̽ÂÀÍÀÔ´Ï´Ù.
>
> ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µË´Ï´Ù.
> ¹°·Ð Á¤»óÀûÀÎ ¹æ¹ýÀÌ ¾Æ´Ï±â¿¡ 俵´Ô²²¼ ¾ð±ÞÀ» ÇÏÁö ¾ÊÀ¸½Å °Í °°Àºµ¥¿ä. ¿ö³« ²Ç¼ö¸¦ ÁÁ¾ÆÇÏ´Â ÀúÀ̱⿡... -,.-
>
> <%
> Set DBConn = Server.CreateObject("ADODB.Connection")
> DBConn.Open(Application("CONNECTION_STRING"))
>
> 'Áߺ¹µÈ Å×À̺íÀ϶§´Â ¿¡·¯ ¸Þ¼¼Áö¸¦ »Ñ·ÁÁØ´Ù.
> On Error Resume Next
> DBConn.Execute "CREATE TABLE DuplicatedTables (Num Counter)"
>
> If Err.Number <> 0 Then
> If InStr(Err.Description, "Å×À̺íÀÌ ÀÌ¹Ì ÀÖ½À´Ï´Ù") > 0 Then
> Response.Write "ÁöÁ¤ÇϽŠÅ×À̺íÀÌ ÀÌ¹Ì Á¸ÀçÇÕ´Ï´Ù."
> Err.Clear
> On Error Goto 0
> Else
> number = Err.Number
> description = Err.Description
> source = Err.Source
> helpfile = Err.HelpFile
> helpcontext = Err.HelpContext
>
> Err.Clear
> On Error Goto 0
>
> Err.Description = description
> Err.Source = source
> Err.HelpFile = helpfile
> Err.HelpContext = helpcontext
>
> Err.Raise number
> End If
> End If
>
> 'syntax °¡ Ʋ¸®´Â ¿¡·¯, Áï ÀϹÝÀûÀÎ ¿¡·¯ÀÌ¸é ±×´ë·Î ¿¡·¯¸¦ ¹ß»ýÇÑ´Ù.
> On Error Resume Next
> DBConn.Execute "CREATE TABLE NotDuplicatedTables IncorrectSyntax (Num Counter)"
>
> If Err.Number <> 0 Then
> If InStr(Err.Description, "Å×À̺íÀÌ ÀÌ¹Ì ÀÖ½À´Ï´Ù") > 0 Then
> Response.Write "ÁöÁ¤ÇϽŠÅ×À̺íÀÌ ÀÌ¹Ì Á¸ÀçÇÕ´Ï´Ù."
> Err.Clear
> On Error Goto 0
> Else
> number = Err.Number
> description = Err.Description
> source = Err.Source
> helpfile = Err.HelpFile
> helpcontext = Err.HelpContext
>
> Err.Clear
> On Error Goto 0
>
> Err.Description = description
> Err.Source = source
> Err.HelpFile = helpfile
> Err.HelpContext = helpcontext
>
> Err.Raise number
> End If
> End If
> %>
>
> Çѹø Çغ¸¼¼¿ä.
>
> °¨»çÇÕ´Ï´Ù.
>
¿ì¿Í... ½ÂÀÍ´Ô... Á¤¸» ¸ÚÁý´Ï´Ù...
¹Ú¼ö ¦¦¦~~~
¿ª½Ã Ȩ·±¿Õ´ä½À´Ï´Ù... ¾Ñ... Ȩ·±¿ÕÀº ½Â¿±À̱º.. ^^;
|
|
|
|