Recordsert not working using the GET method

I'm trying to create a recordset that will retrieve a record from MSSQL.
My recordset is like this:
<%
Dim rsAssets__MMColParam2
rsAssets__MMColParam2 = "1"
If (Request.QueryString("type") <> "") Then
  rsAssets__MMColParam2 = Request.QueryString("type")
End If
%>
<%
Dim rsAssets__MMColParam
rsAssets__MMColParam = "1"
If (Request.QueryString("number") <> "") Then
  rsAssets__MMColParam = Request.QueryString("number")
End If
%>
<%
Dim rsAssets
Dim rsAssets_cmd
Dim rsAssets_numRows
Set rsAssets_cmd = Server.CreateObject ("ADODB.Command")
rsAssets_cmd.ActiveConnection = MM_ezcaldatasource_STRING
rsAssets_cmd.CommandText = "SELECT * FROM dbo.assets WHERE ? = ?"
rsAssets_cmd.Prepared = true
rsAssets_cmd.Parameters.Append rsAssets_cmd.CreateParameter("param1", 200, 1, 255, rsAssets__MMColParam2) ' adVarChar
rsAssets_cmd.Parameters.Append rsAssets_cmd.CreateParameter("param2", 200, 1, 255, rsAssets__MMColParam) ' adVarChar
Set rsAssets = rsAssets_cmd.Execute
rsAssets_numRows = 0
%>
Thi s gives me a Server 500 error...if I just I only use 1 parameter, it works fine. Basically, MMColParam2 is a column in the database (either Asset or Serial) which comes from a field on my form.

try this
Dim rsAssets
Dim  rsAssets_cmd
Dim rsAssets_numRows
Set rsAssets_cmd =  Server.CreateObject ("ADODB.Command")
rsAssets_cmd.ActiveConnection =  MM_ezcaldatasource_STRING
rsAssets_cmd.CommandText = "SELECT * FROM  dbo.assets WHERE '"&request.querystring("type")&"' = '"&request.querystring("number")&"'"
rsAssets_cmd.Prepared = true
im thinking it has to do with either there being a blank value passed... or.. the "content type" is wrong

Similar Messages

  • HT4623 I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working f

    I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working fine.

    Have you tried the following troubleshooting document?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    If you end up using the If the iTunes Store opens successfully section of the document, and the "Automatically detect settings" checkbox is already checked, try unchecking and rechecking it and clicking OK.

  • TS1702 My TomTom does not work following the upgrade to IOS 6.0 - I am getting poor GPS reception on my iPhone 3 using my TomTom car kit ( worked fine prior to upgrade!). I have tried to reset Location Services with no luck! - Help...

    My TomTom does not work following the upgrade to IOS 6.0 - I am getting poor GPS reception on my iPhone 3 using my TomTom car kit ( worked fine prior to upgrade!). I have tried to reset Location Services with no luck! - Help...

    Aa2009 wrote:
    he could have a 3gs but doesn't state 3g or 3gs
    Look at his tag line  

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • HT202157 New apple is not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.

    I got new Apple TV 10 days back,its not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.
    I can only see pics and video saved in my iphone. No other options are working.The worst part is that its not asking wifi passoword.
    Not able to connect istores and itunes.
    I cannot do software update. Can anyone help in this content?

    Thanks Brian- I am not connecting it with iphone teethering. I am using it with my DSL wifi.
    I am using it with ethernet cable then its working fine.If i am trying to use it with WIFI then its giving error.
    I tried using Netwrok testing but its giving same error.

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    There are several possible causes for the Black Screen issue
    *1. Permissions in the Library* : Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    *2. Minor Database corruption*: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    *3. A Damaged Photo*: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    *4. A corrupted iPhoto Cache*: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    *5. A corrupted preference file*: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Regards
    TD

  • Using export slide show from iphoto, I am trying to create a DVD of photos and vid clips in large format. The vid clips do not work using burn software. Any idea?

    Using export slide show from iphoto, I am trying to create a DVD of photos and vid clips in large format. The vid clips do not work using burn software. Any idea?

    Have used large format, but using the 'burn' software, I am not getting seamless video quality on DVD even though I am burning at 2* speed. Any ideas? Do I need better software? Or is there a problem with the SuperDrive?

  • Trying to get a refund on an app that do not work, but the report a problem button is grey out

    Hi
    I'm trying to get a refund on an app that do not work, but the report a problem button is gray out & Apple wants £20.00 for support
    where do I go from here
    Thanks

    To report a problem less than 90 days:
    http://reportaproblem.apple.com
    Sign in with the AppleID and Password used for the purchase.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    To report a problem greater than 90 days:
    http://www.apple.com/support/itunes/store

  • I have rented a movie in itunes and i wan't able to watch it because the sound did not work can i get my money refund

    i have rented a movie in thru apple tv and i wasn't able to watch it because the sound did not work can i get my money refund so i can rerent it

    Welcome to the Apple community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • I get this error when I go to imovie, I have instalerat on via appstore, but it does not work. The QuickTime components necessary to view, edit, import and export various types of films are not installed. The components included in the iMovie installer. R

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • HT1203 i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    It is almost as if the program does not exist on my computer. If I search for it, the only thing that comes up is the installer. I cannot find it anywhere despite the fact I have installed it numerous times, uninstalled it and conducted a fresh install, and the Adobe website checks says that it is installed.

  • HT1379 The USB ports on my 30" Cinema are not working.  The monitor has not been used for a year or so, and the computer is a Mac Book Pro, 1012 model running OS Mavericks.  I need to move the computer between two locations, and the other monitor is a 27"

    The USB ports on my 30" Cinema HD display appear to not work.  The monitor has not been used for almost a year, when I upgraded to a new Mac Book Pro and the 27" retina display.  Now I need to move the computer back and forth between two locations using the two displays.  The need for operating USB ports is essential.  Any ideas.  The display appears entirely normal.  Am running OS X 10.9.

    Disregard, problem solved.

  • Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enc

    Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enclosing folders." What on earth does it mean? How can I stop this message from appearing?

    See here:
    I cannot save recent images.

  • Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Get Info' command in the Finder to ensure the file is unlocked and you have permission to access the file.

    I have this massage every time close ps cc
    Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

Maybe you are looking for