|
|
|
|
ÀÚÀ¯ÀÎ / 2002-04-01 / ¿ÀÀü 9:27:11 / 211.216.33.152
Á¶È¸¼ö : 135
|
[Áú¹®] ÀÚ·á½Ç¿¡¼ µµÀúÈ÷ ¿À·ù¼öÁ¤ÀÌ ¾ÈµÇ³×¿ä...ÈÄ.. |
sql = sql & ",'" & Content & "' GetDate() ," & Visited
À§¿¡ ÁÙÀ» º¸½Ã¸é Content ¿Í GetDate() »çÀÌ¿¡
ÄÞ¸¶(,)°¡ ¾ø³×¿ä.
ÀÌ·± °æ¿ì¿¡ Á¤È®ÇÑ SQL ±¸¹®ÀÌ »ý¼ºÀÌ µÇÁö ¾ÊÀ» °æ¿ì¿¡ ÀÚÁÖ ¹ß»ýÇÕ´Ï´Ù.
¿ì¼±, executeÇϽñâ Àü¿¡
Response.Write "sql=" & sql
Çϼż ±¸¹®ÀÌ Á¦´ë·Î »ý¼ºµÇ¾ú´ÂÁö¸¦ È®ÀÎÇϽøé
º¸´Ù ºü¸¥ ÇØ°á¹æ¹ýÀ» ãÀ» ¼ö ÀÖÀ»°Å °°³×¿©..
Çä~~
¾Æħ¿¡ ¿ÀÀÚ¸¶ÀÚ Àû¾ú´õ´Ï ¼ûÀÌ Â÷³×¿©
±×·³.
Áñ°Å¿î ÇÏ·ç µÇ½Ã±â¸¦...
> ÈÄ............. ¹ú½á Áö±Ý 8½Ã°£Â° »ðÁúÇÏ°í Àֳ׿ä.
> ¾î¼¸é ÀÌ·¸°Ô ¿ÀÌ ¹ÞÀ» ¼ö°¡ ÀÖ´ÂÁö...
>
> Á¦°¡ ÀÚ·á½ÇÀ» filemanÄÄÆ÷³ÍÆ®·Î ¼³Á¤Çؼ ÀÌ°ÍÀ» »çÀÌÆ®°¶·°½Ã·Î ¹Ù²Ù·Á°í
> ÀÚ·á¿Ã¸®´Â ÆÄÀÏÀ» ¼öÁ¤Çß½À´Ï´Ù.
>
> ±×·±µ¥ ÀÌ·± Àú·± ¿À·ù ´Ù ¼öÁ¤Çߴµ¥, ÀÌ°Ç ¹ú½á 2½Ã°£Â° ¾Æ¹«¸® Çصµ ¾ÈµÇ³×¿ä...
>
> ¿À·ù±¸¹® : Microsoft OLE DB Provider for SQL Server (0x80040E14)
> ÁÙ 1: '=' ±ÙóÀÇ ±¸¹®ÀÌ À߸øµÇ¾ú½À´Ï´Ù.
> /made_pds/write_process.asp, line 101
>
> < db ¿¬°á¼Ò½º > :
>
> set db=server.createobject("adodb.connection")
> with db
> .provider="sqloledb"
> .connectionstring="server=(local);database=made;uid=made;pwd=made;"
> .connectiontimeout=10
> .open
> end with
>
> sql = " INSERT INTO " & db & " ( Subject, Writer, Email, pdsFile, FileSize, Homepage, Content, Reg_Date, "
> sql = sql & " Visited, Passwd, Html) VALUES "
> sql = sql & "('" & Subject & "'"
> sql = sql & ",'" & Writer & "'"
> sql = sql & ",'" & Email & "'"
> sql = sql & ",'" & pdsfile & "'"
> sql = sql & ",'" & fileSize & "'"
> sql = sql & ",'" & Homepage & "'"
> sql = sql & ",'" & Content & "' GetDate() ," & Visited
> sql = sql & ",'" & Passwd & "'"
> sql = sql & "," & Html & ")"
>
> db.execute(sql) <-- ¶óÀÎ 101 ÀÔ´Ï´Ù.
>
> ¿¹Àü¿¡ Àú·± ¿À·ù°¡ ¶ß¸é sql±¸¹®¶§¹®¿¡ ¶¹¾ú°Åµç¿ä. ±×·±µ¥ ¾Æ¹«¸® ÃÄ´ÙºÁµµ
> db±¸¹®¿£ ¾Æ¹«·± ¹®Á¦°¡ ¾ø³×¿ä..
>
> Àú Á» »ì·ÁÁÖ¼¼¿ä. ¾îÁ¦ Àú³áºÎÅÍ ½ÃÀÛÇؼ Áö±Ý ¹ã»õµµ·Ï Çߴµ¥ ¼öÁ¤ÀÌ ¾ÈµÇ³×¿ä.
>
>
>
-----------------------------------------------------------
|
|
|
|