SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 execute and insert
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peace
Constraint Violating Yak Guru

410 Posts

Posted - 03/17/2013 :  23:00:00  Show Profile  Reply with Quote
can we execute and insert into a table?

execute [..].[storeProcA] '2013-01-01','2013-01-10'
insert into tableA

jezemine
Flowing Fount of Yak Knowledge

USA
2886 Posts

Posted - 03/18/2013 :  00:43:26  Show Profile  Visit jezemine's Homepage  Reply with Quote
Yes. Put insert first though like in this example

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=82388



elsasoft.org
Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2218 Posts

Posted - 03/18/2013 :  01:40:42  Show Profile  Reply with Quote

INSERT INTO tableA
execute Servername.DBName.SchemaName.[storeProcA] '2013-01-01','2013-01-10'

Here source and target servers are different, then create linked server for source and target servers...
Then follow the above syntax


--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000