Viewing 15 posts - 706 through 720 (of 1,347 total)
>>What is the advantage of using Where Exists here?
The advantage probably only appears once you reach a certain volume of data being returned from the IN () sub-query. How many...
January 17, 2006 at 3:56 pm
>>Now my question is, is there any issue in using a subquery instead of an Inner Join here?
There is a huge difference depending on the cardinality of the data.
If table...
January 17, 2006 at 2:43 pm
>> can only tell which part of the proc is running by view what files it is updating and by check for certain data values I expect to see
If you...
January 17, 2006 at 1:00 pm
Are you in the correct database context when running this ?
>>where 'obs_object_types' is the name of a table (this does exist and with the expected stucture)
If you use full...
January 16, 2006 at 3:23 pm
IF EXISTS (
SELECT * from t_RATE a
join t_ZIP b ON a.state=b.state
WHERE a.zip = @ZipFrom 
BEGIN
END
January 16, 2006 at 2:35 pm
>>In SQL2000 the list is ordered by parentlft and in SQL2005 the list is unordered.
It was/is a hack in Sql2000 and worked by accident.
A view is just a virtual...
January 16, 2006 at 2:11 pm
When importing from Excel, the driver reads a small number of rows from the worksheet and makes a best guess as to their datatype. In this case, it is probably...
January 16, 2006 at 1:07 pm
>>why would you want to leave this for programmers to have to remember to do.
Well, someone, somewhere has to rememebr
What happens when a...
January 16, 2006 at 11:29 am
If an error has a high enough severity, you can't trap it because the entire batch is terminated and rolled back at that point. Your "If @@Error .." statement never gets to...
January 16, 2006 at 11:24 am
You can find the program name of the session from this:
Select program_name from master..sysprocesses where spid = @@spid
You can run the trigger code conditionally on what that returns. However, it...
January 16, 2006 at 11:09 am
2 choices.
If you have a transform data task, then for the column in question use a VBScript transform and use the VBScript Replace() function to strip the '-'.
Alternatively, load it as is,...
January 16, 2006 at 10:40 am
Some questions & observations ...
- How many rows are in temp table #t ? it is being table-scanned.
>>where CSP.ProductId in (Select ProductId from #Products)
How many rows does this sub-select return ?...
January 15, 2006 at 10:00 pm
What is the maximum number of values that can be in the DataValue column ?
January 13, 2006 at 3:39 pm
SQL 2K is version 80.
That means you are running the database in Sql Server 7.0 compatibility mode, which means SQL2K features aren't available.
January 13, 2006 at 1:32 pm
What is your database compatibiliy level set to ?
sp_dbcmptlevel 'NorthWind'
January 13, 2006 at 12:56 pm
Viewing 15 posts - 706 through 720 (of 1,347 total)