-
ASP.NET (
http://www.daniweb.com/forums/forum18.html)
| SheSaidImaPregy | Oct 8th, 2007 2:12 pm | |
| Parameters in SQL help with ASP.NET 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:
SQLString = "SELECT * FROM Stories WHERE StoryID=?"
'cmdSelectStory.Parameters.Add( "?StoryID", OdbcType.BigInt )
'cmdSelectStory.Parameters.Add( "?StoryID" ).Value = strStoryID
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! |
| SheSaidImaPregy | Oct 8th, 2007 3:02 pm | |
| Re: Parameters in SQL help with ASP.NET Sorry, after looking at it I realized that I added the parameters before calling it from the command. Therefore, an error arised. fixed. |
| All times are GMT -4. The time now is 3:30 am. | |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC