Viewing 15 posts - 16 through 30 (of 32 total)
Not very elegant, I am still learning - but it works.
The first row is FeederStatus 0 as your initial post required, you can change it to start from 1 by...
October 2, 2011 at 5:57 pm
mapperhd (9/30/2011)
We have a double data entry process and want to compare the entries of one record in Table A to the duplicated entries in Table B (identical to TableA)....
October 1, 2011 at 6:10 pm
amanmeet.mehta 46966 (9/30/2011)
Please let me know in case any one has...
October 1, 2011 at 5:15 pm
You can only insert data using a view if its referencing just one table, otherwise its ambiguous exactly where you want to insert the data.
October 1, 2011 at 5:08 pm
Jeff Moden (10/1/2011)
In actuality, that's not the "best" way... the absolute best...
October 1, 2011 at 4:57 pm
mjbkm (9/28/2011)
vince_sql (9/28/2011)
Sounds like the fill factor is high so it becomes fragmented quickly when you do insert, updates and deletes.Have you tried lowering the 'fill factor'?
OK - what is...
September 28, 2011 at 12:59 pm
Sounds like the fill factor is high so it becomes fragmented quickly when you do insert, updates and deletes.
Have you tried lowering the 'fill factor'?
September 28, 2011 at 12:41 pm
You can partition by department name and dense rank by salary desc like so:
select dense_rank() over(partition by d.dept_name order by d.salary desc) as 'rank', e.eid, e.employee_name, d.dept_name, d.salary
from employee...
September 28, 2011 at 12:32 pm
Have you tried casting it as char and passing that to the stp?
September 28, 2011 at 12:10 pm
Afaik you must have a select statement immediately after a CTE.
September 28, 2011 at 12:07 pm
So you can see the DB in the drop down list, but you cant right click on it and see which files its pointing to?
Have you restarted sql server service...
September 27, 2011 at 9:20 am
Delete it and re-attach?
September 27, 2011 at 8:50 am
I can't think of a way to do it without using dynamic SQL:
declare @sql varchar(4000)
declare @coll varchar(128)
-- change the select to get your required collation names
set @coll =...
September 27, 2011 at 6:51 am
In SSMS:
Create the user with no extra roles.
As admin, right click on the User -> User Mapping.
Tick the database you want to map their username to, make sure only public...
September 27, 2011 at 6:27 am
Viewing 15 posts - 16 through 30 (of 32 total)