Viewing 15 posts - 931 through 945 (of 1,413 total)
SELECT ITEM_NO, iv.ITEM_VEND_ID, PRICE, ivp.CTLG_NO
FROM ITEM i
INNER JOIN ITEM_VEND iv ON i.ITEM_ID = iv.ITEM_ID
INNER JOIN ITEM_VEND_PKG ivp ON iv.ITEM_VEND_ID = ivp.ITEM_VEND_ID
WHERE i.ITEM_NO = '3501'
AND iv.ITEM_VEND_ID = (SELECT MAX(ITEM_VEND_ID) FROM ITEM_VEND...
April 20, 2005 at 3:45 pm
>On a slightly different note I have some "horrible" views which work 100 times fater if I can turn off parallelism
http://blogs.technet.com/mat_stephen/archive/2005/02/08/369120.aspx
April 20, 2005 at 6:47 am
The statement in the EXEC is run in a separate batch, so it needs to be declared there.
However I think I would rather suggest that you change the design of...
April 20, 2005 at 5:03 am
Try my article here at SQLServerCentral: Fragmentation 101
April 20, 2005 at 12:48 am
If the table always contains two rows for each id, then this should work.
SELECT t1.id, t1.key, t1.val, t2.key as key2, t2.val as val2
FROM sometable t1
INNER JOIN sometable t2 ON t1.id...
April 19, 2005 at 4:25 pm
Depending on how a 'fairly complex SP or statement' is written, it will often be much slower when executed with SET FORCEPLAN ON. If you use that you are now...
April 19, 2005 at 2:01 pm
As Remi shows, this way of naming procedures can be used to group them together and drop them all with one DROP-statement. However it is not used by SQL Server...
April 19, 2005 at 1:53 pm
Is this KB of any help? http://support.microsoft.com/default.aspx?scid=kb;en-us;308766
April 19, 2005 at 7:42 am
April 19, 2005 at 6:05 am
No, if you are sysadmin you can do:
EXEC master.dbo.sp_password @new = 'NEWPASSWORD', @loginame = 'LOGINNAME'
The old password parameter is optional.
April 19, 2005 at 6:03 am
What do you want to do? Just store a big enough value in the column? Then you can just convert the varchar, like this:
DECLARE @foo VARBINARY(MAX)
SET @foo = CONVERT(VARBINARY(MAX), REPLICATE('foo',...
April 19, 2005 at 4:50 am
The version using Stream is best, imo. The problem might be that the account running ASP does not have access to the local file you have specified.
April 19, 2005 at 4:47 am
>waht i do is I introduce a new Field in every table that atcs a primary key.
>Am i wrong ?
Yes, like I said you have confused primary keys with surrogate...
April 19, 2005 at 4:45 am
Maybe you should be asking at a Postgres forum instead then? Not that we do not want to help with non-SQL Server questions, but it is quite possible that you...
April 19, 2005 at 4:41 am
David, you did get them mixed up.
The clustered index key is stored with other index keys (in non-clustered indexes). A primary key can...
April 19, 2005 at 2:23 am
Viewing 15 posts - 931 through 945 (of 1,413 total)