Viewing 15 posts - 1,711 through 1,725 (of 3,011 total)
Lamprey13 (7/21/2009)
If you are looking for something better do a search for "sql fuzzy match" There are bunches of articles...
July 21, 2009 at 4:35 pm
What is the data type of the AMOUNT column?
Could it be a MONEY datatype that you are stripping the last 2 digits from to show with 2 decimal places?
July 20, 2009 at 5:24 pm
Do it this way to get the date in decending order within amount.
ORDER BY
AMOUNT DESC,
...
July 20, 2009 at 5:18 pm
The date looks OK to me. Why do you think the date is "messed up".
July 20, 2009 at 5:04 pm
It would be helpful if you could explain the actual requirement that you are trying to meet.
July 20, 2009 at 2:08 pm
Why no just use BACKUP and RESTORE to make a copy of the database?
It will create an exact copy of all database objects and files.
July 20, 2009 at 11:47 am
Lynn Pettis (7/20/2009)
July 20, 2009 at 9:57 am
The logic for Age in this select statment shows a simple way to do it.
declare @date_of_birth datetime
set @date_of_birth = '19770801'
select
...
July 20, 2009 at 8:39 am
Peso (7/17/2009)
Are you using Enterprise Edition?If so, read about CDC (Change Data Capture).
Isn't that a SQL Server 2008 feature?
July 17, 2009 at 3:23 pm
Still seems to have a problem with the first tab being indented differently (see below).
Also, can it be fixed so that blank lines show?
select
col1,
col2
from
MyTable
select
col3,
col4
from
MyTable
July 17, 2009 at 7:35 am
If you can't reach the other site, maybe you can reach this one at Tara Kizer's blog:
Defragmenting/Rebuilding Indexes in SQL Server 2005
July 16, 2009 at 12:01 pm
Sample restore command with backup on network share:
restore database MyDatabase
from disk =
'\\MyServer\MyBackupShare\MyDatabase_db_200907160525.BAK'
with
move 'SYS' ...
July 16, 2009 at 8:18 am
I am not sure that I understand what you are after.
You said that you have identified that fastest form of the query already, so what is it you need?
July 15, 2009 at 3:14 pm
This works with all versions of SQL to look at the code for stored procedures, functions, and views:
exec sp_helptext 'MyProcedureName'
July 15, 2009 at 12:50 pm
I think that the primary value is in the discussion, so I am only interested in sites where there is open discussion. Let people post their opinions, disagree, say...
July 15, 2009 at 10:17 am
Viewing 15 posts - 1,711 through 1,725 (of 3,011 total)