Viewing 15 posts - 631 through 645 (of 2,038 total)
Use a temp table instead of an IN statement and add a IDENTITY. You can JOIN both tables and use ORDER BY.
June 17, 2009 at 6:12 am
You cannot use sp_executesql and define the database as variable. You have to create a complete statement and use either sp_executesql or EXECUTE.
This works fine on my system:
CREATE PROCEDURE usp_CreateDatabase
...
June 17, 2009 at 6:10 am
Do your column names really contain "*" or are you about to create a old style LEFT JOIN?
Flo
June 17, 2009 at 5:52 am
descentflower (6/17/2009)
What things to watch in Execution Plan ?
Have a look for correct index usage and no scans for many rows. Here you can find a currently free download of...
June 17, 2009 at 4:16 am
Use an INNER JOIN or a CTE. Both should scale equal. Sub-queries may cause implicit cursors. Temp tables make no sense for one statement.
I would avoid NOLOCK if you are...
June 17, 2009 at 3:55 am
Did you check if your HD is full?
Did you check if your t-log file space is used or just needs to be shrink?
Did you try to shrink t-log files?
Did...
June 17, 2009 at 3:33 am
As Ken mentioned, if upgrade to SSE2k8 is an option you should do this and use the new table data-types from .Net side.
If you are not able to use SSE2k8...
June 17, 2009 at 2:58 am
Just another script:
http://www.sqlservercentral.com/scripts/anywhere/66000/
To search in all databases just add a loop through databases around the tables part.
Flo
June 17, 2009 at 2:49 am
Just tried on SQL Server 2000. ESCAPE works fine 😉
DECLARE @t TABLE (Txt VARCHAR(20))
INSERT INTO @t
SELECT 'AP_F_SC'
...
June 17, 2009 at 2:44 am
MS changed many things for UAC in Windows 7. This might be the reason why it doesn't work on Vista. However, I used SSE2k8 on Vista with no problems. Currently...
June 17, 2009 at 2:36 am
Hi
Numeric is equal to decimal. But did you have a look to data types MONEY/SMALLMONEY? 😉
Flo
June 17, 2009 at 2:15 am
In SQL Server 2000 your table needs any other unique column (e.g. a identity, guid or timestamp). If it doesn't have one of those a very slow WHILE loop seems...
June 17, 2009 at 2:11 am
You cannot use CONVERT to convert VARBINARY into a hexadecimal string.
Either use this function I also published here (as mentioned in the other script 😉 ):
http://www.sqlservercentral.com/scripts/Hex/65997/
Or, for better performance, use...
June 16, 2009 at 10:26 am
@Lynn: You really like lmgtfy?
😛
June 16, 2009 at 7:28 am
Have a look to my script. You have to insert them like this:
INSERT INTO AnyTable (VarBinaryColumn)
SELECT 0x12345
Flo
June 15, 2009 at 1:02 pm
Viewing 15 posts - 631 through 645 (of 2,038 total)