Viewing 15 posts - 1,246 through 1,260 (of 1,346 total)
I've seen it with to procedure scripts also (when scripted in EM). Happens when an object has been renamed (presumably a bug with EM's caching of object names ?)
Manually modify the...
February 4, 2005 at 4:04 pm
Couple of comments on this ..
If the concern is underlying table changes impacting views, how are functions going to be any less prone to breaking if, say, a column name changes...
February 4, 2005 at 3:42 pm
You're never going to be able to automate a process that requires user input to a GUI.
This is less of a SqlServer/DTS issue and more of a "make the EXE...
February 4, 2005 at 12:12 pm
You need a sub-query to find max date by product code.
Then you need to join to that to pull the most recent BY PRODUCT
Select *
From YourProductTable As t
Inner Join
(
...
February 4, 2005 at 10:11 am
Hmm, only remaining thing I can think of then, is that the faster one is taking place as an "in place" update.
Sql Server can process an Update in 2 ways,...
February 4, 2005 at 9:49 am
In that case I'd construct it as an EXISTS, because you have a compound, 2 column natural key to check.
select s.suiteid As DeletableKey
from suites s
inner join buildings b
on...
February 4, 2005 at 9:19 am
The relationship between Buildings/Suites is not clear. Can 2 different buildings have a suite with the same name ? Or is SuiteName always unique ?
February 4, 2005 at 9:11 am
Don't forget the LEFT JOIN rule - if you place a WHERE condition on any column in the left joined table, you essentially convert the left join to an INNER join.
February 4, 2005 at 9:07 am
See this thread in the MS newsgroups (apologies for the long Google URL):
To sum up, BCP with a Stored Proc executes the proc multiple times - first time with...
February 4, 2005 at 9:01 am
Sorry, got thrown by the thread title.
Without the full DDL of each table, tough to give an answer. What about Triggers & Check Constraints that reference the Date column being...
February 4, 2005 at 8:53 am
Add an "Execute ProcessTask" to your DTS package and in the proerties provide the name of you decryption EXE. Use workflow so that it runs after the FTP task is...
February 4, 2005 at 8:48 am
What about DRI ?
How many tables reference this PK that you're updating ? Remember, when you change a PKey, SqlServer has to check all tables that reference it to ensure...
February 4, 2005 at 8:26 am
Yes, but read the original post:
CREATE FUNCTION fnSelectTable(@TableName varchar(150))
RETURNS Table
AS
RETURN (select * from @TableName)
The design goal is to pass a tablename into a function and have it do something dynamic....
February 3, 2005 at 4:55 pm
>>I'm having trouble using if...then because (best I can determine) you can only have two or at the most three options.
The code you published is obviously pseudo-code. Are you perhaps...
February 3, 2005 at 4:50 pm
Since this requires a correlated update you should probably post the DDL of the tables and specify what keys join them together.
This (untested) SQL would handle the correlated update but...
February 3, 2005 at 4:34 pm
Viewing 15 posts - 1,246 through 1,260 (of 1,346 total)