Viewing 15 posts - 211 through 225 (of 5,503 total)
Can you please explain why you neither want to use the view nor the underlying code itself?
Also, what you've posted is not a sp but single SELECT statement.
There's no simple...
April 27, 2014 at 5:55 am
Something like this?
SELECT TOP (@topval) dbo.bigtb.fire, dbo.maingroup.maingroup, dbo.bigtb.subgroup, dbo.maingroup.groupnamefa, dbo.subgroup.subgroupfa, dbo.bigtb.title1,
...
April 27, 2014 at 5:01 am
...
Design the query using msquery (in excel tools-> data -> get external data then select the dsn/odbc link).
Any criteria fields in the msquery should have a value of []. The...
April 27, 2014 at 4:59 am
What do you mean by "loading twice"?
Does the current loop perform the "double load" or does it happen when the SSIS package is restarted?
There are several options to avoid the...
April 27, 2014 at 3:14 am
If you have SSMS (SQL Server Management Studio) installed, you can connect to a SQL Server instance on another machine if the machine allows access (SQL port open, usually port...
April 27, 2014 at 3:04 am
How about using UNION ALL to merge the three results into one?
April 26, 2014 at 1:47 pm
What do you mean by
I am disappointed in the performance
?
Would you please post some sample data (table def and sample data) together with your actual execution plan so we...
April 26, 2014 at 1:46 pm
The WAITFOR has a parameter @p2 for a timeout. What's the value of this parameter?
The process did wait for 15+ seconds to get new data.
Without knowing what is triggered by...
April 26, 2014 at 1:40 pm
Usually, AD group memberships is controlled without the need for confirmation from a DBA - for a very good reason, since the SBA should not be concerned about a member...
April 26, 2014 at 1:17 pm
By definition, there is no "first row" in a table. It all depends on the columns in the ORDER BY section of the SELECT statement, what row will be presented...
April 25, 2014 at 6:21 am
I'm still waiting for a description of the business rule how to sort the rows (without the term "priority").
April 23, 2014 at 11:27 am
Did you try the solution I provided?
If the league table can have duplicates, keep the UNION ALL and change the league query to
SELECT L.LeagueID as PlayerID, L.LeagueName as PlayerName
FROM #league...
April 23, 2014 at 2:33 am
Here's an approach using the OUTER APPLY operator available since SQL 2008 (so, it's nothing new in 2012 ...).
Please note that I changed UNION to UNION ALL for the query...
April 22, 2014 at 4:37 pm
The AND operator has a higher precedence than the OR operator leading to the following logic:
where (ath_postype = 'NTC') or (ath_postype='NTD' and
ath_postdate >= '2013-01-01 00:00:00' and
ath_postdate <= '2013-01-05 23:59:59')
If this...
April 22, 2014 at 3:22 pm
The View [DML].[ExtOLSMachineEntitlement] refers to a table DML.ExtOLSMachine.
You might want to take the effort to have a look at your execution plan... -> The table is indeed referenced.
I guess...
April 22, 2014 at 2:49 pm
Viewing 15 posts - 211 through 225 (of 5,503 total)