Viewing 15 posts - 9,901 through 9,915 (of 18,923 total)
SELECT DATEADD(D, 0, DATEDIFF(D, 0, GETDATE()))
IIRC, there's a slightly faster version to make this conversion (like 5% faster), but I can't recall what it is. Anyhow if you are not...
May 9, 2007 at 10:55 am
I'm not sure I'm following here. Care to expand a little on your idea?
May 9, 2007 at 10:36 am
It's not that you must. I think you came on one of the rare exceptions.
May 8, 2007 at 2:58 pm
Something like this should do it.
ORDER BY FullName, s.[Phone], s.[HomePhone], a.[PersonalEmail], s.[tyUserID], s.[Email], ShippingAddress, u.ttUserID ASC
May 8, 2007 at 2:35 pm
I can't wait to see what other dbas have to say about this one. I'm sure there must be a way for you to make this change without stopping the...
May 8, 2007 at 2:32 pm
There seriously can't be that many hits a second to continuously block that object. Are you sure that there isn't a dead lock already in place???
May 8, 2007 at 1:27 pm
DECLARE @sql AS VARCHAR(8000)
SET @sql = 'SELECT ''' + @TableName + ''' As TableName, COUNT(*) AS Total FROM dbo.' + @TableName
INSERT INTO dbo.Stats (TableName, Total)
EXEC (@SQL)
[Edited]
May 8, 2007 at 11:09 am
How about disabling the trigger first (alter table tblname disable trigger trname).
Then dropping/modifying it.
May 8, 2007 at 11:07 am
Check out the datadiff function. Then decide how you want to present the data and go from there.
May 8, 2007 at 9:53 am
Month and year table are usefull to do a left join so that months and years without data can still be displayed. The category table doesn't make much sens to...
May 7, 2007 at 12:33 pm
That's why 2 heads are better than 1
.
Happy posting.
May 7, 2007 at 12:29 pm
I'd like to see the create script for this DB
. Permissions included lol.
May 7, 2007 at 12:12 pm
Thanks for sharing this.
Care to send this in the scripts section of the site? That way It'll be more accessible to the users who might need this info.
May 7, 2007 at 12:10 pm
You need one table for the gaz and one for the electricity.
The basic format will look like this :
clientID, ReadDate, Quantity, CostPerUnit (can be in another table with cost,...
May 7, 2007 at 12:07 pm
Viewing 15 posts - 9,901 through 9,915 (of 18,923 total)