If you feel some confusion about any thing or if you do not find what you are looking for, please inform us so that we can improve our documentation accordingly. docs@aspfusion.net

AdvDSN

The component provides you complete DSN management. Access to the component can also be turned on at website basis like all other ASPFusion components. The component is very easy to use and is more flexible for management of DSN. With few lines of code, DSN can be easily managed. It provides following operations.

  1. Complete basic DSN management operations, such as Add, Configure and Remove a DSN.

  2. Along with these basic operations, it provides ListDSN for getting listing of all DSNs created under specific website.

<%set Obj = Server.CreateObject("AdvDSN.DSN")%> 

AdvDSN Properties 

Property

Description

ErrorReason

Reports any errors that occur during the request
Example:
<%if Obj.IsError = 1 then
        Response.Write Obj.ErrorReason
else
        No Error
end if %>

IsError

Returns 1 if any error occur during the request otherwise 0
Example:
<%if Obj.IsError = 1 then
        Error
else
        No Error
end if %>

AdvDSN Methods 

Method 

Parameter

Return Value

Description

Add

strDriver
strDSN

None

Add a DSN
Example:
<%Obj.Add
strDriver, strDSN%>

Configure

strDriver
strDSN

None

Configure an existing DSN
Example:
<%Obj.Add strDriver
, strDSN%>

ListDSN

 None

Array of DSNs

Return listing of DSN under an ASPFusion Security Box
Example:
<%Result = Obj.ListDSN()
     for i = 0 to ubound(Result)
          Response.Write Result(i)
     next%>

Remove

strDriver
strDSN

None

Remove an existing DSN
Example:
<%Obj.Add strDriver
, strDSN%>

Back

Copyright © 2000, Advanced Communications