´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • À̽ÂÀÍ / 2000-04-26 / ¿ÀÈÄ 9:21:49 / 210.107.131.218
    Á¶È¸¼ö : 198
    [Áú¹®] Access ¿Í SQL ¼­¹ö Connection string
    ¾È³çÇϼ¼¿ä, À̽ÂÀÍÀÔ´Ï´Ù.

    Ã¥µéÀ» º¸´Ï±î DB ¿¬°á¿¡ ´ëÇØ ´Ù Á¦ °¢°¢ÀÌ´õ±º¿ä.
    À̰͵éÀ» ¸ð¾Æº¸´Ï ´ëÃæ °á·ÐÀÌ ³ª¿Ô½À´Ï´Ù.

    ODBC ¸¦ »ç¿ëÇÏÁö ¾Ê°í Á÷Á¢ ¿¬°áÀ» ÇÏ´Â °ÍÀÌ ¼º´É Çâ»ó¿¡ µµ¿òÀÌ µÈ´Ù´õ±º¿ä.

    ±×¸®°í ¸î°¡Áö ºÎºÐÀÇ Connection String À» Á¤¸®Çغ¸¸é ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

    1. Access ÀÇ °æ¿ì.

    Application("BOARD_DB_PATH") = "c:\inetpub\wwwroot\access\iyagiboarddb\dbBoard.mdb"

    Application("CONNECTION_STRING") = "PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};" &_
    "DBQ=" & Application("BOARD_DB_PATH") & ";UID=sa;PWD=;"


    2. SQL Server ÀÇ °æ¿ì

    Application("BOARD_DB_SERVER") = "silee"
    Application("BOARD_DB_DATABASE") = "dbIyagi"
    Application("BOARD_DBLOGIN_UID") = "sa"
    Application("BOARD_DBLOGIN_PWD") = ""

    Application("CONNECTION_STRING") = "PROVIDER=SQLOLEDB;DRIVER={SQL Server};" &_
    "Server=" & Application("BOARD_DB_SERVER") & ";Database=" & Application("BOARD_DB_DATABASE") &_
    ";UID=" & Application("BOARD_DBLOGIN_UID") & ";PWD=" & Application("BOARD_DBLOGIN_PWD")



    ÀÌ·¸°Ô ODBC ¼³Á¤À» ÇÏÁö ¾ÊÀ¸¸é ¾ÆÁÖ °£ÆíÈ­µÈ »óÅ¿¡¼­ ¾Æ¿¹ ASP ¸¦ ÅëÇØ ¼³Ä¡ ¸¶¹ý»ç¸¦ Á¦°øÇÒ ¼öµµ ÀÖ½À´Ï´Ù.

    ADSI ¸¦ »ç¿ëÇÏ´Â ¹æ¹ýÀä, ÀÌ°Å ¾²´Ï±î Á¤¸» ÆíÇÏ°Ô ¼³Ä¡ÇÒ ¼ö ÀÖ°Ô µË´Ï´Ù.

    ¿¹¸¦ µé¾î º¼°Ô¿ä.

    Set objIIS = GetObject("IIS://localhost/W3SVC/1/Root")

    Set objASPVirtualDirectory = objIIS.Create("IISWebVirtualDir", "board")
    objASPVirtualDirectory.AccessRead = True
    objASPVirtualDirectory.AccessExecute = True
    objASPVirtualDirectory.AccessScript = True
    objASPVirtualDirectory.AccessNoRemoteRead = False
    objASPVirtualDirectory.AccessNoRemoteExecute = False
    objASPVirtualDirectory.AccessNoRemoteScript = False
    objASPVirtualDirectory.ContentIndexed = False
    objASPVirtualDirectory.Path = "C:\inetpub\wwwroot\board"
    objASPVirtualDirectory.AppFriendlyName = "²Þ¼Ó³ª¶ó °Ô½ÃÆÇ Root"
    objASPVirtualDirectory.AspBufferingOn = True
    'objASPVirtualDirectory.AspScriptErrorSentToBrowser = False
    'objASPVirtualDirectory.AspScriptErrorMessage = "²Þ¼Ó³ª¶ó °Ô½ÃÆÇ ½ºÅ©¸³Æ® ½ÇÇà¿¡ ¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù. °ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇϽʽÿÀ."

    objASPVirtualDirectory.SetInfo

    If Request.ServerVariables("SERVER_SOFTWARE") = "Microsoft-IIS/5.0" Then
    objASPVirtualDirectory.AppCreate2 2
    Else
    objASPVirtualDirectory.AppCreate True
    End If

    Set objASPVirtualDirectory = Nothing

    À§ ÄÚµå´Â À¥ ·çÆ® µð·ºÅ丮¿¡ 'board' ¶õ °¡»ó µð·ºÅ丮¸¦ »ý¼ºÇؼ­ ¸î°¡Áö ¼³Á¤À» ÇÏ´Â ·çƾÀÔ´Ï´Ù.

    Âü°íÇϼ¼¿ä~

    ^^

    > ¼Ò½º ¼öÁ¤À» ¾ÕµÎ°í ¿©·¯°¡Áö Å×½ºÆ®¸¦ ÇØ º¸°í Àִµ¥...
    >
    > Á¦ »ý°¢ÀÌ ¸Â³×¿ä...
    >
    > »ç½Ç ±×µ¿¾È global.asa¿¡¼­
    >
    > acceess »ç¿ëÀÚ´ÔµéÀº
    >
    > Session("DBConnection_ConnectionString") = "DSN=DreamOdbc;DBQ=C:\DBData\DreamDB.mdb;DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5;"
    >
    > sql »ç¿ëÀÚ´ÔµéÀº
    >
    > Session("DBConnection_ConnectionString") = "DSN=DreamOdbc;Description=²Þ¼Ó³ª¶ó Odbc;SERVER=LOCK;UID=sa;PWD=;APP=Microsoft (R) Developer Studio;WSID=LOCKEY;DATABASE=Dream"
    >
    > ÀÌ·¸°Ô µÇ¾î ÀÖ¾î ´Ù¸£°Ô »ç¿ëÇ϶ó°í Çߴµ¥....
    >
    > ¿ª½¬ ÀÌ°Ç À߸øµÆ´õ¶ó±¸¿ä....
    >
    > ±×³É ODBC¸¸ Á¦´ë·Î ¼³Á¤µÇ°í global.asa¸¸ Á¦´ë·Î ÇØ ³õÀ¸¼Ì´Ù¸é....
    >
    > Session("DBConnection_ConnectionString") = "DSN=DreamOdbc;"
    >
    > ÀÌ·¸°Ô¸¸ Çصµ ±¦Âú´õ±º¿ä....
    >
    > µÞºÎºÐÀº ±×³É Âü°íÇÏ´Â ³»¿ëÀÌÁö ½ÇÇàµÇ´Âµ¥´Â ¾Æ¹«·± ¿µÇâÀ» ¾È ¹ÌÄ¡´Â °Í °°³×¿ä...
    >
    > Àúµµ Ç×»ó ÀÌÁ¡ÀÌ ¼ö»óÇߴµ¥.... È÷È÷È÷....
    >
    > ¼Ò½º¸¦ ¼öÁ¤ÇÏ°íÀÚ Çϴµ¥... ¾î¶»°Ô ÇÒÁö °ÆÁ¤À̳׿ä...
    >
    > ¿©·¯ À߸øµÈ Á¡(?)À» °íÄ¡·Á°í Çϴµ¥.... ¾Æ¹«·¡µµ ±×·¸°Ô µÇ¸é
    >
    > Å×ÀÌºí¿¡ ¼öÁ¤À» °¡ÇØ¾ß µÉ°Í °°°Å´ø¿ä....
    >
    > ±×·³ ÀÌÀü¿¡ ³ª¿Â°Å¶û ȣȯ ¹®Á¦°¡ À־....
    >
    > Á¦ »ý°¢µÇ·Î Çϸé ȣȯµÇ±â°¡ Èûµé¾î¶ó....
    >
    > ±×´ë·Î ³ª°¡¾ß µÉÁö...
    >
    > ¾Æ´Ï¸é °ú°¨È÷ ¿©±â¼­ »õ·Î¿î Àü°³¸¦ ¸¶·ÃÇØ¾ß ÇÒÁö...
    >
    > °í¹ÎÁßÀÔ´Ï´Ù....
    >
    > ¿©·¯ºÐµéÀÇ »ý°¢Àº ¾î¶°½ÅÁö....
    >
    >
    -----------------------------------------------------------

    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :