Technical question for ASP Hosting technolgie

Discussion in 'Pre-sales questions' started by Panagiotis Groidis, Dec 11, 2013.

  1. Dear All,

    I need to move a working site from a hosting to Winhost but i don't know if the technology is supported, i have copy paste the conn.asp file and web.config file and index.asp, can anyone advise me ?

    thank you

    -conn.asp-

    <% 'development server
    session.CodePage = 65001
    SQLServerName = "localhost"
    UserId = "fulftp"
    UserPassword = "!@@#"
    set Conn=server.CreateObject("ADODB.Connection")
    Conn.Open "Provider=SQLOLEDB;User ID=" & UserId & ";Password=" & UserPassword & ";Data Source=" & SQLServerName & ";Initial Catalog=fulm;"
    Conn.CommandTimeout=50
    %>

    -conn.asp-

    -web.config-
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <defaultDocument>
    <files>
    <add value="index.asp" />
    </files>
    </defaultDocument>
    </system.webServer>
    </configuration>
    -web.config-

    -index.asp-
    <%@language="vbscript"%>
    <!--#INCLUDE FILE="../conn.asp"-->

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>fulcrum</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="../images/css.css" rel="stylesheet" type="text/css">
    <link href="../images/menu.css" rel="stylesheet" type="text/css">

    ........
    -index.asp-

    thank you
     
    Last edited by a moderator: Oct 14, 2015
  2. Elshadriel

    Elshadriel Winhost Staff

    Everything looks like it will work except for the database part. You can't use 'localhost' because the web and database servers are separate.
     
  3. Thank you, if i register with Winhost , how i will get inform about the hostname of SQL ? the port is the same? 1433 ?
     
    Last edited by a moderator: Oct 14, 2015
  4. Elshadriel

    Elshadriel Winhost Staff

    You need to create a database using the Winhost Control Panel. The connection and management information will be there. The port is 1433.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page