Results 1 to 2 of 2

Thread: Data enviroment and ASP

  1. #1

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    Tulsa,OK,USA
    Posts
    56

    Data enviroment and ASP

    Hi,
    Can somebody tell me how to reference a command in data enviroment in ASP. FYI, I didn't enabled the scripting object model.


    My command cmdInsert that accept parameters is a stored procedure name spInsertFeedback

    I've tried this code, but it give me error....and it won't save to database.


    <%
    set DE=Server.CreateObject("DERuntime.DERunTime")
    DE.Init (Application("DE"))

    DE.cmdInsertFeedback "First Record"

    %>

  2. #2
    Lively Member
    Join Date
    Nov 2001
    Location
    Dallas
    Posts
    73

    connection

    Hello,

    I use connection strings like this, you may not need the session parts, I use many sessions so I do this.

    Let me know if this helps you out.

    Kenny

    Set TEST= Server.CreateObject("ADODB.Connection")
    TEST.ConnectionTimeout = Session("TEST_ConnectionTimeout")
    TEST.CommandTimeout = Session("TEST_CommandTimeout")
    TEST.Open Session("TEST_ConnectionString"), Session("TEST_RuntimeUserName"), Session("TEST_RuntimePassword")
    Set CMD = Server.CreateObject("ADODB.Command")
    Set RS = Server.CreateObject("ADODB.Recordset")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width