Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

that would be:

exec sp_executesql N'SELECT * FROM users WHERE id = @id', N'@id INT', @id=1



Thanks for the syntax help. It's been awhile. ;-)

For anyone curious, here's an old article on the interface I'm talking about: http://www.techrepublic.com/article/shorten-development-time... Just so you don't think you have to memorize the above syntax.

I'm not sure what's used these days, but I assume it's fairly similar if not simplified a bit. If it's not broke right?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: