Viewing 15 posts - 61 through 75 (of 268 total)
try WITH(READPAST)
http://www.techrepublic.com/article/using-nolock-and-readpast-table-hints-in-sql-server/
August 22, 2014 at 8:22 am
Is it possible that the error message means what it says?
"There was insufficient disk space or quota."
August 20, 2014 at 7:25 am
When I asked him, the OP said, "I've done filtering. Then, I dumped the data into temp table named process_ApplyJob_1. " I understood "filtering" to mean validation. OF...
August 18, 2014 at 8:22 am
higgim (8/18/2014)
gbritton1 (8/18/2014)
...or add the equivalent check constraints and let SQL Server do it for you...
Whilst this is fine and dandy when an insert occurs which fails the checks an...
August 18, 2014 at 6:30 am
...or add the equivalent check constraints and let SQL Server do it for you...
August 18, 2014 at 5:50 am
This is not working since you are using column names in the Pivot ON:
PIVOT (max(TeamId) FOR PersonId IN ([CoachFN], [CoachLN], [CoachEmail])) pvt
should be:
PIVOT (max(TeamId) FOR PersonId IN (PER00388878, PER00500029,PER00530907, ...))...
August 15, 2014 at 1:02 pm
INSERT INTO t (LocationId, ExternalId) VALUES (@L, @E);
where not exists (
...
August 15, 2014 at 12:41 pm
Since the OP provided no reason why not to use ROW_NUMBER() or temp tables (in spite of being asked again and again), I can't see why we should continue to...
August 15, 2014 at 11:58 am
Here is a complete dynamic SQL solution to the problem:
declare @CustCode int = 1;
declare @sql nvarchar(4000);
with cols(col) as (
select name
from sys.columns
where object_id = OBJECT_ID(N'[dbo].[myTable]')
and name <>...
August 15, 2014 at 6:24 am
You can do it without dynamic sql using SSMS. For any table, click on the Columns heading and drag to the query window. You'll get all the columns...
August 14, 2014 at 12:35 pm
select * from @table1 t1
join @table2 t2
on t1.col2 = t2.col2 and t1.col3 = t2.col3 and t1.col4 =t2.col4
August 14, 2014 at 11:23 am
You might want to give some credit to IBM, who invented VM as a concept and an operating system (or hypervisor, if you like) more than 40 years ago.
IBM announced...
August 7, 2014 at 1:27 pm
Viewing 15 posts - 61 through 75 (of 268 total)