Viewing 15 posts - 106 through 120 (of 424 total)
the list is individual columns of floats. i thought of stringing them together and using my fListToFloats(list,delim) function but i'd like something cleaner, especially since i need to do...
July 10, 2008 at 8:38 pm
the code i gave you should produce the correct fiscal year number. all you need to do is qualify the query with the start of last year's fiscal year:
Shiftdate...
July 10, 2008 at 2:56 pm
thanks. that's annoyed me for months! i kept looking in the View menu and never noticed that option in the Window menu.
July 10, 2008 at 9:04 am
A column named TotalHours is not present in your dbo.TimesheetDetails table. Change TotalHours to the appropriate column.
July 9, 2008 at 9:48 am
ascii code 160 is a non-breaking space. it is different than a normal space (ascii code 32). it's used a lot in html [& nbsp ;]
if...
July 9, 2008 at 9:41 am
jerrym (7/7/2008)
wondering if someone could help me with the following issue in creating the sql
i have a table called 'TimesheetDetails' with columns 'TimesheetID' 'Shiftdate' 'Totalhours'
workers daily timesheet info is...
July 8, 2008 at 3:44 pm
if your heirarchy is just 2 levels (parent, child), then just group by ParentId.
select ParentId, sum(Amount) as total
from {table}
group by ParentId
if your heirarchy is open-ended, you'll need to use a...
July 8, 2008 at 3:21 pm
this should get you started.
declare @xml xml
set @xml ='<root>
<a ID = "1" />
...
July 8, 2008 at 3:15 pm
XML alternative:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create function [dbo].[fListToVarchars]( @list varchar(max), @delim varchar(16) )
returns @returnTable table
( item varchar(255) not null, itemSequence smallint not null )
as begin
...
July 8, 2008 at 3:02 pm
.write() is an in-place edit (ergo the minimal logging) and will perform faster. if you've got a 10mb column value and only want to change/add 400 bytes of data,...
July 8, 2008 at 2:56 pm
i've seen rare instances where the system dbs were not ids 1-4 due to restores of corrupted dbs. and in the shops i have influence over SA never owns...
July 5, 2008 at 7:56 pm
Dont depend on the database id since there may be new system databases introduced in the future. use sys.databases.owner_sid instead.
[font="Courier New"]select ... from sys.databases where owner_sid != 1[/font]
July 3, 2008 at 12:00 pm
It seems that a table that has 1 row for each number_of_months like this should get you started:
declare @Months table ( month int, primary key ( month ) )
insert...
July 3, 2008 at 11:55 am
David Kranes (7/3/2008)
July 3, 2008 at 11:33 am
David Kranes (7/2/2008)
July 2, 2008 at 3:16 pm
Viewing 15 posts - 106 through 120 (of 424 total)