Viewing 15 posts - 5,896 through 5,910 (of 6,400 total)
Cadavre (2/20/2012)
BEGIN TRAN
--Sample data
SELECT X,Y
INTO yourTable
FROM (VALUES('A', 'B'),('A', 'B'),('A', 'C'),('A', 'C'),('A', 'C'))a(X,Y)
--Solution
SELECT X,Y,
ROW_NUMBER() OVER(PARTITION BY X,Y ORDER BY X,Y) AS SEQ
FROM yourTable
ROLLBACK
damn that was fast
February 20, 2012 at 8:52 am
create table #temp (x char(1), y char(1))
insert into #temp values ('a','b')
insert into #temp values ('a','b')
insert into #temp values ('a','c')
insert into #temp values ('a','c')
insert into #temp values ('a','c')
select row_number() over(partition by...
February 20, 2012 at 8:51 am
Steve Jones - SSC Editor (2/20/2012)
I see it's working. Yikes, I hope that's not how you feel most days :w00t:
Nope, thankfully since I have moved on from the old position...
February 20, 2012 at 8:13 am
here is another link as well, this one is a bit more printer friendly
http://www.simple-talk.com/sql/sql-training/ssms-the-query-window-keyboard-shortcuts/
February 20, 2012 at 8:09 am
how do you determin that the session is closed?
are you sure its just not SQL reassigning the SPID to a different connection?
February 20, 2012 at 8:08 am
is the user MODERN\saaz a member of the local administrators group on the server?
February 20, 2012 at 5:12 am
Yeah it is a pain to get your head around, I had to do a full VMware ESX and SQL compliance project at the old place as they where very...
February 20, 2012 at 3:21 am
to add on from Gail's post, you haven't been doing regular TX log backups.
you now have a number of choices
backup the log to a new 2TB drive, shrink the log...
February 20, 2012 at 3:19 am
if you shrink by query or by job the syntax is the same, you just put a t-sql job step in and give it the t-sql.
DBCC SHRINKFILE(1,100) in a query...
February 20, 2012 at 2:57 am
is there a particular reason you cant use while loops or cursors?
February 20, 2012 at 2:36 am
How big is your TX log? 2TB? Or is the drive it is located on full?
run the following and return the results
select name, log_reuse_wait_desc, recovery_model_desc from sys.databases where name =...
February 20, 2012 at 2:31 am
first of all your DDL script is not complete, you reference a column in #temp called tax_ref_id which you have not defined and a variable called @tax_ref_id which again you...
February 20, 2012 at 2:13 am
Are you going down the route of each developer will have their own machine which have Hyper-V with a load of VM's SQL Visual Studio etc, or will it be...
February 20, 2012 at 2:07 am
Use the MAXAGE switch in robocopy and give it a values, eg 7 for 7 days,
This is the URL I use for robocopy switches
February 20, 2012 at 1:17 am
Thanks Lowell, it was the size of the gif, original one i had was 150x117, but managed to find an 80x80 and its working great.
Thanks alot
February 20, 2012 at 1:09 am
Viewing 15 posts - 5,896 through 5,910 (of 6,400 total)