Viewing 15 posts - 5,896 through 5,910 (of 13,468 total)
adding the login is not enough...did you add them to the server role as well;
something like this is what you are after, i think:
--Add/Restore Restore Builtin\Administrators
EXEC sp_grantlogin 'BUILTIN\Administrators'
EXEC sp_addsrvrolemember...
February 27, 2012 at 6:58 am
your trigger will only handle one row; so if the applicaiton inserts or updates multiple rows, you will not get all teh changes.
something like this is probably pretty close to...
February 27, 2012 at 5:35 am
there we go;
a see a few things that can help improve perforamnce;
first, it's designed to be a catch all query;
read Gails article on the performance issues here:
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
i see there's...
February 26, 2012 at 3:24 pm
Jeff Moden (2/25/2012)
Actually, there's a valid reason for doing such a thing as what the OP wants to do. It makes maintaining indexes much easier and quicker and it...
February 25, 2012 at 12:05 pm
the code might be the same, but the execution plan is not.
that's the definitive way to review it...get the execution plan from each server, and compare them. post them here...
February 25, 2012 at 11:58 am
SQL_Surfer (2/25/2012)
February 25, 2012 at 10:36 am
I know there sites like rent a coder and stuff where people bid/lowball programming services based on the often poorly defined requirements of a post there. If you have a...
February 25, 2012 at 10:07 am
sgtmango333 (2/24/2012)
Well I tried and couldn't get it to work. So if you know the secret, please share. I spent half a day trying and it kept failing.
If...
February 25, 2012 at 8:42 am
doesn't look like it;
if you look at sp_addmessage via sp_helptext sp_addmessage,
you'll see tat besides a boatload of validation, it still calls an internal proc proc a bunch of times for...
February 25, 2012 at 8:35 am
take a look at this thread from just a day or two ago:
Windows Group as Login linked to User Login
I posted some examples of some extended stored procedures you...
February 25, 2012 at 8:27 am
eba.seller (2/25/2012)
I have a SQL database name company and a table named users, what SQL command would I run to get a list of the contents of that table?
i may...
February 25, 2012 at 8:22 am
quick simple example if you are still using that route:
--build some sample tables
create table raw4 (id int,somedata varchar(30) )
create table raw14(id int,somedata varchar(30) )
create table raw7 (id int,somedata varchar(30) )
--a...
February 24, 2012 at 2:43 pm
SQL_Surfer (2/24/2012)
Just calls the sp and shows that results to the grid.
how is it loading into a grid? DataAdapter.LoadDataTable, then binding the grid to the datatable?
is it using a sql...
February 24, 2012 at 2:37 pm
instead of multiple tables, why not a single table with your 1-19 etc indicators as a column value in that table? wouldn't that be easier to use and maintain?
why do...
February 24, 2012 at 2:24 pm
wrap it into a subquery so you can use the aliases assigned to the calculated/grouped items:
SELECT
( [SLAMet] / ( [WO_NUM] * 1.0 ) / 100 ) AS '%TotalMetSLA',
...
February 24, 2012 at 12:53 pm
Viewing 15 posts - 5,896 through 5,910 (of 13,468 total)