Viewing 15 posts - 10,996 through 11,010 (of 13,462 total)
this might help a little bit:
the Us Census Bureau put together the most common male first names, female first names, and most common last names:
http://www.census.gov/genealogy/names/names_files.html
90% of the names in...
June 10, 2009 at 7:37 am
you won't have any problem with the SELECT @variable, 'Any constant',col1,col2 from SomeTable Format; it's very common to need to do that.
June 10, 2009 at 7:09 am
usually, i create two roles in this situation.
one, just as you describe, that gives a user db_datareader and db_datawriter for example.
then i create a second role, and it';s sole purpose...
June 10, 2009 at 5:48 am
also SQL Recon from Special Ops Security[/url] is free and does a great job as well as doing some quickie analysis like blank passwords and a best guess at which...
June 10, 2009 at 5:35 am
maybe something is missing in your code snippet, but you declare a variables like @activityID and @UpdateLogin, never assign them a value, but then use then to insert into...
June 9, 2009 at 9:37 pm
i understand why you are breaking everything into step by step...it's easy to understand logically.
however, perfomance wise, you can do everything together in one swoop...get the emails, remove duplicates, and...
June 9, 2009 at 9:20 pm
also, i notice you are inserting into two tables : "MasterList" and "maintable";
i would think you would be inserting into just one temp table, right? and the exists should bee...
June 9, 2009 at 7:52 pm
bit of a logic hole there.
a GO statement cannot exist in a stored procedure. when you run that statement it creates a stored proc that only does one thing...deletes from...
June 9, 2009 at 7:40 pm
VALUES SELECT
it's one or the other, never both...
you either insert into (columnlist) values(val1,val2,etc)
OR
insert into (columnlist) select val1,val2,etc from somesource.
an extra pair of eyes always helps in these situations..trees and...
June 9, 2009 at 7:18 pm
here's an example of Sergiy's suggestion:
begin tran
select top 1 * from mytable with (tablockx) --exclusive table lock this table to me and my transaction
--do more stuff
commit tran --commit the tran,...
June 9, 2009 at 7:13 pm
SET XACT_ABORT ON only works in combination with BEGIN TRAN and COMMIT TRAN.you set XACT_ABORT on just once...and that is how it works for the session, or until you explicitly...
June 9, 2009 at 2:53 pm
this is just a WAG, but every A.ItemCode would only have one status, right?
don't you need a rollup by Customer of all the status?
something like the query below, that you...
June 9, 2009 at 12:12 pm
glad it worked for you; you clearly grasped the concept once you got an example.
way to go.
June 9, 2009 at 11:59 am
wouldn't problems with distributed transactions be because the "Distributed Transaction Coordinator" service one one or both servers are not running / on manual start instead of automatic?
June 9, 2009 at 11:47 am
ok i learned i can alias a linked server, excellent...
but even though i explicitly said to use a SQLOLEDB provider, when i look as sys.servers, SQLNCLI is being used, as...
June 9, 2009 at 11:26 am
Viewing 15 posts - 10,996 through 11,010 (of 13,462 total)