Viewing 15 posts - 6,361 through 6,375 (of 18,926 total)
ColdCoffee (5/6/2011)
Like this:{CRAP CODE}
DECLARE @openorder INT
SET @openorder = 2
DECLARE @tbl TABLE (openorder INT)
INSERT INTO @tbl (openorder)
SELECT 0
UNION ALL
SELECT 1
UNION ALL
SELECT 2
--UNION ALL
SELECT * FROM @tbl o
WHERE
...
May 6, 2011 at 11:13 am
Lamprey13 (5/6/2011)
DECLARE @i INT = 0WHILE @i <= 10
BEGIN
SET @i = (@i % 10)...
May 6, 2011 at 10:21 am
What do you need to do exactly?
DECLARE @I INT
SET @I = 1
WHILE @I < 11
BEGIN
PRINT 'Warning this is an infinite loop'
SET @I = @I + 1
IF @I = 10
BEGIN
SET @I...
May 6, 2011 at 10:20 am
You can use this to generate the data.
http://www.red-gate.com/products/sql-development/sql-data-generator/
Or you can do it manually using this exemple :
http://www.sqlservercentral.com/articles/T-SQL/68467/
Go to the section called "Populate the Test Table with Randomized Data".
Option 2...
May 6, 2011 at 10:18 am
Rebuild of the index assuming a good amount of page should eliminate it (maybe not 0%, but certainly not 99% left).
Run this to get all the corruptions errors in the...
May 6, 2011 at 10:07 am
How can you say a server is not needing 100 GB ram?
I've heard about multi TB dbs. 100GB for that is not overkill.
May 6, 2011 at 9:55 am
By the way there must be 50 000 hours of tuning expertise between Gail and I... which you are promptly refusing to use.
So again, good luck. Because you'll need...
May 6, 2011 at 8:01 am
Can't help without the plan.
We can do without the code / data but not without the plan.
Use google to figure out how to replace the cursor with set based code.
Good...
May 6, 2011 at 7:28 am
tommyh (5/6/2011)
antony-688446 (5/5/2011)
I'm sorry, but I don't see the point of wrapping a perfectly useable & readable function with another one. Just adds unnecessary bloat and confusion.
As i stands i...
May 6, 2011 at 6:55 am
replace select * with the list of columns, then use the stuff function on that column rather than the variable I use in my demo.
May 6, 2011 at 6:25 am
Well it's called string manipulation. Why are you forbidden to use those?
DECLARE @a CHAR(6)
SET @a = '123456'
SELECT STUFF(STUFF(@a, 3, 0, ':'), 6, 0, ':')
In the select of your xml...
May 6, 2011 at 6:03 am
GilaMonster (5/6/2011)
GilaMonster (5/5/2011)
Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/Did you check for blocking?
+100
May 6, 2011 at 5:22 am
sqlnaive (5/6/2011)
Insert into dbo.TableA
PageId, col1, col2, col3, col4, col5, col6, col7, col8)
select
(row_number()OVER (ORDER BY col1, col2,...
May 6, 2011 at 5:16 am
Viewing 15 posts - 6,361 through 6,375 (of 18,926 total)