Viewing 12 posts - 16 through 27 (of 27 total)
Natalie,
Few things:
1. You forgot to declare @cmd in the beginning
2. When I tried your code I got only 1 result and mine returns all objects in all DBs
3. Don't forget...
September 27, 2006 at 12:04 am
Are they running stored procedures? Are you runnning ad hoc query?
If the answer is yes for both try to recompile.
If not please post more details (like if it's sp...
September 26, 2006 at 12:55 pm
Can you please add an example.
My idea is that you need to do some actions in Excel and that is not relevnt to SQL, i.e:
1. in new column set [column...
September 26, 2006 at 12:38 pm
Can you post an example to see the way you store it.
dd-mm-yy / mm-dd-yy etc...
September 26, 2006 at 12:32 pm
This one will give you the result you asked for.
You should change the query to return whatever you need.
SET
NOCOUNT ON
CREATE
TABLE
September 25, 2006 at 5:52 am
As you can see, my example will give you the exact answer you want ("GROUP BY A.AccountNumber")
September 25, 2006 at 1:26 am
You should try this one or at least understand the logic and try to implement your own changes. Few things:
1. I answered only on the first one, but I...
September 24, 2006 at 12:26 pm
Can you be more specific?
Using sp_helprotect is enough? For example:
1. List the permissions for a specific user with sp_helprotect:
EXEC sp_helprotect NULL, NULL, 'User_Name'
2. You can list permissions for Statements (=S) and...
September 24, 2006 at 11:37 am
Natalie hi,
Do you mean something like that:
--------------------------------------------------------------
CREATE TABLE #User_Objects (
DB sysname,
Obj_name sysname,
Type sysname 
INSERT #User_Objects
Exec sp_MSforeachdb
'SELECT ''?'' AS DB, SO.NAME, SO.TYPE
FROM ?..SYSOBJECTS SO
JOIN...
September 22, 2006 at 7:15 am
I wrote something quickly, let me know if you need more than that.
-- Simulate data
CREATE
TABLE #Report (
ID INT ,
PL_category INT ,
booking_date...
September 21, 2006 at 3:24 am
Can you add an example of current situation and desired results?
Roi Assa
September 21, 2006 at 12:39 am
sp_helprotect null, 'User_Name'
Roi Assa
July 3, 2006 at 7:04 am
Viewing 12 posts - 16 through 27 (of 27 total)