NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 76 77 78 79 80 … 159 Next »
Help with ASP.NET/SQL and MS Access

 
  • 0 Vote(s) - 0 Average
Help with ASP.NET/SQL and MS Access
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2008-01-10, 01:38 PM
I have a MS access query that displays a popup box allowing you to enter a value for one of the columns to be searched for (using [WeekNumber] syntax).

How would I supply this programmitacally using ASP.NET/SQL? Or is there a better way of supplying params to lower level queries.

If any of you could help me with this it would be very much appreciated. I can upload the database file somewhere if you think it would be needed.

Thanks Smile
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
taz
Offline

Member

Posts: 102
Threads: 30
Joined: May 2006
#2
2008-01-10, 06:39 PM
Are you looking for something like this?

sql = "ID > 0 AND WeekNumber Like ""*" & [WeekNumber] & "*"""

Taz
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2008-01-10, 07:31 PM
Will give that a try. Thanks
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#4
2008-01-10, 09:52 PM
Via ASP.NET, I'd suggest the preferred way is via a "parameterized query" rather than just building the value into the SQL string.

Building the SQL string manually will work, but can be slower (depending on the actual database), and, more importantly, opens you up to SQL-injection attacks -- which may or may not be a concern.

Still, since it's ASP, which sort of implies "random person from somewhere entering stuff", I would be quite nervous about SQL injection.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access NextPVR remotely without Kodi? devilkepo74 2 2,397 2021-02-05, 11:48 AM
Last Post: Graham
  Network Provider Access jcole998 2 1,894 2020-08-20, 02:44 PM
Last Post: jcole998
  Access control panel from mobile version ? jksmurf 4 2,218 2019-10-22, 08:50 AM
Last Post: jksmurf
  Wiki Access jcole998 1 1,828 2016-11-13, 03:29 PM
Last Post: mvallevand
  No longer have access to shared NPVR data directory on XP server??? HarryH3 2 2,380 2013-11-25, 11:12 AM
Last Post: HarryH3
  Direct access to USB-UIRT via AutoHotkey wtg 0 1,890 2011-01-31, 06:25 PM
Last Post: wtg
  Access Denied (license_expired) Jaggy 3 2,687 2008-09-10, 12:21 AM
Last Post: treads6464
  Wiki access bgowland 1 1,653 2008-04-24, 01:00 AM
Last Post: sub
  Remote Access dct117 2 1,780 2008-03-04, 05:48 AM
Last Post: stustunz
  File access trouble after backup to ext HD TimWS6 18 4,442 2007-09-20, 02:57 AM
Last Post: kayleigh

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode