Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert into in SP won't run
 Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Patron Saint of Lost Yaks

30421 Posts

Posted - 08/22/2006 :  02:18:07  Show Profile  Visit SwePeso's Homepage  Reply with Quote
create proc usp_a @tableName varchar(100) as

declare @sql varchar(200)

set @sql = 'insert into address (id_voter) select id_voter from SS_Import_Voter_Registration.dbo.' + QUOTENAME(@tableName)

exec @sql

exec usp_a '00519'

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.02 seconds. Powered By: Snitz Forums 2000