I have a stored procedure for query some data. I want get this data and put into table or update the table with these data. how can i get this? I have tried many methods and all fail. somebody can help me please??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can run the Stored Procedure using OPENQUERY if it doesn’t use parameters, or if you can hardcode the parameters, e.g.
(Replace SQLSERVER with the name of the server/instance.)
Or you can put the data from the proc into a temp table then join to it, e.g.
(where you first create #tmptablename with the exact columns expected from the resultset from proc “ABC”)