
October 5th, 2004, 05:37 PM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Importing Views/SPs in SQL Server
Hi Pinky,
I guess you can use DTS import wizard and select "Copy objects and data between SQL Server Databases" option in "Specify Table copy or query" step of the wizard. This will allow you to select in the next step the views/stored procedures that you want to import.
Another way of manually doing this is: Select whichever views/SPs you want to import (in Enterprise manager), right click and select All Tasks --> Generate SQL Script from the menu. The exeute this sql script on the target database.
Thanks,
Vikram
Quote: | Originally Posted by pinky Hi all,
I am trying to import data from a existing database to a new database in SQL server. IAm able to export the tables along with the data. Iam not able to import the stored procedures and views. Can any body help me out of this problem
Thanks in advance
Pinky |
|