Viewing 15 posts - 8,491 through 8,505 (of 13,469 total)
i have these saved in my snippets, and the list is really incomplete:
--Oracle sp_help equivilent:
DESCRIBE tablename;
DESC tablename;
--Oracle sp_who equivilent
select osuser, machine, program, status from v$session;
--Oracle kill connection equivilent
select 'ALTER SYSTEM...
October 26, 2010 at 10:25 am
I'd start with select * from sys.server_principals
that will give you all the database users, roles, credentials and more;
you could filter it after that on the type_desc column for WHERE...
October 26, 2010 at 10:14 am
you want to use a query to generate the commands for you, based ont he metadata.
i just tested this: create user/login [Noobie];
ran the results of the script below.
logged in as...
October 26, 2010 at 10:06 am
Rob-350472 (10/26/2010)
October 26, 2010 at 9:37 am
WayneS (10/26/2010)
Lowell, I'd recommend one change to your code - use the QuoteName() function for the schema/table names. For dynamically generated code like this, better to make it bullet-proof.
awesome idea,...
October 26, 2010 at 9:23 am
what a pain; too bad you can't go smack the developers for not adding relationships in the first place....that's so wrong. In some countries, that an offence punishable by cane-ing.
I...
October 26, 2010 at 9:20 am
you can also use the metadata to generate the statements you need to run...potentially 300 commands you said.
you did not provide any specific details, so here's a scenario to use...
October 26, 2010 at 7:11 am
my suggestions are still the same; show us your execution plan, and tell us how many records you are returning.
for example, if you are returning less than 10 rows, 42...
October 26, 2010 at 7:04 am
hosseini.mehran (10/26/2010)
Thanks my friends , all your guidance help me, I could decrease the time of sp from 184 seconds to 42 seconds by using covering index.thanks a lot....
how...
October 26, 2010 at 5:38 am
Adiga's code example should be tweaked just a little bit; if that was run in master(where way to many user tables get accidentally created), you could delete some spt^ tables...
October 26, 2010 at 5:01 am
xyzxyzxyzxyz123 (10/26/2010)
Its not working, I have checked it already.Any other approach..?
adding the line feed as Wayne described will work...but the results will not be visible in SSMS in gridmode.
because SSMS...
October 26, 2010 at 4:48 am
dashboards and scorecards are really close to what you'd intuitively think: reports that provide more of an "at a glance" indicator as to how something is doing(your SQL server, your...
October 25, 2010 at 7:11 pm
apat (10/25/2010)
October 25, 2010 at 1:12 pm
the oracle Client tools ARE installed on the server, right? you did successfully connect from the server's desktop via SQLPlus, right?
after that, AFAIK, there's three typical reasons for error 7303;...
October 25, 2010 at 12:32 pm
reliably? you cannot. to join data from two tables, there must be a join criteria of some kind.
if you have 5 employees in one table, how do you know which...
October 25, 2010 at 12:17 pm
Viewing 15 posts - 8,491 through 8,505 (of 13,469 total)