Viewing 15 posts - 5,356 through 5,370 (of 7,191 total)
Look up the syntax for ROW_NUMBER - it has an optional PARTITION BY clause. You can use this to assign a 1,2,3,etc to each value of NUMBER in one...
May 25, 2011 at 7:08 am
You've got two choices. First, you can issue DENY statements on the objects that you don't want members of the first role to access. Second, and the one...
May 25, 2011 at 7:04 am
In a properly normalised database, you'd usually model a many-to-many relationship with a junction table. If you don't have any control over the structure of your database, then you...
May 25, 2011 at 6:53 am
Users that don't have specific permissions on any particular object will not be able to access that object if you revoke the permissions for the public role on the object.
John
May 25, 2011 at 6:39 am
It would help if you could provide sample data in the form of INSERT statements, together with what results you would expect to see based on that data. Also,...
May 25, 2011 at 4:18 am
Priyank
Check what permissions have been given to the public role.
John
May 25, 2011 at 3:52 am
Ah yes - you're right. If you can't be sure that all names appear in both tables then an inner join won't work.
John
May 24, 2011 at 8:05 am
Almost... you need an INNER JOIN on the Name column.
John
May 24, 2011 at 8:00 am
This is a simple JOIN and SUM query. Please will you show us what you've tried so far?
John
May 24, 2011 at 7:38 am
Be careful about standardising your users in this way. Although it simplifies administration, it's a security risk since it means that giving someone (or something) access to one thing...
May 23, 2011 at 9:39 am
Without seeing the script you used in your job, it's difficult to comment.
John
May 23, 2011 at 7:59 am
Group by CartesisRU, CartesisBU and HFMEntity and use a HAVING clause.
John
May 23, 2011 at 7:23 am
OK, you've got an NTFS permission issue. You need to make sure your SQL Server and SQL Server Agent account have read-write access to that folder on your X...
May 20, 2011 at 8:29 am
Dan
Although I suspect it won't make any difference to performance, I don't think you need the ISNULL, since SUM ignores NULLs.
John
May 20, 2011 at 8:05 am
Viewing 15 posts - 5,356 through 5,370 (of 7,191 total)