Viewing 15 posts - 181 through 195 (of 195 total)
You can always specify your own name for the constraint using the following syntax
col1 int CONSTRAINT [yourname] FOREIGN KEY REFERENCES othertable(PK))
January 28, 2010 at 5:22 am
For converting the number to a date, you can use the DateSerial function:
Description
Returns a Date value representing a specified year, month, and day, with the time information set to midnight...
January 28, 2010 at 5:14 am
Raise the value for the MaximumErrorCount property of your For Each container. By default it is set to 1 which makes the loop stop iterating when an error is...
January 28, 2010 at 4:49 am
My pleasure.
Coalesce will work as well. ISNULL is said to be a tiny bit more efficient, coalesce on the other hand is ANSI standard...
A difference with ISNULL is that coalesce...
January 28, 2010 at 4:30 am
January 28, 2010 at 3:47 am
Change the select * part of your query to something like this
select ...
,isnull([01],0) as [01]
,isnull([02],0) as [02]
...
January 28, 2010 at 3:42 am
Because you say your table is big and you don't seem to have the right indexes, you can use the following as an alternative to doing a select distinct or...
January 28, 2010 at 3:08 am
You're welcome.
Can't help you with the link - I'm not a programmer myself :-).
Actually, you do not really need a script task to solve your problem: you can use an...
January 28, 2010 at 2:00 am
Try this:
Public Sub Main()
Dts.Variables("Datum").Value = Right("0" & DateAdd(DateInterval.Day, -8, Today).Year, 2) & Right("0" & DateAdd(DateInterval.Day, -8, Today).Month, 2)...
January 28, 2010 at 1:26 am
To get the syntax correct, you should remove the word cursor and move the line starting with INTO before the from statement, similar to:
SELECT columns
INTO #temptable...
January 28, 2010 at 12:58 am
If you want to learn about BI from a business perspective, I would recommend Successful Business Intelligence: Secrets to Making BI a Killer App.
If you are looking for something more...
January 28, 2010 at 12:18 am
I use a multi-tier approach. Basically, all my configuration settings are stored in a sql server database. To point my packages to this database, I use an indirect configuration. This...
January 28, 2010 at 12:10 am
There are no precedence constraints in a Data Flow Task. I guess this is either a bug or by design. It would indeed be more convenient in some situations for...
January 27, 2010 at 7:30 am
Add a Row Count Transformation between your Conditional Split and your Script. In the Script, check the value of the row count: if it is 0, leave your variable unchanged,...
January 27, 2010 at 12:54 am
The following also seems to do the trick (I'm using SQL Server 2008) and is more elegant than the For Loop:
on the properties of the Event Handler (note that I...
January 25, 2010 at 6:47 am
Viewing 15 posts - 181 through 195 (of 195 total)