Viewing 15 posts - 2,596 through 2,610 (of 2,647 total)
In SSMS, right-click on the database, goto Tasks, then Generate Scripts 🙂
Thanks,
Jared
September 7, 2011 at 12:26 pm
When you set up a maintenance plan, it creates an ssis package and then schedules a job. You must check the credentials on the maintenance plan itself, and then...
September 7, 2011 at 10:02 am
You could still modify what I gave you by inserting the queries used for the temp tables into the from of the final query as subqueries. Union the first...
September 7, 2011 at 8:52 am
Try this:
CREATE TABLE #TEMP (branch_plant int, item_number int, qty int)
CREATE TABLE #TEMP2 (supplier int, branch_plant int, item_number int, long_item_number bigint, item_description varchar(255), consign_on_hand int, warn_on_hand int)
--Insert data into first temporary...
September 6, 2011 at 2:45 pm
This is really an over excessive use of sub-queries. There should be no reason for this. Let me "detangle" this and make some sense of it and I will...
September 6, 2011 at 2:22 pm
A subquery does not know what is outside of it. It only knows what is in itself. Only the larger query can read into a subquery, not the...
September 6, 2011 at 1:07 pm
I think that with the information given, that this is the best approach. Although changing the database and table design may be more beneficial, I am not suggesting anything...
September 5, 2011 at 9:52 am
Ok, this will not work:
USE MASTER
GO
create database distribution on
(filename=''),
(filename='')
FOR Attach
go
This creates a user database named [distribution].
I don't understand what the current issue is... You want to remove distribution in...
September 1, 2011 at 1:31 pm
I would do this if it is feasible:
SELECT p.PartNum, a.Data, b.1Data, b2.Data, ... , n.Data
FROM PARTS p
LEFT JOIN DataTableA a
ON p.PartNum = a.PartNum,
LEFT JOIN DataTableB b1
ON p.PartNum = b1.PartNum
AND b1.Data...
September 1, 2011 at 1:23 pm
Also, for what reasons are you using a second server as the distributor? There are reasons for this, but there may be better reasons to keep the publisher the...
September 1, 2011 at 1:06 pm
Try this: http://msdn.microsoft.com/en-us/library/ms151192.aspx The idea here is that you cannot just create a distribution database the way that you did. This page will show you how to do it...
September 1, 2011 at 1:02 pm
One more link pon using server side trace, but not scripting it.
http://sqlchicken.com/2009/07/how-to-create-a-server-side-trace-with-sql-profiler/%5B/url%5D
Thanks,
Jared
August 31, 2011 at 10:49 am
Grant Fritchey (8/31/2011)
But, running the Profiler GUI against a production server is somewhat risky. The GUI works differently with event queues in the server and can negatively impact the server....
August 31, 2011 at 10:46 am
Run SQL Server Profiler and filter the database name to the one you are interested in. Monitor it for as long as you see fit to determine usage. When...
August 31, 2011 at 10:09 am
You will have to call Microsoft to double check, but I believe that the only difference between Enterprise and Dev edition is the license. You should be able to...
August 31, 2011 at 9:16 am
Viewing 15 posts - 2,596 through 2,610 (of 2,647 total)