Viewing 15 posts - 6,736 through 6,750 (of 7,164 total)
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 6, 2011 at 9:56 am
JimS-Indy (4/5/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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];
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 5, 2011 at 10:48 am
In short, yes.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 5, 2011 at 10:46 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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
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...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 5, 2011 at 6:33 am
Pressing F5 does invoke the functionality that "executes the query"...however since you have told SSMS to put the results of the query into a file it has to ask you...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 4, 2011 at 11:05 am
Fun post so far 😛
Just a hunch, but your OLE DB provider for DB2 may not support parameter substitution.
From working with some LASP (Linux, Apache, SQL Server, PHP) devs where...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 1, 2011 at 5:26 pm
Added attachments.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 1, 2011 at 4:27 pm
TheSQLGuru (3/31/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 1, 2011 at 4:25 pm
Viewing 15 posts - 6,736 through 6,750 (of 7,164 total)