Viewing 15 posts - 1,546 through 1,560 (of 3,008 total)
This should be fairly easy to do in SQL, but you really haven't really explained the rules for when the manufacturing year and manufacturing month start, so we can't really...
November 2, 2009 at 2:00 pm
huston.dunlap (10/30/2009)
...Michael, I'm a bit confused on the code below, I'm not familiar with output statements...
What did you find when you looked it up in SQL Server 2005 Books Online?
October 30, 2009 at 5:55 pm
fuzzy528 (10/30/2009)
October 30, 2009 at 5:51 pm
declare @from_month int
declare @months int
select @from_month = 6, @months = 11
set nocount on
declare @t table (num int not null primary key clustered)
insert into @t
-- Just a quick and dirty number...
October 30, 2009 at 3:26 pm
Run this query to see the size of each database file, used space, and unused space.
select
[FileSizeMB]=
convert(numeric(10,2),round(a.size/128.,2)),
[UsedSpaceMB]=
convert(numeric(10,2),round(fileproperty( a.name,'SpaceUsed')/128.,2)) ,
[UnusedSpaceMB]=
convert(numeric(10,2),round((a.size-fileproperty( a.name,'SpaceUsed'))/128.,2)) ,
[DBFileName]= a.name
from
sysfiles a
Results:
FileSizeMB UsedSpaceMB UnusedSpaceMB DBFileName
------------ ------------ -------------...
October 30, 2009 at 3:07 pm
Do not store passwords in a table. Create hashes of the passwords and store the hash. That way, the password cannot be recovered from the value in the...
October 30, 2009 at 2:47 pm
Use an OUTPUT clause to return the rows that were updated, and add a WHERE clause to only update rows that should be changed:
DECLARE @Output_MyTable table
(
MyTablePKintprimary key clustered,
Before_FULLNAMEvarchar(50),
After_FULLNAMEvarchar(50)
)
UPDATE MyTable
SET
FULLNAME =...
October 30, 2009 at 12:46 pm
use master
alter database [MyDatabase] set offline with rollback immediate
alter database [MyDatabase] set online
October 30, 2009 at 8:51 am
They could have the camera there because they are annoyed by people dropping off their kids blocking traffic, blocking their driveway, denting their car, making noise, etc.
October 28, 2009 at 1:27 pm
Even if you have concerns, what can you really do about it?
Are there any laws that restrict where a security camera can be pointed when it is an outside area?
October 28, 2009 at 10:16 am
Gift Peddie (10/27/2009)
I have to agree with Microsoft because SSRS usually randomly reject normal T-SQL code and to resolve most problems it generally throws strange execution context errors which...
October 28, 2009 at 9:50 am
bump
October 27, 2009 at 10:15 am
GSquared (10/23/2009)
MVJ: That's already been suggested. That's what the report pulls its data from.
I suggested this because you can find info in the trace that the report does not...
October 23, 2009 at 9:00 am
Object changes are captured by the default trace, so you should be able to find the information there.
http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/
October 23, 2009 at 8:28 am
This script will truncate tables that are not referenced and delete the data from tables with foreign key references and then reseed the identity columns.
Truncate All Tables
October 22, 2009 at 12:15 pm
Viewing 15 posts - 1,546 through 1,560 (of 3,008 total)