|
Kak приконектится c ASP к базе ОРАКЛА
|
|||
---|---|---|---|
#18+
Люди кто знает помогите, и если можно примерчик напишите. я вот так написал но страница ничего не показывает: <%@ Language=VBScript %> <% option explicit %> <Html> <head> </head> <body> <b> <font color="red"> Do not connection to database </b> <% Dim conn Dim SQL Dim R Dim F Dim RecsAffected Dim aConnectionString aConnectionString ="Provider=SQLOLEDB;Data " _ & "Source=(Local);Database=XXX;" _ & "UID=XX;PWD=XX;" Set conn = Server.CreateObject("ADODB.Connection") conn.Mode = adModeRead conn.ConnectionString = aConnectionString conn.CursorLocation=adUseClient conn.open SQL = "select id,name from abonent" Set R = Server.CreateObject("ADODB.Recordset") R.Open SQL, conn,adOpenStatic, adLockReadOnly,adCmdText Response.Write "<h3>All Records</h3>" R.MoveFirst Response.Write "<table align='left' border='1'>" Response.Write "<tr>" for each F in R.Fields Response.Write "<td>" & F.name & "</td>" next Response.Write "</tr>" while not R.EOF Response.Write "<tr>" for each F in R.Fields Response.Write "<td>" & F.value & "</td>" next Response.Write "</tr>" r.MoveNext wend Response.Write "</table>" R.Close set R = nothing conn.Close set conn = nothing %> </body> </Html> заране всем спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
25.09.2002, 08:49 |
|
Kak приконектится c ASP к базе ОРАКЛА
|
|||
---|---|---|---|
#18+
Странно, должен работать... А этот пример вообще пустую страницу выводит? Или какое нибудь сообщение об ошибке? И у тебя в настройках ISS обработка ошибок стандартная? ... |
|||
:
Нравится:
Не нравится:
|
|||
25.09.2002, 10:38 |
|
|
start [/forum/topic.php?fid=52&fpage=2840&tid=1993036]: |
0ms |
get settings: |
12ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
35ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 18ms |
total: | 153ms |
0 / 0 |