Viewing 15 posts - 346 through 360 (of 1,413 total)
Something like this?
DECLARE @start DATETIME, @end DATETIME
SET @start = '2004-08-01'
SET @end = GETDATE()
SELECT
DATEDIFF(yy, @start, @end) AS years
, DATEDIFF(m, @start, @end) AS months
, DATEDIFF(d, @start, @end) AS days
August 19, 2005 at 3:17 am
And to add to that, why should one particular row be returned as opposed to any other one of those 5 possiblities?
August 19, 2005 at 3:14 am
I'm going to be going after my MCSD certification C#, my chosen elective is Designing and Implementing Databases with Microsoft SQL Server 2000, Enterprise Edition - Exam 70-229
Questions:
Will this above...
August 19, 2005 at 1:37 am
No, in SQL Server 2000 this is not possible. You will be able to do it in SQL Server 2005 however.
August 19, 2005 at 1:24 am
You will have to exmplain a little more what you want to achieve. In what application do you want to display them? What do you mean by multiple rows in...
August 19, 2005 at 1:11 am
Adding to the answer above, I am taking a wild guess that you are looking for a way to pad a string with spaces to make it a fixed length....
August 19, 2005 at 1:08 am
REFERENCES also gives permission to schemabind views or functions against an object. In SQL Server 2005 I believe it will be used for certain uses with CLR code as well.
August 18, 2005 at 7:22 am
For moving them, take a look at my checklist for moving system databases.
August 18, 2005 at 7:17 am
Oops, apparantly I didn't read the question properly..
August 18, 2005 at 1:11 am
Piggybacking on Phill again:
SELECT [id], [name], OBJECTPROPERTY([id], 'TableIsPinned') Pinned
FROM sysobjects
WHERE xtype = 'U'
August 18, 2005 at 12:02 am
Live performance data can be seen in Windows System Monitor in Administrative Tools.
To add to that, this information can also be collected directly from the master.dbo.sysperfinfo table.
August 17, 2005 at 11:58 pm
As lugang says, by EM lists all databases in the server instance, not just the ones that the user has access to. It uses the stored procedure sp_MSdbuseraccess to do...
August 17, 2005 at 11:56 pm
I agree, learning C# is definitely not wrong for the future. SQL Server 2005 brings CLR Integration, but you said that you have no immediate plans to upgrade. Still, it...
August 17, 2005 at 2:36 pm
I am probably considered on of those "set purists". My answer to your challenges is simple; do no use SQL Server as a business logic server, especially not for procedural...
August 16, 2005 at 4:22 pm
Yes, that is exactly how it works. Anything else would be inefficient to say the least. The pages can (and will) be used for later allocations, so there is no...
August 16, 2005 at 4:06 pm
Viewing 15 posts - 346 through 360 (of 1,413 total)