Viewing 15 posts - 736 through 750 (of 819 total)
There is nothing new learn from this question.
The lesson is:
"GO" may be dangerous if no error checking is done!
June 11, 2010 at 1:01 am
If you want an increment of 10, so all values are 0, 10, 20 and so on,
be warn of SET IDENTITY_INSERT <table> ON
may lead to unwanted sequence:
create table #a(i int...
May 31, 2010 at 1:18 am
EXEC('SELECT*FROM[sysobjects]ORDERBY1desc')
In this case the "order by" clause is missing
ORDERBY1desc is the alias of [sysobjects]
May 28, 2010 at 2:28 am
???????????????????????????????????
😎
Try this:
select*from sysobjects order by 1desc
No space in 1desc
May 28, 2010 at 1:27 am
vk-kirov (5/18/2010)
May 18, 2010 at 4:14 am
Starting from sql2000 sp4 and sql2005, sql2008, the optimizer changed strategy to retrieve data when you specify parameters in the where clause. So, in this case "column1 between @from and...
April 28, 2010 at 1:33 am
Ric Sierra (3/22/2010)
Check out this links...http://msmvps.com/blogs/gladchenko/archive/2005/04/06/41083.aspx
http://www.sqlservercentral.com/articles/Security/saveyourpassword/1420/
this undocumented function is available since SQLServer 7
so... what you think?
Thank you! I love undocumented. I learned something new! 🙂
March 23, 2010 at 1:53 am
if one table has one o more rows and the other is void, the result is 0.
NumberOfRows * 0 = 0
March 11, 2010 at 1:05 am
stewartc-708166 (2/22/2010)
Good question.
Please do not post useless thinks.
February 23, 2010 at 12:58 am
The main problem is not the format of date (dmy or mdy or ymd) nor if monday is the first day of the week, but identify the day '2010-2-1' as...
February 19, 2010 at 2:48 am
This code is indipendent from datefirst:
Monday is 0 and Sunday is 6
SELECT cast(cast('20100215' as datetime) as int)%7
SELECT cast(cast('20100216' as datetime) as int)%7
SELECT cast(cast('20100217' as datetime) as int)%7
SELECT cast(cast('20100218' as datetime)...
February 19, 2010 at 1:22 am
create table XPCmdShellOutput (OutputLine varchar(1000), ID INT IDENTITY(1,1))
Please add an identity column, so you can have output lines in the correct order
February 2, 2010 at 1:02 am
Viewing 15 posts - 736 through 750 (of 819 total)