Viewing 15 posts - 421 through 435 (of 443 total)
Sorry just realised the above won't work for all values, will post back when I've worked it out
March 28, 2006 at 6:49 am
Try this as your field expression:
=((Fields!hours.Value-Fields!hours.Value Mod 24) / 24) + (Fields!hours.Value Mod 24)/10
Changing the field name as appropriate, obviously
March 28, 2006 at 6:43 am
Try this:
select DATEADD(dd,-1,DATEADD(mm,3,DATEADD(qq, DATEDIFF(qq,0,DATEADD(mm,-3,getdate())), 0))), DATEADD(dd,-1,DATEADD(mm,3,DATEADD(qq, DATEDIFF(qq,0,DATEADD(mm,-6,getdate())), 0)))
March 24, 2006 at 7:23 am
What about this:
select DATEADD(qq, DATEDIFF(qq,0,DATEADD(mm,-3,getdate())), 0), DATEADD(dd,-1,DATEADD(mm,3,DATEADD(qq, DATEDIFF(qq,0,DATEADD(mm,-3,getdate())), 0)))
March 24, 2006 at 7:16 am
select * from yourTable
where dateadd(yy,18,convert(varchar(10),dob,112)) < getdate()
March 23, 2006 at 7:55 am
There are problems rendering to Excel, depending on the version of Excel you are using.
Have you installed the Reporting Services service pack?
If not its here:
December 21, 2005 at 9:14 am
There are two ways to do this:
1. From the Build menu in Visual Studio
2. From the command-line useing the rs utility and a script
From your question I assume you nned...
December 13, 2005 at 4:00 am
You don't need to select anything.
In your updated event handler do this :
object newid = args.Row["<your id column name here>"] ;
HTH
December 2, 2005 at 7:39 am
You'll need to use the InStr function eg.
Iif( InStr("CPRVX", Fields!COST_ELEM_CTGY.Value)>0 , ...
See docs here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctinstr.asp
November 22, 2005 at 2:57 am
Try this, creates a temporary table (#tmp), populates it with the output from 'sp_helpdb' using EXEC. You can then select from the temp table as normal :
create table #tmp...
September 26, 2005 at 10:23 am
You can fix the orginal timeout by setting the SqlCommand.CommandTimeout property in your code, the default is 30 seconds. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlcommandclasscommandtimeouttopic.asp
But as Ray said you should definitely review the...
September 21, 2005 at 3:36 am
I am assuming you have RS installed and you want to deploy reports, if so you can use the tools provided with RS, look in the Reporting Services books online...
September 21, 2005 at 2:16 am
There are some useful encryption/decryption functions here:
http://www.sqlservercentral.com/scripts/contributions/610.asp
September 7, 2005 at 5:59 am
Not pleasant looking I admit but the following logic (or some variant of it) may do what you want:
insert into myTable (id) select coalesce(max(id)+1,0) from myTable
The coalesce is required simply...
September 2, 2005 at 2:38 am
Oops! Sorry about the typo
September 1, 2005 at 2:01 am
Viewing 15 posts - 421 through 435 (of 443 total)