Viewing 15 posts - 1,351 through 1,365 (of 3,008 total)
@sql is not available inside exec master.dbo.sp_msforeachdb
You have to include all the code in the stored procedure parameter.
June 28, 2010 at 2:59 pm
If your IO needs are really high, especially for read IO:
MySpace replaces all server hard disks with flash drives
MySpace Replaces Storage with Solid-State Drive Technology in 150 Standard Load Servers
http://www.networkcomputing.com/data-center/myspace-finds-novel-use-of-ssd-technology.php
MySpace...
June 28, 2010 at 10:27 am
Also, you can simply return the IDENTITY values inserted in the OUTPUT clause of the INSERT statement.
This is probably the best solution, and the only good solution for the case...
June 25, 2010 at 1:20 pm
Eugene Elutin (6/25/2010)
Not in the YYYYMMDD format!
As in order to convert it back tp date...
June 25, 2010 at 10:14 am
EXEC sp_MSforeachdb 'USE [?]; EXEC sp_spaceused'
June 25, 2010 at 9:52 am
People need to get past the idea that relational databases are obsolete because they don’t do every possible thing anyone could ever want to do with data.
Doesn’t handle streaming interactive...
June 24, 2010 at 12:06 pm
Look at using the PIVOT operator in SQL Server Books Online.
June 24, 2010 at 10:38 am
I don't think anyone said replace single quotes with double quotes.
You need to replace the single quotes with two single quotes.
June 24, 2010 at 7:36 am
Do it this way so that you don't have to worry about that problem:
select datediff(dd,'19700101',getdate())
Much more info about handling datetime in SQL Server here:
June 24, 2010 at 7:34 am
Homework?
June 24, 2010 at 7:26 am
It could be getting done manually, it could be a scheduled job on another SQL Server, a Windows Scheduled Task on another server, or it could be launched by an...
June 23, 2010 at 12:26 pm
Is there some reason you can't use an editor to replace all single quotes with two single quotes?
June 22, 2010 at 3:22 pm
It is not completely a star vs. snowflake choice.
You could have a snowflake schema that is used to maintain the data correctly, but have a star schema based on rollups...
June 22, 2010 at 12:54 pm
This shows what is happening:
select
BeforeNoon= cast(convert(datetime,'20100622 11:59:59.997') as numeric),
AfterNoon= cast(convert(datetime,'20100622 12:00:00.000') as numeric)
Results:
BeforeNoon AfterNoon ...
June 22, 2010 at 10:26 am
No one is perfect. The most impotent thing for anyone developing code is to test your code completely to make sure it does what you expect.
June 22, 2010 at 9:56 am
Viewing 15 posts - 1,351 through 1,365 (of 3,008 total)