| | |
Parameters in SQL help with ASP.NET
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
I am trying to alter some SQL to use parameters. I bypassed this earlier as it was just not working but am now heading back to tidy up. For some reason I cannot get this to work, keep in mind I am using Odbc:
Anyway I try, I cannot get the parameters to add to the SQL string. In the Odbc database, this column is BigInt(20). I have just been adding it directly into the SQL string, but am now converting that to parameters but cannot figure how. Any help would be appreciated!
ASP.NET Syntax (Toggle Plain Text)
SQLString = "SELECT * FROM Stories WHERE StoryID=?" 'cmdSelectStory.Parameters.Add( "?StoryID", OdbcType.BigInt ) 'cmdSelectStory.Parameters.Add( "?StoryID" ).Value = strStoryID
![]() |
Similar Threads
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- ASP.NET Registration Page (ASP.NET)
- NEWBIE - Insert data from ASP.Net application into mutiple SQL tables (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- tool for converting java/sql codes to asp.net/sqol2000 (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: adding WinForm in VB.NET
- Next Thread: UPDATE query problem
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol fileuploader findcontrol flash flv forms gridview gudi homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings redirect registration relationaldatabases rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml






