Viewing 15 posts - 1,291 through 1,305 (of 1,346 total)
This might be better accomplished by a DTS package instead of a stored procedure.
An ActiveX script task in DTS can instantiate a Scripting.FileSystemObject or other COM component to inspect the filesystem...
January 31, 2005 at 1:20 pm
>>Do you believe a Table Valued function will outperform a temporary table used for the same basic purpose,
Unfortunately the answer is "it depends".
Depends on table size and how it is...
January 31, 2005 at 11:40 am
A single DTS package can have multiple data transformations - you just string them together with workflows (or run them in parallel).
Here's an example - I have a package that...
January 28, 2005 at 3:54 pm
[Edit] ahh, nevermind, just noticed the cross-server requirement. Mental note to self, read entire post before replying.
January 28, 2005 at 2:01 pm
Ahh, I assumed nesting. You could always choose to nest, by creating 1 overall procedure that creates the local temp table, then calls the others in the same way that...
January 28, 2005 at 1:58 pm
Do you really need a global temp table then ?
If the purpose is just share data in a temp table between stored procedures, you only need a local temp table,...
January 28, 2005 at 12:56 pm
Check constraints are applied at the Table level:
Select ctu.TABLE_NAME, cc.CHECK_CLAUSE
From INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE as ctu
Join INFORMATION_SCHEMA.CHECK_CONSTRAINTS as cc
on (ctu.CONSTRAINT_CATALOG = cc.CONSTRAINT_CATALOG and
ctu.CONSTRAINT_SCHEMA = cc.CONSTRAINT_SCHEMA and
ctu.CONSTRAINT_NAME = cc.CONSTRAINT_NAME)
January 28, 2005 at 12:08 pm
You could left join for sure.
But what if the datasets are large ? Why pull a large result set to count it, when all you need to do is find...
January 28, 2005 at 8:20 am
For unused space, SQL Server does not auto-shrink and shuffle data onto other pages when you delete rows, so whatever space was allocated stays alocated when you delete. However, before...
January 28, 2005 at 8:16 am
>>Maybe you have an explanation about the behavior of this timestamp in this cases...
I have no idea. If you go back to your original post, we didn't get DDL for the...
January 28, 2005 at 8:01 am
It will depend greatly on the meaning of "last 1000" and how indexes are built on the column or columns that together define "last 1000".
Also depends somewhat on SqlServer version....
January 27, 2005 at 3:15 pm
use tempdb
if exists ( select * from information_schema.tables where table_name = '##YourTableName')
Drop Table ##YourTableName
January 27, 2005 at 2:24 pm
>>I tried putting a print statement with the break to state the table name that the error occured on but it reads as a syntax error.
Print doesn't handle in-line string...
January 27, 2005 at 2:11 pm
If Exists (Select * From TableA
Where SomeColumn Not In
(
Select SameColumn
From TableB
)
)
Return False
Else
Return True
End
January 27, 2005 at 12:12 pm
Use BREAK to get out of the current WHILE loop.
January 27, 2005 at 11:28 am
Viewing 15 posts - 1,291 through 1,305 (of 1,346 total)