Viewing 15 posts - 6,241 through 6,255 (of 6,679 total)
Art, all you needed to do was add parantheses around the bolded section to 'pair' those two criteria. That should fix the issue you have with that dynamic query.
BTW...
August 1, 2008 at 1:49 pm
Actually, it is quite simple - all you need to do is look at what you have.
SELECT *
FROM #DLFiltered
WHERE Active = 1
...
August 1, 2008 at 1:14 pm
alorenzini (8/1/2008)
SELECT * FROM #DLFiltered WHERE Active = 1 AND...
August 1, 2008 at 12:55 pm
alorenzini (8/1/2008)
August 1, 2008 at 12:29 pm
ansz5 (8/1/2008)
August 1, 2008 at 12:45 am
You have to include the REPLACE qualifier to replace the existing database. Additionally, you may need to set the database into single_user to get exclusive access.
August 1, 2008 at 12:38 am
rfalagan (7/31/2008)
yes, remote connections are allowed.
And, what are the settings for this? It should be one of the following:
o Using TCP/IP only
o Using named pipes only
o Using both TCP/IP...
July 31, 2008 at 10:40 pm
No, they need to be dependencies for SQL Server. You need to take SQL Server offline - add the drives as dependencies for SQL Server and bring SQL Server...
July 31, 2008 at 10:11 pm
Because a GROUP BY totals the set of data and OVER summarizes the data over the set. It's just the way it works. 😉
Here are a couple of options...
July 31, 2008 at 7:55 pm
Angelindiego (7/31/2008)
BEGIN
(SELECT
pl.LocationID AS PLocID
----->, @PRegionAbbrev = pl.RegionAbbreviation
----->, @PLocName = pl.LocationName
FROM dbo.Location pl
INNER JOIN dbo.Unit u ON pl.LocationID = u.PresentLocationID
)
END
I got...
July 31, 2008 at 4:35 pm
MarlonRibunal (7/31/2008)
Download here: http://www.microsoft.com/downloads/details.aspx?FamilyID=D07219B2-1E23-49C8-8F0C-63FA18F26D3A&displaylang=en
-Marlon...
July 31, 2008 at 3:51 pm
Nathan Davis (7/31/2008)
I found out a little additional info - the two...
July 31, 2008 at 3:44 pm
SQL Server has three recovery models. Each recovery model defines how transactions are dealt with in the transaction log.
Simple Recovery: transactions are cleared automatically so the space can be...
July 31, 2008 at 12:18 pm
No and No 🙂
You disable the indexes by issuing the command: ALTER INDEX indexname ON table DISABLE;
You truncate a table using: TRUNCATE TABLE table;
Now, if you have foreign key relationships...
July 31, 2008 at 11:34 am
Viewing 15 posts - 6,241 through 6,255 (of 6,679 total)