Viewing 15 posts - 46 through 60 (of 347 total)
There was a place I worked for that had a special database for developers to put data they wanted saved. It would delete anything created over a month ago on...
June 16, 2010 at 2:38 pm
you should be able to strip out the go statements. I missed the part where you need to create a txt file. sorry about that. DTS is the way to...
December 18, 2009 at 11:29 am
as long as your code works, you should just be able to drop a SQL connection and an execute SQL task in a DTS package and execute it. If you...
December 17, 2009 at 3:56 pm
it means the tmpdb doesn't have enough disk space to grow as big as it needs to.
you can run this to see where your tempdb is and make more...
December 3, 2009 at 2:20 pm
Create a temp table and fill it with the data you will need (names, emails, etc)
then create a loop to loop through that table and use sp_send_dbmail for each row.
Alternatively,...
October 28, 2009 at 11:37 am
in SSMS, right click the login and go to properties. Choose user mapping on the menu that is on the left side of that screen. It will show you what...
October 28, 2009 at 10:28 am
I would try it both ways and see what is faster. Indexes would change the efficiency of both queries. I like the first one based on readability.
October 28, 2009 at 10:25 am
you will have to do a restore with recovery on each database. this will allow you to do your testing. Afterwards, you will want to restore your last full backups...
October 27, 2009 at 2:07 pm
it's not possible to take a backup without the security included in the backup.
October 6, 2009 at 12:51 pm
Just a matter of preference and performance. The 2 queries will produce the same results, but different query plans. I would suggest testing both to see what one performs better.
September 28, 2009 at 1:58 pm
select distinct empID from
(select empid from emp1
union select empid from emp2
union select empid from emp3) as emp
September 28, 2009 at 1:50 pm
basically, you just want to perform an exists on the inserted table to check for the 12 value, and send the email querying the inserted table again to produce the...
September 15, 2009 at 12:40 pm
Viewing 15 posts - 46 through 60 (of 347 total)