MS db Connection String using ASP VBScript and DW8

Hi
My MS db has been working with DW8 followong my use of a connection string in connSci***.asp. My OS is Windows7. This has worked fine.
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
Dim MM_connSciWeb_STRING
MM_connSciWeb_STRING = "DSN=DSN_******"
%>
Now when I update the db and check that the new additional records have been added (and they have been) I can still only access the original records. When I retest the connection string I get the 404 error message.
Can anyone help?
Regards
Kevin

>This has worked fine.
When did it stop working? What changes did you make?
MM_connSciWeb_STRING = "DSN=DSN_******"
Any particular reason you are using DSN rather than DSNless connections?
>Now when I update the db and check that the new additional records  have
>been added (and they have been) I can still only access the  original records.
Can you explain? How do you know the new records where added if you can't access them?
>When I retest the connection string I get the 404  error message.
How are you testing the connection?

Similar Messages

  • Connection string - using alias

    I am currently able to connect to Oracle databases using a connect string like:
    con = DriverManager.getConnection("jdbc:oracle:thin:@host_name:post:SID", "userid", "password");
    Is there away I can connect by just passing the alias of the SID that is in my tnsnames.ora file and not specifying the host and the port? We move instances to different boxes etc. and I would like to avoid hardcoding the hosts and the port. I know you can configure connection strings using the tnsnames.ora file but it just parses it and stores the host,port and SID. Any help would be appreciated.
    null

    the format that you stated is correct for jdbc thin drivers.
    the tnsnames.ora format is supported only with jdbc oci drivers.

  • Powershell use Connection String to query Database and write to Excel

    Right now I have a powershell script that uses ODBC to query SQL Server 2008 / 2012 database and write to EXCEL
    $excel = New-Object -Com Excel.Application
    $excel.Visible = $True
    $wb = $Excel.Workbooks.Add()
    $ws = $wb.Worksheets.Item(1)
    $ws.name = "GUP Download Activity"
    $qt = $ws.QueryTables.Add("ODBC;DSN=$DSN;UID=$username;PWD=$password", $ws.Range("A1"), $SQL_Statement)
    if ($qt.Refresh()){
    $ws.Activate()
    $ws.Select()
    $excel.Rows.Item(1).HorizontalAlignment = $xlCenter
    $excel.Rows.Item(1).VerticalAlignment = $xlTop
    $excel.Rows.Item("1:1").Font.Name = "Calibri"
    $excel.Rows.Item("1:1").Font.Size = 11
    $excel.Rows.Item("1:1").Font.Bold = $true
    $filename = "D:\Script\Reports\Status_$a.xlsx"
    if (test-path $filename ) { rm $filename }
    $wb.SaveAs($filename, $xlOpenXMLWorkbook) #save as an XML Workbook (xslx)
    $wb.Saved = $True #flag it as being saved
    $wb.Close() #close the document
    $Excel.Quit() #and the instance of Excel
    $wb = $Null #set all variables that point to Excel objects to null
    $ws = $Null #makes sure Excel deflates
    $Excel=$Null #let the air out
    I would like to use connection string to query the database and write results to EXCEL, i.e.
    $SQL_Statement = "SELECT ..."
    $conn = New-Object System.Data.SqlClient.SqlConnection
    $conn.ConnectionString = "Server=10.10.10.10;Initial Catalog=mydatabase;User Id=$username;Password=$password;"
    $conn.Open()
    $cmd = New-Object System.Data.SqlClient.SqlCommand($SQL_Statement,$conn)
    do{
    try{
    $rdr = $cmd.ExecuteReader()
    while ($rdr.read()){
    $sql_output += ,@($rdr.GetValue(0), $rdr.GetValue(1))
    $transactionComplete = $true
    catch{
    $transactionComplete = $false
    }until ($transactionComplete)
    $conn.Close()
    How would I read the columns and data for $sql_output into an EXCEL worksheet. Where do I find these tutorials?

    Hi Q.P.Waverly,
    If you mean to export the data in $sql_output to excel document, please try to format the output with psobject:
    $sql_output=@()
    do{
    try{
    $rdr = $cmd.ExecuteReader()
    while ($rdr.read()){
    $sql_output+=New-Object PSObject -Property @{data1 = $rdr.GetValue(0);data2 =$rdr.GetValue(1)}
    $transactionComplete = $true
    catch{
    $transactionComplete = $false
    }until ($transactionComplete)
    $conn.Close()
    Then please try to use the cmdlet "Export-Csv" to export the data to excel like:
    $sql_output | Export-Csv d:\data.csv
    Or you can export to worksheet like:
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible = $true
    $workbook = $excel.Workbooks.Add()
    $sheet = $workbook.ActiveSheet
    $counter = 0
    $sql_output | ForEach-Object {
    $counter++
    $sheet.cells.Item($counter,1) = $_.data1$sheet.cells.Item($counter,2) = $_.data2}
    Refer to:
    PowerShell and Excel: Fast, Safe, and Reliable
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Find Connection String used by SQL Server Management Studio

    I am having problems getting my VS C# .NET application to connect to a SQL Server Database, even though I can connect to it (on the same machine) using SQL Server Management Studio.
    Is there any way I can find the connection string that SQL Server Management Studio generates when it connects?

    Hi,
    As you have Visual Studio on your machine, I think we can also use the Visual Database Tools of Visual Studio to generate the connection string.
    Please:
    1. Create a new data connection to the SQL Server database in the
    Server Explorer of Visual Studio
    2. After the connection is established, right-click on the connection name and select
    Properties. There is an item called Connection String in the
    Properties window.
    Reference:
    How to: Add New Data Connections in Server Explorer/Database Explorer 
    http://msdn.microsoft.com/en-us/library/3d1wkhas.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • How to create SQL Connections String using JSP

    Hi, Dear I wrote sample Jsp program(Create a table and Inserted to Table) using SQLConnection
    I got this Error, how to rectify please help me?
    This is my Connection String
    <%
    String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
         Class.forName(driver).newInstance();
         Connection con=null;
         ResultSet rst=null;
         Statement stmt=null;
         try
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.5.6:1433;Database=manickaraj;User=sa; Password=test*");
              con=DriverManager.getConnection(url);
              stmt=con.createStatement();
         catch(Exception e)
    System.out.println(e.getMessage());
         if(request.getParameter("action") != null)
              String CategoryName=request.getParameter("Category1");
              String Description=request.getParameter("Description1");
    String Status=request.getParameter("Status1");
              stmt.executeUpdate("insert into Category(CategoryName,Description) values('"+CategoryName+"','"+Description+"','"+Status+"')");
              rst=stmt.executeQuery("select * from Category");
    %>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
    C:\Documents and Settings\manickaraj\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\SampleJsp\org\apache\jsp\CategoryAction_jsp.java:61: incompatible types
    found : java.sql.Connection
    required: java.lang.String
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.2.4:1433;Database=manickaraj;User=sa; Password=test*");
              ^
    1 error
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

    package shop;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DAClass {
         private static Connection conn;
         private static ResultSet rs;
         private static PreparedStatement ps;
         public static void connect(String dsn, String un, String pwd) {
              try {
                   //access or Mysql odbc connectivity
                   //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //conn=DriverManager.getConnection("jdbc:odbc:"+dsn,un,pwd);
                   //mysql
                   //Class.forName("com.mysql.jdbc.Driver");
                   //conn=DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/eshop?user=root&password=root");
                InitialContext ctx = new InitialContext();
         DataSource ds = (DataSource) ctx.lookup("jdbc/eshop");
          conn = ds.getConnection();
         //DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MySQLDB")
              catch(Exception e) {
                   //return "not soory";
         public static boolean chkPwd(String un, String pwd) {
              try {
                   boolean b=false;
                   ps=conn.prepareStatement("select * from cust_info where cust_name=? and cust_pwd=?");               
                   ps.setString(1,un);
                   ps.setString(2,pwd);
                   rs=ps.executeQuery();
                   while(rs.next()) {
                        b=true;
                   return b;
              catch(Exception e) {
                   return false;
    }changed the code like this other part is same.implemented connection pooling but still its too lazy loding can you guide me?

  • ASP VBScript and ADDT Dynamic List Wizard HELP

    Using ADDT I've created a dynamic list in a membership area. How do I get that dynamic list to populate only the data for that particular member that is logged in. Any help would be so much appreciated as I have been trying to figure this out for days now.
    <br />
    <br /><%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <br />
    <!--#include file="../Connections/rentalpaypro.asp" -->
    <br />
    <!--#include file="../includes/common/KT_common.asp" -->
    <br />
    <!--#include file="../includes/tNG/tNG.inc.asp" -->
    <br /><%<br />'Start log out user<br />  Set logout = new tNG_Logout<br />  logout.setLogoutType "link"<br />  logout.setPageRedirect "../index.html"<br />  logout.Execute<br />'End log out user<br />%>
    <br />
    <!--#include file="../includes/tfi/TFI.asp" -->
    <br />
    <!--#include file="../includes/tso/TSO.asp" -->
    <br />
    <!--#include file="../includes/nav/NAV.asp" -->
    <br /><%<br />'Start Restrict Access to Page<br />  Dim restrict: Set restrict  = new tNG_RestrictAccess<br />  restrict.Init MM_rentalpaypro_STRING, "../"<br />'Grand Levels: Any<br />  restrict.Execute<br />'End Restrict Access to Page<br />%>
    <br /><%<br />' Filter<br />  Dim tfi_listLandlord_Property1: Set tfi_listLandlord_Property1 = new TFI_TableFilter<br />  tfi_listLandlord_Property1.Init MM_rentalpaypro_STRING, "tfi_listLandlord_Property1"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.ContactInfoID", "NUMERIC_TYPE", "ContactInfoID", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.RegistrationID", "NUMERIC_TYPE", "RegistrationID", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.StreetNumber", "NUMERIC_TYPE", "StreetNumber", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.StreetName", "STRING_TYPE", "StreetName", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.AptNumber", "NUMERIC_TYPE", "AptNumber", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.City", "STRING_TYPE", "City", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.State", "STRING_TYPE", "State", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.ZipCode", "NUMERIC_TYPE", "ZipCode", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.MonthlyRent", "NUMERIC_TYPE", "MonthlyRent", "="<br />  tfi_listLandlord_Property1.Execute()<br /><br />' Sorter<br />  Dim tso_listLandlord_Property1: Set tso_listLandlord_Property1 = new TSO_TableSorter<br />  tso_listLandlord_Property1.Init "rslistLandlord_Property1", "tso_listLandlord_Property1"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.ContactInfoID"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.RegistrationID"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.StreetNumber"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.StreetName"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.AptNumber"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.City"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.State"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.ZipCode"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.MonthlyRent"<br />  tso_listLandlord_Property1.setDefault "Landlord_Property.ContactInfoID"<br />  tso_listLandlord_Property1.Execute()<br /><br />' Navigation<br />  Dim nav_listLandlord_Property1: Set nav_listLandlord_Property1 = new NAV_Regular<br />  nav_listLandlord_Property1.Init "nav_listLandlord_Property1", "rsLandlord_Property1", "../", Request.ServerVariables("URL"), 10<br />%>
    <br /><%<br />Dim qry_contactinfo__MMColParam<br />qry_contactinfo__MMColParam = "1"<br />If (Session("kt_login_id") <> "") Then <br />  qry_contactinfo__MMColParam = Session("kt_login_id")<br />End If<br />%>
    <br />

    Use the session variable from the log in method (MM_Username as I recall) to create a recordset that you then use in the dynamic list versus using the whole table.

  • Lose airport connection after using boot camp and windows XP

    After using windows XP on boot camp and shutting down windows and booting to Mac OS 10.5.7 I lose the airport connection and have to restart or reset my airport extreme base station. My imac 2.8 is connected to airport via ethernet. Air port is operating on 5.7 version. This is a recent development and suspect it is related to updates in windows. I do not know where to start but need to solve this problem as it interrupts the other computers on wireless. Thanks Carl

    I have solved problem. It was in the windows settings using airport rather than ethernet connection. Carl

  • How do you make connection password use single username and password in P/S

    Hi
    I have installed OBIEE as a standalone on a Windows 2003 server using OC4J and AUTHENTICATION_TYPE = BYPASS_NQS.
    I have created a repository using an ODBC connection to a Netezza database. The implementation we have is that we use a single username and password (readonly) to the database.
    I have created the physical, business and presentation layers and the repository is consistent and loadas up into the Presentation Server.
    When I login into presentation server as say "Administrator", the PS passes the username/password of "Administrator" instead of the username and password setup in the connection pool.
    The error is;
    -------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: HY000 code: 108 message: Password authentication failed for user 'ADMINISTRATOR'.
    When I create a user with the same username and password as the one used in the connection pool, the requests work. Although thisd lets me work at the moment, it is not a viable solution going forward.
    Please can you advise what I need to setup for this to work correctly for me ie., make PS substitute the correct username password when connecting to the ODBC defined in the connection pool?
    Thanks in advance.
    Danish.

    Apologies if I've misunderstood, but are you trying to implement anything than standard practise, namely:
    1) Using the OBIEE security model to authenticate and log in (i.e. when you log in to Answers you are entering a username as defined in the RPD)
    2) Using a fixed username & password as defined on the database to authenticate & authorise when you read data for your reports?
    If you use BYPASS_NQS then BI Server will take your login details when you login to Answers (Presentation Server) and pass them through to the database and see if they're valid. This is what's happening when you got the error that you initially posted. With setting at BYPASS_NQS try logging into Answers with the database username&password, I bet it will work.
    If you use NQS (the default) then it checks the Answers login against users defined in the RPD, so the reason you couldn't login when you changed it to NQS is that the user/pw you logged in with didn't match what's defined in the RPD.
    Try this:
    1. Create a new user & pw in the RPD, for argument's sake call it TestRPDUser with the same pw
    2. Set authentication to NQS and restart you BI Server
    3. Log in to Answers as TestRPDUser - does it work?

  • Internet connection lost using hughesnet modem and Airport in Time Capsule

    I recently got Hughesnet which is the only available high speed internet at my home.
    The problem I'm having is that my wireless connectivity is lost to all devices requiring me to unplug and plug back in my Airport...at which time I have internet again until it goes out again.
    The problem does not appear to be an actual lost internet connection through my Hughesnet modem.
    Any thoughts on how to fix this problem?  I have reset my Airport to factory settings and named it TCwireless for simplicity.
    OS X 10.9.4
    3.2 GHz Intel Core i5
    8 GB 1600 MHz DDR3

    Hey there waltpe,
    Here are a couple of articles for you that will help you troubleshoot the connectivity of your AirPort router:
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT4628
    Wi-Fi Quick Assist
    http://support.apple.com/kb/HT1145
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Long Connection Times Using ADO/ODBC and VB

    I have written a Visual Basic program that connects to Oracle on the Unix server. When I first issue the connect command it takes 3 minutes to actually open the database. Once I am connected the program functions very efficiently. When I run the same program against Oracle running under windows NT, it takes 30 seconds to connect to the database.
    Any suggestions on why it would take 3+ minutes to just connect to the database on the Unix server?
    Here is the code I use to connect to the database...
    Conn = "UID=xxxx;PWD=xxxx;DRIVER={Microsoft ODBC for Oracle};" _
    & "SERVER=" & P_DataBase & ";"
    ' Connect to the database
    Set Cn = New ADODB.Connection
    ' Open the database
    With Cn
    .ConnectionString = Conn
    .CursorLocation = adUseClient
    .Open Cn
    End With
    Thanks for any help you can provide
    Tim

    A ping goes rather quickly, and the TNSNAMES.ORA file already contains the IP address. I have other software that connects to the Oracle server just fine without a long delay. I am not sure if this other software uses ODBC, it is a package software. I was begining to think I might have miscoded the connection in the VB program?
    Tim

  • Internet connection loss using Airport Extreme and Netgear DG843

    Hello,
    I am accessing internet via a Netgear DG834 router (not wifi), connected to an Airport Extreme base station. Most of the time, I can access internet through the Wifi network of the AEB without any problem. But around once a day I am experiencing connection loss and the only way I found to restore it is to reset the Netgear Router by physically unplungging it.
    Both the Netgear and the AEB have up to date firmware, so I suspect some kind of problem in my setup, as I am not an expert in setting up networks.
    Is it possible that using a Netgear Router connected to the AE (which is also a router if I understand correctly) could cause connection problems ?
    I am at a loss, and do not even know how to describe the relevant informations of my current setup. If a kind soul could help me nonetheless, I would be very gratefull.
    Mr Pedrito
    Powerbook G4   Mac OS X (10.3.9)  

    Is it possible that using a Netgear Router connected
    to the AE (which is also a router if I understand
    correctly) could cause connection problems ?
    Yes.
    Ensure that that the AEBS is configured to not distribute IP addresses.
    Also ensure that the AEBS is on a different channel to the DG834G.
    iFelix

  • Cannot connect adsl using rp-pppoe and ppd

    Anyone is successful in running pppoe under solaris 8 ?
    I tried hard and complied pppd,rp-pppe using gcc at last,
    everything is fine until I try to connect using adsl-start, it just "timeout" without success.
    I 'm using a realtek chipset based NIC using its beta driver in its web site, the driver seems to be ok as I can ping other machine, the catch is I have to ping those machines first before they can ping my system.
    Please comment everyone

    Reply to gonwg.
    Solaris was never intended for home usage. It is an industrial strength UNIX SVR4 operating system. It is probably one of the most scalable operating systems out there and as such Microsoft can't compete there. Granted it may not be the prettiest operating system anybody could use, but that really doesn't matter because it was never designed to be a Wintendo with mailers that graciously accept all kinds of virii and so forth. Solaris has its problems, but what operating system doesn't?
    Sun doesn't assume that its users are experts. But then again that is a matter of degree. You're probably a Windows expert in comparison to me. =)
    You should install Solaris and play with it. Lots of places use Solaris every day and even if you don't end up working as a system admin with Solaris, you are still learning something new. To me that is very important.
    If you can't install it, you obviously can't learn much about it. What types of installation problems are you having? Why don't you post those and I'll promise I'll give it a shot trying to help you out.
    It's a free country and you're free to choose any operating system you want. If you want Windows XP, you should use that. Myself, I use various UNICES because I find them to be easier to administer and much more comprehensive. I can give you an example... I work with sendmail a lot and I curse over that LookOut mailer all the time. Not once have I seen it give a decent error message actually telling me what's going on. I end up having to go through logs to figure out what is happening and then fix the problem. It isn't a huge issue, but a major inconvenience. Just about every other mailer out there can give the user an error message that they can relay to their support staff. Right now there are Windows 2000 machines on the network at work. It is virtually impossible to get them to play nice with Solaris. Why? Because Microsoft wants me to use their stuff so they make incompatible. That doesn't impress me at all, so I am actually trying to migrate more clients TO Solaris than from Solaris.
    I wish you well with your endeavors to install Solaris and learn a new operating system.
    Alex

  • Connection problems using Macbook pro and 3rd gen firewire ipod

    Hello,
    I have been trying to get my girlfriends old 3rd gen ipod to synch on our mac but when connected, the ipod charges but is not recognised at all by the mac. nothing shows up in itunes, or the desktop but the ipod is definitely charging and connected fine. I was told by someone that the newer versions of itunes are not back compatible with these older ipods so ive wiped itunes, reinstalled the earliest mac version i can find (7.4) with no success. I cant find any mac versions older than this although windows versions are readily available.
    anyone had a similar problem and know how to remedy this incredibly annoying problem?
    thank you very much for your time.

    is there a work around
    Not with an eMac, iMac, or iBook.
    (36964)

  • Error with insert using ASP, SQL and ValidationTool Kit

    i finally got my 1st of 5 pages setup to insert, validate and
    redirect.. but
    now i get an error i have no idea what it means
    The page loads fine, but when i attempt to submit the page to
    insert the
    record, i receive the error below...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC SQL Server Driver][SQL Server]Parameterized
    Query '(@P1
    text,@P2 nvarchar(50),@P3 nvarchar(50),@P4 nvarchar(50),@P5'
    expects
    parameter @P18, which was not supplied.
    /cemp_app1.asp, line 123
    Here is the line in question
    Line#123 MM_editCmd.Execute
    I dont understand why the error mentions Parameterized Query
    when im not
    doing anything special, just a simple insert(after being
    validated)
    Below is the insert code that seems to mention parameters
    If (CStr(Request("MM_insert")) = "form1") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_has_STRING
    MM_editCmd.CommandText = "INSERT INTO dbo.EmpCandidate
    (cssn, cfname,
    cmname, clname, caddr, caddr1, capt, ccounty, ccity, cstate,
    czip, chphone,
    cmphone, cophone, qlegal, ost, qref, refemp, webother, qage,
    qgrpast,
    qgrpastsel, qgrrel, qgrrelsel1, qgrrelsel2, qcontact, qterm,
    cdesiredpos1,
    cdesiredpos2, cdesiredpay1, cdesiredpay2, cte, availsun1,
    availsun2,
    availmon1, availmon2, availtue1, availtue2, availwed1,
    availwed2,
    availthur1, availthur2, availfri1, availfri2, availsat1,
    availsat2, casppos,
    cattsuce) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 201,
    1, 9, Request.Form("cssn")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 50, Request.Form("cfname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 50, Request.Form("cmname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 50, Request.Form("clname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 75, Request.Form("caddr")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202,
    1, 75, Request.Form("caddr1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 202,
    1, 10, Request.Form("capt")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 202,
    1, 15, Request.Form("ccounty")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 30, Request.Form("ccity")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 2, Request.Form("cstate")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 5, Request.Form("czip")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 10, Request.Form("chphone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 10, Request.Form("cmphone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 10, Request.Form("cophone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 202,
    1, 1, Request.Form("qlegal")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param16", 202,
    1, 15, Request.Form("ost")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param17", 202,
    1, 10, Request.Form("qref")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param18", 202,
    1, 25, Request.Form("refemp")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param19", 202,
    1, 25, Request.Form("webother")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param20", 202,
    1, 1, Request.Form("qage")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param21", 202,
    1, 1, Request.Form("qgrpast")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param22", 202,
    1, 10, Request.Form("qgrpastsel")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param23", 202,
    1, 1, Request.Form("qgrrel")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param24", 202,
    1, 10, Request.Form("qgrrelsel1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param25", 202,
    1, 10, Request.Form("qgrrelsel2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param26", 202,
    1, 3, Request.Form("qcontact")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param27", 202,
    1, 1, Request.Form("qterm")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param28", 202,
    1, 35, Request.Form("cdesiredpos1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param29", 202,
    1, 35, Request.Form("cdesiredpos2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param30", 202,
    1, 25, Request.Form("cdesiredpay1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param31", 202,
    1, 25, Request.Form("cdesiredpay2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param32", 202,
    1, 15, Request.Form("cte")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param33", 202,
    1, 35, Request.Form("availsun1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param34", 202,
    1, 35, Request.Form("availsun2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param35", 202,
    1, 35, Request.Form("availmon1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param36", 202,
    1, 35, Request.Form("availmon2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param37", 202,
    1, 35, Request.Form("availtue1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param38", 202,
    1, 35, Request.Form("availtue2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param39", 202,
    1, 35, Request.Form("availwed1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param40", 202,
    1, 35, Request.Form("availwed2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param41", 202,
    1, 35, Request.Form("availthur1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param42", 202,
    1, 35, Request.Form("availthur2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param43", 202,
    1, 35, Request.Form("availfri1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param44", 202,
    1, 35, Request.Form("availfri2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param45", 202,
    1, 35, Request.Form("availsat1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param46", 202,
    1, 35, Request.Form("availsat2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param47", 201,
    1, -1, Request.Form("casppos")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param48", 201,
    1, -1, Request.Form("cattsuce")) ' adLongVarChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
    End If
    %>

    Seems Adobe has a bit of a mistake there in the insert
    behavior.
    This line appears just below the query (you'll see VALUES
    with a lot of
    question marks):
    MM_editCmd.Prepared = true
    Change it to
    MM_editCmd.Prepared = false
    That will fix you up.
    "Daniel" <[email protected]> wrote in message
    news:f05ce4$s04$[email protected]..
    >i finally got my 1st of 5 pages setup to insert, validate
    and redirect..
    >but now i get an error i have no idea what it means
    >
    > The page loads fine, but when i attempt to submit the
    page to insert the
    > record, i receive the error below...
    >
    >
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e14'
    > [Microsoft][ODBC SQL Server Driver][SQL
    Server]Parameterized Query '(@P1
    > text,@P2 nvarchar(50),@P3 nvarchar(50),@P4
    nvarchar(50),@P5' expects
    > parameter @P18, which was not supplied.
    >
    > /cemp_app1.asp, line 123
    >
    >

  • Cannot figure jdbc connection string using LDAP to lookup db

    I found only one example of this
    "jdbc:oracle:thin:@ldap://ldap.acme.com:7777/sales,cn=OracleContext,dc=com"
    My ldap.ora file has this in it:
    DEFAULT_ADMIN_CONTEXT = "dc=ba,dc=ssa,dc=gov"
    DIRECTORY_SERVERS= (s07a29b.ba.ssa.gov:389:636,s1pta34.ba.ssa.gov:389:636,r24300a.ba.ssa.gov:389:636)
    My db is ismarts1
    I've tried all variations I can think of and cannot get it to work. Most obvious would be this:
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389:636/ismarts1,dc=ba,dc=ssa,dc=gov
    but it is not working...
    I don't get the 2 port numbers (if that's what they are) in the ldap.ora list of servers.

    You've confirmed that it works in sql*plus?
    The typical format of the url is
    jdbc:oracle:thin:@ldap://[host]:[port]/[database],cn=OracleContext,[dc=...,dc=...]In your case, you might try
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govSince you do have multiple ldap servers configured, you can also specify more than one in the url separated by a space.
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=gov ldap://s1pta34.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govThe 2 port numbers specify the ports ldap listens on, the first being non-ssl and the second being ssl.

Maybe you are looking for

  • I have an Ipod touch and recently bought an Ipad Mini,  can I use the same apple ID on theses devices

    I have an Ipod touch and and Ipad Mini.  Can both share my Itunes Library and my Apple ID?

  • Splitting and loading a movie in segments

    Help would be greatly appreciated. I am trying to figure out the best practices for loading a movie. I have an empty clip set up with a preloader that loads the swf file, but the wait time is too long. I want to split up the movie and load sections a

  • Must restart mac so internet works

    When I want to use my school or house internet I have to restart my mac, I don't know why but when I run Safari it says that connection to Internet failed, so I have to close all my work, all the documents I'm using to do my work, everything, which i

  • Can one put XP image on the second disk with "img"?

    Hi all, We have a requirement to put in two IDE disks in the same machine and image the machines with different XP systems, each hard disk hosting one operating system. I was wondering whether Zen "img" utility allows for putting images on more then

  • How to get iPod Hifi open?

    I want to open the darned thing up. I'm going to put a wifi interface inside it. I don't want one plugged into the back as it would be messy. I'm also going to add a video out port to the back. How on earth do you get it open though? Where are the sc