Viewing 15 posts - 796 through 810 (of 921 total)
http://www.microsoft.com/technet/prodtechnol/sql/maintain/security/sp3sec
http://www.microsoft.com/sql/techinfo/administration/2000/security
--Jonathan
Edited by - jonathan on 10/02/2003 05:40:09 AM
--Jonathan
October 2, 2003 at 4:04 am
You're referencing the same table twice in the statement without distinguishing between the two instances, so they are treated as one instance. Use aliases:
SELECT *
FROM dbo.xComp
WHERE RowId...
--Jonathan
October 2, 2003 at 3:56 am
quote:
Jonathan,I've found an interresting side effect with this cast function.
If you cast a datetime to an int it round up to the...
--Jonathan
October 2, 2003 at 3:47 am
quote:
Thanks, Jonathan.
You're welcome. ![]()
quote:
--Jonathan
October 2, 2003 at 3:27 am
quote:
I just need the file names into to a table
If you don't mind using...
--Jonathan
October 1, 2003 at 8:41 pm
I don't think I'd use GROUP BY unless you need to use an aggregate function on Price1.
SELECT DISTINCT
(SELECT ISNULL(MIN(Date), d.Date)
FROM Dummy
WHERE MW1 = d.MW1 AND Date >
...
--Jonathan
October 1, 2003 at 4:58 pm
In SQL 6.5, I'd use a cursor unless you know the maximum number of Dats to be concatenated, in which case I'd use CASE with self-joins if that number is...
--Jonathan
October 1, 2003 at 1:31 pm
quote:
Jonathan,I ran your ALTER TABLE
and got this error:
Server: Msg 1778, Level 16, State 1, Line 1
Column 'User.Username' is not the same data...
--Jonathan
October 1, 2003 at 1:18 pm
SELECT ServerId, JobName, MAX(ProcDate)
FROM DisjObEvt
GROUP BY ServerId, JobName, CAST(ProcDate AS int)
--Jonathan
--Jonathan
October 1, 2003 at 10:57 am
quote:
Hi Jonathan!Thanks for quick response.
That's exactly what I try to do
only in GUI
I create a RELATIONSHIP
USER.UserID -- COMPONENTS.UserID
What would be ALTER TABLE...
--Jonathan
October 1, 2003 at 10:45 am
quote:
Any ideas? Thanks in advance!
Call Microsoft PSS, but be prepared to prove to them...
--Jonathan
October 1, 2003 at 10:23 am
It sounds like only one column references the Users table, so the foreign key would also be only one column, e.g.:
CREATE TABLE Users(
UserId int PRIMARY KEY,
UName varchar(40))
CREATE TABLE Components(
UserId int...
--Jonathan
October 1, 2003 at 10:18 am
DECLARE @mo tinyint, @sql varchar(8000)
SET @mo = MONTH(GETDATE())
SET @sql = 'SELECT ptdCol' + STR(@mo, 2) + '
FROM Abc'
EXEC(@sql)
DECLARE @mo tinyint, @sql varchar(8000)
SET @mo = MONTH(GETDATE())
SELECT CASE @mo
WHEN 1 THEN...
--Jonathan
October 1, 2003 at 10:08 am
If there will always be just one logical server (i.e. no replication) and the "login time" is being calculated at the server, then it matters not.
--Jonathan
--Jonathan
October 1, 2003 at 6:06 am
I saw something like this once. After much analysis we discovered that the client had two databases for the application, one Live and one Test, and the user had...
--Jonathan
October 1, 2003 at 6:00 am
Viewing 15 posts - 796 through 810 (of 921 total)