Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 932 results for
parameterized
- Page 1
Parameterized Query '(@name varchar(8000))select firstname,image from register where
Programming
Web Development
14 Years Ago
by mith_cool
… trying to retrieve that image am getting the following exception
Parameterized
Query '(@name varchar(8000))select firstname,image from register where…
Parameterized Query Error
Programming
Web Development
13 Years Ago
by jellybeannn
… database, but I receive this error: [COLOR="red"]
Parameterized
Query '(@i1 int,@i2 varchar(50),@i3 varchar(50),@i4…
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by rohand
… database, but I receive this error: [COLOR="red"]
Parameterized
Query '(@i1 int,@i2 varchar(50),@i3 varchar(50),@i4…
parameterized queries on a public function..
Programming
Software Development
13 Years Ago
by jlego
… ID = whatever") [/code] for example how could i implement
parameterized
queries into a function like this? thanks
Parameterized query to prevent Sql Injection attacks
Programming
6 Years Ago
by vin_1
Good day! Could you guys give me link or any tutorial about using
parameterized
query esp. in CRUD, I'm developing an enrolment system and I'm using C#.net and Mysql database.. I hope you can help me. TIA
Re: Parameterized query to prevent Sql Injection attacks
Programming
6 Years Ago
by Reverend Jim
You can find code samples for that in my snippets post [here](https://www.daniweb.com/programming/software-development/code/445801/use-
parameterized
-queries-to-avoid-sql-injection-attacks)
Re: parameterized query
Programming
Software Development
18 Years Ago
by tgreer
Look at [B]Server.Transfer()[/B]. How is this question related to a "
parameterized
query", by the way?
Use Parameterized Queries to Avoid SQL Injection Attacks
Programming
Software Development
11 Years Ago
by Reverend Jim
… posted result in one or more comments like "use
parameterized
queries to avoid SQL injection attacks". I won't… this reason I much prefer SQLDB. Another advantage to using
parameterized
queries is it avoids awkward syntax when building queries. Instead…
Re: Use Parameterized Queries to Avoid SQL Injection Attacks
Programming
Software Development
11 Years Ago
by adam_k
…'t we had this conversation already? Anyway, I agree with
parameterized
queries but use them with stored procedures as G_Waddell is…
C# calling parameterized Oracle storage procedure ?
Programming
Software Development
17 Years Ago
by emeraldth
Hi All, I'm trying to call a
parameterized
stored procedure in C# using microsoft ODBC .NET. Could you …
JSP-SQL Query to Access DB with Parameterized Query
Programming
Web Development
15 Years Ago
by Hockey-nut
I'm new to JSP and trying to do a
parameterized
query. I've been able to do single stream queries …
The Type Class is not generic; it cannot be parameterized with arguments <T>
Programming
Software Development
15 Years Ago
by new_2_java
…: [code] The type Class is not generic; it cannot be
parameterized
with arguments <T> [/code] Can someone please comment…
classic ASP parameterized insert query
Programming
Web Development
14 Years Ago
by munna_001
i am writing
parameterized
insert query uisng asp but get the following error --------------//error …
Re: classic ASP parameterized insert query
Programming
Web Development
14 Years Ago
by WebspoonUK
[QUOTE=munna_001;1198627]i am writing
parameterized
insert query uisng asp but get the following error --------------//error …
System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow in parameterized query
Programming
Web Development
12 Years Ago
by nickg21
…, and to add the entry into the database via a
parameterized
query. Initial Setting of Session for the UsersID [CODE] Dim…
Create database with the name parameterized
Programming
Databases
11 Years Ago
by joslup9
… create a data base gives the name of the same
parameterized
? Example in a store procedure, named 'x', which has a…
Re: Parameterized Query '(@name varchar(8000))select firstname,image from register where
Programming
Web Development
14 Years Ago
by kvprajapati
I think you should use logname, [code] ImageUrl='<%# "profileimage.ashx?[COLOR="Red"]loginname[/COLOR]=" + Eval("loginname")%>'/> [/code]
Re: Parameterized Query '(@name varchar(8000))select firstname,image from register where
Programming
Web Development
14 Years Ago
by mith_cool
thanx a lot dude. m able to retrieve the image. Just a one thing if i need to retrieve the image of a particular user not all the users in the database what am suppose to do then. if possible please let me know the code...
Re: Parameterized Query '(@name varchar(8000))select firstname,image from register where
Programming
Web Development
14 Years Ago
by kvprajapati
[b]>if i need to retrieve the image of a particular user not all the users in the database what am suppose to do then.[/b] [code=text] select firstname,image from register where loginname=@name [/code]
Re: Parameterized Query '(@name varchar(8000))select firstname,image from register where
Programming
Web Development
14 Years Ago
by mith_cool
not it doesnt work. will you elaborate?
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by dnanetwork
[CODE] SqlCommand comm = new SqlCommand(); comm.CommandType = CommandType.Text; comm.Connection = conn; comm.CommandText = "update users set user_name=@user_name,user_first=@user_first, user_last=@user_last where user_id=@user_id"; comm.Parameters.AddWithValue ("@user_name",user_name.Text.…
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by jellybeannn
Thanks for all the replys. rohand I tried what you suggested but still get the error. pInsert[0] = new SqlParameter("@i1", SqlDbType.VarChar, 5, customer_dd.SelectedValue.ToString()); pInsert[0] = new SqlParameter("@i1", SqlDbType.Int, 5, Int32.Parse(customer_dd.SelectedValue.ToString()); dnanetwork In your code you are …
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by jellybeannn
[code] SqlConnection cnn = new SqlConnection(connectionString); SqlCommand comm = new SqlCommand(); comm.CommandType = CommandType.Text; comm.Connection = cnn; comm.CommandText = "INSERT INTO invoice (c_id=@c_id, date_added=@date_added, customer=@customer, status=@status, items=@items, …
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by dnanetwork
everything cool except i think your insert syntax is wrong.. it should be insert into yourtable (fields) values (field parameters); only change the query, it will work.
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by jellybeannn
Cool thanks alot!
Re: Parameterized Query Error
Programming
Web Development
13 Years Ago
by crishjeny
hi Its a very good question but i have one example.you can refer it and i think it will help you. [B] With SQL Server: [/B] With cmd.Parameters: .Add(New SQLParameter("@Firstname", frmFname.text)) .Add(New SQLParameter("@LastName", frmLname.text)) .Add(New SQLParameter("@Address", frmAddress.text)) .Add(New …
Re: parameterized queries on a public function..
Programming
Software Development
13 Years Ago
by jlego
also, before the information is passed to this function i do clean the input fields.. example, if it is a textbox i dont allow entries like / \ or ' " after focus is left from the textbox it is cleaned from invalid characters (to prevent copy and paste) this is also just another example of how i try to protect from SQL injection.
Re: parameterized queries on a public function..
Programming
Software Development
13 Years Ago
by kvprajapati
I think this is VB6 question. isn't it?
Re: parameterized queries on a public function..
Programming
Software Development
13 Years Ago
by jlego
no its in .net
Re: parameterized queries on a public function..
Programming
Software Development
13 Years Ago
by kvprajapati
Have look at this code. [code] Public Class DB Private mCmd As ADODB.Command Private CnStr As String = "...connection...string" Public Sub New(ByVal Sql As String) Dim Cn As New ADODB.Connection Cn.ConnectionString = CnStr mCmd = New ADODB.Command mCmd.CommandText = Sql Cn.Open()…
1
2
3
16
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC