Viewing 15 posts - 10,486 through 10,500 (of 13,469 total)
brian yes, that is exactly how i would do it;
to test it, simply run the sql inside the EXISTS() portion....it probably returns nothing, so change the HAVING to1 instead...
September 24, 2009 at 11:13 am
i know it's kind of repetitive, but htis is how i've done it...use an exists to test for the condition, then the query to build the email, same as you've...
September 24, 2009 at 9:38 am
BCP or BULK INSERT are a couple orders of magnitude faster than getting the data from a linked server; is that how you are getting the data from the 2005...
September 24, 2009 at 9:15 am
just noticed that you posted in a 2000 forum: the solutions is still the same, just a different table to get the data, plus you will be handicapped because syscomments...
September 24, 2009 at 7:35 am
Chuck's idea got me thinking....his requirement obviously was more expansive, but i justed tested this solution below, and it strips out all the comments; so if you use the results...
September 24, 2009 at 7:21 am
ok, again, if you had provided the full DDL of the tables and sample data, this would have been easier...i think you changed from id_Member being an int to being...
September 23, 2009 at 3:58 pm
to clarify, if the above SELECT returns a row, you were allowed to delete the member, if it does not, noone would be deleted.
September 23, 2009 at 1:14 pm
i kinda need some sample data to see if i have the logic down right;
ok, here is how i would do it:
i have a sub select below of every "admin"...
September 23, 2009 at 1:12 pm
SQL server handles concurrency for you automatically, even if your two users were to try to delete each other at the EXACT same millisecond, SQL will determine that one of...
September 23, 2009 at 9:55 am
i don't remember the scripts coming out in order, I'm testing it now...the wierd thing is, on a decent size database, with 2000+ objects, it's still running the Script wizard...
September 23, 2009 at 8:36 am
if you add a server side trace, then you can use the HOSTNAME column, which resolves to the computername that connected, in the trace to track everything from that PC.
you...
September 23, 2009 at 8:28 am
do you mean a temp table on the linked server? like this?
Select * into "server2".dbname.dbo.tablename from tablename
"The object contains more than the maximum number of prefixes. The maximum is 2."
If...
September 22, 2009 at 2:51 pm
the piece you posted does not have an ORDER BY, without it, the data comes back in whatever order is convenient for SQL server to get the data.
The piece...
September 22, 2009 at 8:41 am
a couple of people noticed they registered themselves twice...could that be your issue as well?
if you joined, then joined again, your first "original" account keeps the first name, but all...
September 22, 2009 at 8:27 am
Magy i may have read the requirement wrong, but all i did was wrap your query with parenthesis, give it an alias, and add the grouping...is that what you wanted?
SELECT...
September 22, 2009 at 8:09 am
Viewing 15 posts - 10,486 through 10,500 (of 13,469 total)