By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,414 Members | 1,586 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,414 IT Pros & Developers. It's quick & easy.

porblem of string

P: 1
What are the problems to construct SQL statement in the following way. (strID will be assigned user input value)

string strID;
string strSQL = “SELECT * From ItemMaster WHERE ID = ‘” + strID + “’”;
Feb 3 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 2,878
What front-end are you using? This could be more of a question about your front-end than SQL Server.

Good Luck!!!

~~ CK
Feb 3 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.