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

how can we convert prepare satament of mysql into mssql

P: 2
i want to convert this mysql code into mssql.

SET strSTMTDEFINATION = Concat(SUBSTRING(strSTMTDEFINATION,1,LENGTH(strSTM TDEFINATION) -1),");");



SET @myCREATE := strSTMTDEFINATION;
PREPARE stmt FROM @myCREATE;
EXECUTE stmt;
Nov 19 '08 #1
Share this Question
Share on Google+
2 Replies


ck9663
Expert 2.5K+
P: 2,878
Just use EXEC (@statement_variable) directly. You don't need to prepare the statement, but you have to build the dynamic query string.


-- CK
Nov 19 '08 #2

P: 2
Just use EXEC (@statement_variable) directly. You don't need to prepare the statement, but you have to build the dynamic query string.


-- CK
its working fine . thanks for ur guideline.
Nov 20 '08 #3

Post your reply

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