Viewing 15 posts - 631 through 645 (of 670 total)
select MgrID, EmpID, EmployeeName
from emp e
where MgrID in (select EmpID from emp b
where b.EmpID = 1)
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 3, 2009 at 6:10 am
There are a couple of different ways to handle this. You can use an Execute As statement to impersonate a user or you can sign a procedure with a...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 2, 2009 at 6:15 am
SalesPersonID and ContactID are 2 different fields in the SalesOrderHeader table. The SalesPersonID is not 278 when the ContactID = 'Carla L. Eldridge'. That's why you are getting...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 1, 2009 at 9:55 am
Select ltrim(rtrim(substring(CONVERT(CHAR(19), getdate(), 0),12,10)))
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 1, 2009 at 6:22 am
are the group tables all the same structure? If not, then are you stubbing out the fields that don't exist between tables? do all the group tables start with...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 25, 2009 at 12:30 pm
You are correct in saying that it has to do with the file groups. When the fourth FileGroup is created it is assigning the files at the same time....
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 20, 2009 at 6:18 am
if you set the results to a variable, then you can try this
declare @tper varchar(max), @pos int
set @tper = ''
select @pos = position, @tper = @tper + nom +...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 12, 2009 at 6:33 am
why wouldn't you just comment this code out or remove it altogether?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 2, 2009 at 9:09 am
I setup a SharePoint web site that I share out to the rest of the company. As I find useful scripts, I post them out to the site. ...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 30, 2009 at 5:45 am
It's interesting. I'm getting the same type of results. When I put the results into a temp table, then the query return immediately.
select item as item1 into #temp1...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 28, 2009 at 8:26 am
can you provide table layouts, sample data and expected results?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 28, 2009 at 7:39 am
Just found out by stopping and starting DTC on developer's machine, freed the lock. But I should still be able to delete the lock through SSMS, no?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 15, 2009 at 1:00 pm
Need more info than this. What are the 2 middle columns? What is the logic needed to calc the dates? etc...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 13, 2009 at 7:35 am
You were looking for 441, but your example showed 444,411 which won't match anyway. I added these two to the original and 2 of the 3 showed up, which...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 9, 2009 at 6:47 am
SQL's trying to do an implicit conversion of the varchar field and failing. '441,443' cannot be converted because of the comma. This will work, but it could cause...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
October 9, 2009 at 6:28 am
Viewing 15 posts - 631 through 645 (of 670 total)