Viewing 15 posts - 6,736 through 6,750 (of 7,168 total)
I for one am having fun 😉 ...sounds like you are almost there JimS...keep us posted!
April 6, 2011 at 11:46 am
Try it this way:
USE BackupDatabase
GO
SET IDENTITY_INSERT TableA ON
DELETE FROM PrimaryDatabase..TableA
OUTPUT Deleted.PrimaryKey
INTO TableA (PrimaryKey)
WHERE 1 = 1
SET IDENTITY_INSERT TableA...
April 6, 2011 at 11:37 am
db_denydatareader may not be enough depending on what level of access the AD Group affords them. If they have permissions to create or drop tables then db_denydatareader will not prevent...
April 6, 2011 at 11:09 am
JimS-Indy (4/6/2011)
Probly need to execute one at a time.
On second thought. It simply didn't print the whole command. Maybe it's a limitation of the print...
April 6, 2011 at 10:48 am
You'll want to copy the text from the output window containing the DROP FK commands, then in a new query window, paste the content and make a proc out of...
April 6, 2011 at 9:56 am
JimS-Indy (4/5/2011)
April 6, 2011 at 9:04 am
Given that you'll only be generating the schema once I was thinking you would just run the FK script in SSMS, copy the output to a new query window and...
April 5, 2011 at 4:27 pm
I am not sure if that is configurable in SSMA but you can always rename then in bulk after the initial implementation.
Here is a script that deals with standardizing FK...
April 5, 2011 at 2:28 pm
It's a chicken/egg problem...how will you run a query against an instance of SQL Server on a given hostname if you do not know what instances exist on that...
April 5, 2011 at 12:04 pm
I would start by running the Upgrade Advisor against the 2000 server (during low utilization or off hours) to see what recommendations it makes and fully address each: http://msdn.microsoft.com/en-us/library/ms144256.aspx
Here too...
April 5, 2011 at 11:07 am
This will likely perform much better for you since you'll guarantee that all processing will take place on the remote server:
EXEC('delete from lsdb1.dbo.table1 where year(column1) >= 2011') AT [ls1];
April 5, 2011 at 10:48 am
Some random thoughts...
- Try surrounding your identifiers that contain numbers with square brackets:
delete from [ls1].[lsdb1].[dbo].[table1] where year([column1]) = 2011
If that does not work try recreating your Linked Server without any...
April 5, 2011 at 7:09 am
You also mentioned allowig exec on all SPs...for that you can grant EXEC to a user at the schema or database level but this will also allow said user to...
April 5, 2011 at 6:55 am
I would use a Script Task to read line one of the file and then use a function to manipulate the workflow towards or away from processing the file per...
April 5, 2011 at 6:33 am
Viewing 15 posts - 6,736 through 6,750 (of 7,168 total)