Viewing 15 posts - 886 through 900 (of 1,048 total)
ExecuteScalar() does not return the RETURN value of the stored procedure. I returns the first column of the first row of the result set. That is why you are...
March 24, 2010 at 2:05 pm
The last Monday of the month is nothing more than the first Monday of next month minus 7 days.
March 16, 2010 at 8:26 am
yeah, my keyboard glitched before I finished that post so I had to edit it. Glad to have the chance to help out.
You might consider removing the holidays and...
March 15, 2010 at 3:10 pm
Okay, here's one way to do it. First, define a CTE for your business dates:
with BizDates (Bdate)
as (
select Date
from Datetable A
...
March 15, 2010 at 2:35 pm
it does not work with wildcards.
I would have whatever app puts the attachment files in the folder insert a row with (containing the path) into a table as well.
March 15, 2010 at 11:54 am
sure, shoot me a private message with an email address.
March 12, 2010 at 12:46 pm
I would also look at the query plan. Depending upon the size of the table if suddenly decides to perform a tables scan Vs. some other plan it can result...
March 12, 2010 at 12:39 pm
I wrote a stored proc that computes the dates of all known (in our case banking) holidays. Some dates are always fixed (such as July 4th, Nov 11th) others are...
March 12, 2010 at 12:31 pm
Best way is to maintain a holiday tablecontaining holidays on out years into the future. (we have a SQL agent job that keeps the table current out 8 years ahead)....
March 12, 2010 at 10:36 am
declare @x datetime -- this is your date time column or variable
set @x = getdate() -- set it to current time value
select @x ...
March 12, 2010 at 7:35 am
Jeff Moden (3/5/2010)
sturner (3/4/2010)
try this:Select* from mytable
WHERE functionDate > CONVERT(char(10),getdate(),101)
that assumes all times are 00:00:00
It also causes a costly implicit conversion. Use the method that Lutz posted instead.
Not if...
March 9, 2010 at 11:12 am
try this:
Select* from mytable
WHERE functionDate > CONVERT(char(10),getdate(),101)
that assumes all times are 00:00:00
March 4, 2010 at 2:47 pm
You should probably employ the expertise of an experienced DBA to help you establish and implement all of the procedures from application upgrades to disaster recovery.... at least in the...
March 2, 2010 at 12:03 pm
please provide the entire query instead of the part of it.
March 2, 2010 at 11:58 am
look up ALTER DATABASE in BOL it should explain how you can do it.
Alternatively, you can right click on tempdb from SMC, go to "files/filegroups" and do it that way.
February 25, 2010 at 12:47 pm
Viewing 15 posts - 886 through 900 (of 1,048 total)