Viewing 15 posts - 511 through 525 (of 8,416 total)
permono.sam (5/26/2012)
May 26, 2012 at 6:32 pm
Link to INSERT documentation: http://msdn.microsoft.com/en-us/library/ms174335(v=sql.105).aspx
Example code:
DECLARE @temp1 AS TABLE
(
account_id char(5) NOT NULL
...
May 26, 2012 at 7:29 am
Gullimeel (5/25/2012)
Use the followinginsert into @temp1 select "account's value"
Msg 207, Level 16, State 1, Line 2
Invalid column name 'account's value'.
or
insert into@ temp1 select 'account''s value')
Msg 102, Level 15, State 1,...
May 26, 2012 at 7:19 am
sqlfriends (5/1/2012)
I have two tables , the schema is attached. I would like to get the result as the second attachment.
Why do you have comma separated values in your...
May 26, 2012 at 7:16 am
Jeff Moden (5/25/2012)
May 26, 2012 at 7:12 am
sqlfriends (5/3/2012)
Is cross apply no longer available in SQL server 2008?
It was not available in SQL Server 2000, so if your database is set to 2000 compatibility mode (80), you...
May 26, 2012 at 6:55 am
CptCrusty1 (5/25/2012)
I also found an article regarding the query execution order:1. FROM
2. ON
3. OUTER
4. WHERE
5. GROUP BY
6. CUBE | ROLLUP
7. HAVING
8. SELECT
9. DISTINCT
10 ORDER BY
11. TOP
Please bear in mind that...
May 26, 2012 at 6:49 am
Your 2000 instance probably had the CURSOR_DEFAULT database option set to LOCAL (the default is GLOBAL).
See http://msdn.microsoft.com/en-us/library/ms190249(v=sql.105).aspx
Example change script:
ALTER DATABASE <database_name>
SET CURSOR_DEFAULT LOCAL;
May 26, 2012 at 6:33 am
permono.sam (5/26/2012)
May 26, 2012 at 6:27 am
Gullimeel (5/26/2012)
Perform a small test for alternate methods using the most common load Iincluding dmls/maintenance) and see which one is...
May 26, 2012 at 6:03 am
GilaMonster (5/22/2012)
andersg98 (5/22/2012)
May 26, 2012 at 5:09 am
Gullimeel (5/26/2012)
May 26, 2012 at 4:51 am
Gullimeel (5/26/2012)
May 26, 2012 at 4:09 am
Gullimeel (5/26/2012)
You have misunderstood me. I was not chekcing the performance of the min or max in any way or top 1 etc.
You're missing the point. I'm not talking...
May 26, 2012 at 3:20 am
Viewing 15 posts - 511 through 525 (of 8,416 total)