Viewing 15 posts - 31 through 45 (of 51 total)
Backups taken with the copy_only command are not visible in an SSMS gui restore. I ran into this same issue recently. Is that what you're running into?
http://sqlblog.com/blogs/tibor_karaszi/archive/2007/09/15/copy-only-backups-and-ssms.aspx
- Jeff
February 16, 2010 at 11:30 am
You're almost there, you just have to keep joining to the same table.
Something like this should work:
SELECT
Employees.Name,
Activities1.Activity AS Slot1,
Activities2.Activity AS Slot2,
Activities3.Activity AS Slot3,
Activities4.Activity AS...
- Jeff
October 21, 2009 at 3:08 pm
Jonathan Kehayias recently wrote about this, it includes a cool script to map temp tables to spids:
- Jeff
October 9, 2009 at 8:43 am
It's a long read, but this looks to be exactly what you're after:
http://www.sommarskog.se/arrays-in-sql-2005.html
- Jeff
October 8, 2009 at 1:04 pm
This method is borrowed from a blog post here: http://consultingblogs.emc.com/jamespipe/archive/2007/06/28/SQL-Server-2005_3A00_-Passing-variables-into-an-OPENQUERY-argument.aspx
This should do the trick:
DECLARE @var char(2)
DECLARE @TSQL varchar(8000)
set @var = 'CA'
set @TSQL = 'SELECT * FROM pubs.dbo.authors WHERE state...
- Jeff
September 23, 2009 at 12:59 pm
I had a typo for my sample data, I intended to include 127 in the result set.... sorry for the confusion there.
Thanks for the help guys, I got it now....
- Jeff
September 9, 2009 at 12:18 pm
If only 2% of people are getting this correct, it's a sign of a badly written question.
- Jeff
August 17, 2009 at 7:54 am
Second, for a dedicated database server there is no reason to set a minimum memory amount. Setting the minimum to 12GB and the maximum to 14GB running SQL Server 2005...
- Jeff
August 7, 2009 at 9:52 am
For those that have html tags inside the question (I'm using Chrome), the question shows up properly in the email... and I posted it below:
use master
go
create database testdb
go
create proc sp_test...
- Jeff
August 4, 2009 at 7:24 am
Like this?
SELECT ID, UNIT_LABOR_COST, UNIT_BURDEN_COST, UNIT_SERVICE_COST
FROM PART
WHERE PURCHASED = 'Y' AND FABRICATED = 'N'
AND (UNIT_LABOR_COST 0.00 AND UNIT_BURDEN_COST 0.00 AND UNIT_SERVICE_COST 0.00)
- Jeff
August 3, 2009 at 10:26 am
The fact that there were any votes for the "delete Resource database" option was a bit scary.
- Jeff
July 14, 2009 at 7:20 am
Maybe run something simpler like:
SELECT Title FROM Document WHERE TITLE LIKE '%Sabra%'
and if that doesn't return anything, run this just to confirm you have something there at all:
SELECT Title FROM...
- Jeff
July 8, 2009 at 9:08 am
The following works:
create table #Document (Title varchar(64))
insert into #Document
select 'it''s Sabra and Chatilla'
SELECT * FROM #Document
WHERE Title='it''s Sabra and Chatilla'
drop table #Document
You mention the Title field "contains" this...
- Jeff
July 8, 2009 at 8:31 am
Looks like it. They'll need to check the Security Properties of the Linked Server, to make sure that either your login is added explicitly, or that any connections to...
- Jeff
April 23, 2009 at 12:04 pm
So it looks like the Linked Server is there, you probably just need to have rights to the Linked Server. You'll probably need to talk to the DBA at...
- Jeff
April 22, 2009 at 2:46 pm
Viewing 15 posts - 31 through 45 (of 51 total)