Viewing 15 posts - 751 through 765 (of 920 total)
This is usually done in a pattern of code that looks something like:
if exists (select 1 from sometable where primarykey = values you have available)
BEGIN
update the row here,...
May 16, 2006 at 4:43 pm
Hmmmmmm...
You didn't mention the ceiling composition. How about, climb onto the table, saw through the ceiling and climb out?
Stand behind the cold-blooded lawyer until the cobra bit Sadam Hussein (since...
May 11, 2006 at 9:10 pm
Why is that not logical? Light bulbs exhibit characteristic behaviors, one of which is giving off light, and one is giving off heat. Any property of a lit bulb should...
May 11, 2006 at 5:28 pm
Both columns are datetime data type? Could you post the table DDL and some sample data from the table?
May 11, 2006 at 8:09 am
Do a count(*), or some other potentially more efficient but predictable operation which returns a rowcount after the truncate. If you have rows, the truncate failed and you can raise...
May 9, 2006 at 1:07 pm
select * from customer
where customer_id not in (select customer_id
from customerequipment)
will give you customers who have no customerequipment records. Reverse the tables in the FROM clauses to get the...
May 2, 2006 at 9:32 am
Just a guess, because I'm not at a place to try it out, but the UNCname may need quotes.
May 1, 2006 at 10:09 pm
How are you backing this up? If you're appending, the backup file will continue to grow.
May 1, 2006 at 10:19 am
The 'GO' after the PRINT may be your problem. I'd bet the server is executing everything above it as one batch and everything below it as another (that's the purpose...
May 1, 2006 at 10:17 am
You could build views that join data across databases, thereby making multiple databases look like one, but I can't help believing that there's something seriously wrong here. What is the...
April 27, 2006 at 6:15 pm
You might want to add a space in front of the ORDER BY to make sure it doesn't run into the id.
April 27, 2006 at 3:25 pm
The standard database backup commands pick up the whole database or a whole filegroup. You could create an empty database and selectively put structures and data into it programatically based...
April 27, 2006 at 3:22 pm
This Base64 encode and decode was posted here a while ago. It might have something you can use.
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1520
April 25, 2006 at 12:07 pm
How 'bout ...
select db1.column1 from database1.dbo.table1 db1
where db1.column1 not in (select db2.column1 from
database2.dbo.table2 db2)
April 24, 2006 at 10:49 pm
Very nice! That's so slick!
April 18, 2006 at 9:51 am
Viewing 15 posts - 751 through 765 (of 920 total)