Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pharoah35
Yak Posting Veteran
81 Posts |
Posted - 2004-06-29 : 12:52:57
|
| Good afternoon Ladies & GentlemenI have the following ASP Code which seems to have a problem.Could one of you good people please take a look and tell me where the problem may be. It does not update the Table at all. Thanks so much in advance for your help.-----------------------------------------------------------------<%Set Con = CreateObject("ADODB.Connection")Con.Open Application("CISCO_connectionstring")Set cmd = CreateObject ("ADODB.Command") Set cmd = Server.CreateObject("ADODB.Command")cmd.ActiveConnection= Concmd.commandtype = 4cmd.CommandText = "sp_new_demo_request" cmd.Parameters("@CiscoRep") =request("CiscoRep")cmd.Parameters("@CiscoRepPhone") =request("CiscoRepPhone")cmd.Parameters("@CiscoRepEmail") =request("CiscoRepEmail")cmd.Parameters("@CiscoRepMgrEmail") =request("CiscoRepMgrEmil")cmd.Parameters("@TRNTAccountRep") =request("TRNTAccountRep")cmd.Parameters("@AccountName") =request("AccountName")cmd.Parameters("@AccountNumber") =request("AccountNumber") cmd.Parameters("@Address") =request("Address")cmd.Parameters("@City") =request("City")cmd.Parameters("@State") =request("State")cmd.Parameters("@ZipCode") =request("ZipCode")cmd.Parameters("@AccountContact") =request("AccountContact")cmd.Parameters("@AccountPhone") =request("AccountPhone") cmd.Parameters("@Info") =request("Info")cmd.Parameters("@PAssist") =request("PAssist")cmd.Parameters("@ConfConn") =request("ConfConn")cmd.Parameters("@CallMgrExp") =request("CallMgrExp")cmd.Parameters("@CallMgr") =request("CallMgr")cmd.Parameters("@Unity") =request("Unity")cmd.Parameters("@IPCC") =request("IPCC")cmd.Parameters("@Firewall") =request("Firewall")cmd.Parameters("@WirelessNet") =request("WirelessNet")cmd.Parameters("@Other") =request("Other")cmd.Parameters("@OtherDesc") =request("OtherDesc") cmd.Executeset cmd = nothing %> |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-06-29 : 12:54:08
|
| Does the stored procedure work in Query Analyzer?Tara |
 |
|
|
pharoah35
Yak Posting Veteran
81 Posts |
Posted - 2004-06-29 : 14:08:13
|
| Hi TaraIt does work in QA, but the ASP code does not updatethe tableEric. |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2004-06-29 : 15:25:11
|
| Does SELECT name FROM master.dbo.sysobjects where name ='sp_new_demo_request'return any rows? (please connect to the appropriate server first!)Kristen |
 |
|
|
mohdowais
Sheikh of Yak Knowledge
1456 Posts |
Posted - 2004-06-30 : 03:09:08
|
hmmm...haven't seen that syntax before. You need to first create the parameters before you can assign the values. Here's an example:Cmd.Parameters.Append (Cmd.CreateParameter("link_id", adInteger, adParamInput, , Request.QueryString("Id")))If you haven't included the adovbs.inc file anywhere in your project, you will need to substitute the enum values for the datatype (adInteger)OS |
 |
|
|
|
|
|