Viewing 15 posts - 1,276 through 1,290 (of 3,011 total)
rbalmf (8/1/2010)
You're entitled to your opinion of course, strange COBOL...
August 17, 2010 at 3:37 pm
MIN/MAX Across Multiple Columns
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=86906
This script demonstrates two methods for finding the maximum value in a row across a set of columns in the row when any or all of the...
August 16, 2010 at 1:15 pm
It is a way to create an endless loop that you will exit using the BREAK command, instead of when the test condition is true.
while 1=1
begin
<Do something>
if <some condition is...
August 13, 2010 at 3:14 pm
OP might just have SQL Server configured to not use more that 4 GB of memory.
Or the databases are small enough that SQL Server doesn't need more than 4 GB...
August 13, 2010 at 7:19 am
Steve Jones - Editor (8/12/2010)
Note that this only...
August 12, 2010 at 10:48 am
You could cast them to varchar(max) to do the join, or better yet, convert the columns to varchar(max).
A way you could speed this up is to create an indexed integer...
August 12, 2010 at 10:37 am
It is used by people who have a desire to know if their database is corrupt while they still have time to do something to fix it without a catastrophic...
August 12, 2010 at 10:31 am
Rem-487422 (8/10/2010)
Here my trimesters:A trimester is period of three months
Jan to Apr = Trimester #1
May to Aug= Trimester #2
Sep to Dec = Trimester #3
Thanks for your help
Your trimesters...
August 10, 2010 at 12:42 pm
I think you need to post a usable definition of exactly what a trimester is before someone can write code to give you a trimester.
August 10, 2010 at 11:46 am
Not SQL humor, but DBA humor:
A Few Good DBAs
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=46783
The Silence of the DBAs
August 10, 2010 at 11:38 am
select
a.NUMBER
from
-- Function F_TABLE_NUMBER_RANGE available on this link:
-- http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47685
dbo.F_TABLE_NUMBER_RANGE(5001, 5999) a
Results:
NUMBER
-----------
5001
...
August 9, 2010 at 2:07 pm
According to Paul Randal' blog msdb.dbo.restorehistory is not populated by a restore from a snapshot, at least in SQL 2005:
http://www.sqlskills.com/blogs/paul/category/Database-Snapshots.aspx
"So how can I tell when the database was reverted? Books...
August 9, 2010 at 10:22 am
Did you see an entry in [msdb].[dbo].[restorehistory]?
August 5, 2010 at 1:49 pm
You may be looking for:
select * from master.dbo.sysaltfiles
You can use the following script to get more detailed information:
Get Server Database File Information
August 5, 2010 at 1:40 pm
Not using groups becomes impractical at a certain point.
Trying to add individual logins to SQL Servers when you have hundreds of servers, thousands of databases, and 20,000+ users is a...
August 5, 2010 at 12:00 pm
Viewing 15 posts - 1,276 through 1,290 (of 3,011 total)