Viewing 15 posts - 31 through 45 (of 76 total)
Yes and after I removed the commented line there WHERE clause worked fine....
Evil Kraig F (1/25/2012)
fahey.jonathan (1/25/2012)
SQLKnowItAll (1/25/2012)
January 25, 2012 at 2:07 pm
Thanks a lot for the help... I find it so weird too and I am sure I ran the query correctly as we tried several times and same query acts...
January 25, 2012 at 1:35 pm
CREATE TABLE [dbo].[PEOPLE_PROJECT](
[BUSINESS_UNIT] [char](5) NOT NULL,
[PROJECT_NAME] [char](50) NOT NULL,
[PID] [decimal](10, 0) NOT NULL,
[COMPANY_ID] [char](10) NOT NULL,
[START_DT] [DATETIME] NULL,
[END_DT] [DATETIME] NULL
) ON [PRIMARY]
SQLKnowItAll (1/25/2012)
January 25, 2012 at 1:16 pm
Thank you.. Sorry Sql Server Management Studio... One query that had issue was:
UPDATE PEOPLE_PROJECT
SET END_DT = NULL
--SELECT * FROM PEOPLE_PROJECT
WHERE PID = 56408
AND END_DT >= '2011-10-12'
It updated all the...
January 25, 2012 at 1:07 pm
The database is actually sql 2000 but using SQL 2008 R2 visual studio in the laptop.
January 25, 2012 at 12:51 pm
I think we found the issue but do not know why it is happening...
The query had a line that was commented out with ('--') and very inconsistently the line after...
January 25, 2012 at 12:09 pm
Wow Lowell... this is awesome... your comments on every line has made this code so clear. Thanks a bunch!
January 24, 2012 at 9:04 pm
So Lowell I should make the user db_ddladmin and then create DDL triggers to stop users from altering, dropping objects?
January 24, 2012 at 6:04 pm
I tried doing this
sp_addrole 'db_alterview', 'dbo'
--Add member to role
sp_addrolemember 'db_alterview', 'testUser'
--grant permission to create view
GRANT CREATE VIEW TO [db_alterview];
GRANT SELECT ON SCHEMA::[dbo] TO [db_alterview];
I was able to select from table...
January 24, 2012 at 2:46 pm
Comments I added for the forum...
This is the test server where we got the issue...
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005...
January 24, 2012 at 11:24 am
Sorry...
SELECT * FROM PROJECT
WHERE PID = '3850' --CHAR(10)
AND INDID = 8565 --DECIMAL(10, 0)
AND NAME LIKE 'Contract%' --CHAR(100)
The query above should have pulled Name starting with Contract for those PID and...
January 24, 2012 at 10:44 am
Hi GSquared,
Thanks for your help on this one. I wanted to check with you onething.. should I create function or SP for this... the data will be updated in off-hours.
Thanks,
Laura
January 17, 2012 at 9:23 am
GSquared thanks a lot... this worked. Awesome.
January 13, 2012 at 9:40 am
Viewing 15 posts - 31 through 45 (of 76 total)