Viewing 15 posts - 6,481 through 6,495 (of 26,490 total)
Lee Hopkins (6/23/2014)
my problem is i the record i need to keep could be say row 5 of a partition (of...
June 23, 2014 at 2:42 pm
Rog Saber (6/23/2014)
Lynn Pettis (6/23/2014)
with base...
June 23, 2014 at 2:38 pm
So something like this:
/*
1 5 City A Delete
3 6 City B Delete
1 7 City C Delete
1 8 City E Keep
2 8 City E Delete
3 8 City E Delete
1 9 City...
June 23, 2014 at 2:08 pm
Do you mean to delete from the result set or the table?
June 23, 2014 at 1:53 pm
Maybe something like this:
create table dbo.Emp(
EmpId int identity(1,1),
EmpName varchar(32)
);
create table dbo.Audit(
AuditId int identity(1,1),
...
June 23, 2014 at 1:44 pm
Not the most efficient way to do it, but I'm sure someone will come along with a better solution (or I may given more time):
with base as (
select
...
June 23, 2014 at 1:18 pm
Jeff Moden (6/23/2014)
pwalter83 (6/23/2014)
ChrisM@Work (6/23/2014)
pwalter83 (6/23/2014)
ChrisM@Work (6/23/2014)
June 23, 2014 at 9:37 am
I don't have a script I can provide but you may want to look at PowerShell for this.
June 21, 2014 at 12:12 pm
Eirikur Eiriksson (6/21/2014)
Lynn Pettis (6/21/2014)
June 21, 2014 at 11:49 am
I've used synonyms before as well, should have thought of it myself. But, it was a good exercise in learning to swap partitions since I hadn't done it before.
June 21, 2014 at 11:28 am
thomashohner (6/21/2014)
June 21, 2014 at 11:23 am
thomashohner (6/21/2014)
June 21, 2014 at 10:39 am
Here is how I am importing an XML file into an XML variable for processing. The key is the OPENROWSET BULK option. Hope this helps some.
declare @Filename nvarchar(256),
...
June 21, 2014 at 9:57 am
Congratulations! Hoping I can find a position working from home when I redeploy from Afghanistan. Would be awesome.
June 21, 2014 at 9:52 am
Using TheSQLGuru's idea, create two tables in your database that mirror each of the tables including indexes you need to update once a day. One table can be labeled...
June 20, 2014 at 5:38 pm
Viewing 15 posts - 6,481 through 6,495 (of 26,490 total)