Viewing 15 posts - 5,881 through 5,895 (of 6,598 total)
Jerry Hung (10/29/2008)
You can use YEAR(datefield) and MONTH(datefield) such as
SELECT id FROM transactions WHERE YEAR(trandate) = 2008 AND MONTH(trandate) BETWEEN 1 AND 3
YEAR is just DATEPART(year, ___), MONTH...
October 29, 2008 at 1:33 pm
Not sure how I can help on that other issue - looks like you have a couple of people who already have given you an answer that should work. ...
October 29, 2008 at 9:28 am
I am happy that worked for you - I think either YYYYMM or YYYY-MM would work the same way and ordered the way you want it.
October 28, 2008 at 10:39 pm
Try this:
Select convert(char(7), date, 120) As DatePeriod
,count(*) As Total
From TBL1
Where Status = 'OUT'
Group By
...
October 28, 2008 at 5:08 pm
That would be the best bet - but, if you don't find anything it is time to call the vendor. I have a feeling that regardless of what you...
October 28, 2008 at 4:03 pm
Since the backup operation will occur on ServerA - and will run in the context of the SQL Server Agent on that server, the only way I see is to...
October 28, 2008 at 4:00 pm
For passing dates into a procedure, I would recommend always passing the full date in YYYYMMDD format. The time will default to midnight.
If you can't do that - then,...
October 28, 2008 at 2:59 pm
What you really should have done is to create the logins before restoring the databases. Google 'sp_helprevlogin' to find a procedure for copying logins from one server to another.
Make...
October 28, 2008 at 2:47 pm
Are you sure those objects exist in the 'dbo' schema? And, are you sure you have permissions to grant access to those access (requires WITH GRANT privilege).
October 28, 2008 at 2:39 pm
Well, this is going to be a bit harder and most likely will end up going to the vendor anyways. What you need to do is isolate the trace...
October 28, 2008 at 1:57 pm
Search this site for Tally Table - it is exactly what you are looking for.
October 28, 2008 at 1:41 pm
Lookup REPLACE in Books Online:
SELECT REPLACE(description, 'Jasper Conran', 'JC') ...
October 28, 2008 at 1:20 pm
If you still have the trace output available - search the text data for the word 'locked'. Basically, you need to identify the request that is being returned that...
October 28, 2008 at 1:15 pm
The only thing I would add would be to make sure the joins are correct. Using outer joins (LEFT) will return all rows from TableA and only matching items...
October 28, 2008 at 12:59 pm
Not true, as can been seen from my example. The error goes away eventually; it works in redgate; I'm specifying database with 'use' etc.
I would bet anything that the...
October 28, 2008 at 11:27 am
Viewing 15 posts - 5,881 through 5,895 (of 6,598 total)