Viewing 15 posts - 91 through 105 (of 560 total)
jay-h (4/15/2015)
Details:
Sql2008 R2
Windows 2008 R2
VM
Need to move files to different drive
Detatched successfully. However I physically cannot copy the files to the new folder, continuously getting "You need administrative permissions" (interestingly...
April 16, 2015 at 12:43 pm
Talib123 (4/16/2015)
As far as I am aware and to my knowledge changing from PK NON-C to PK Clustered is correct to do.Thanks
The right answer is, it depends. To mention a...
April 16, 2015 at 12:32 pm
scb (4/12/2015)
Has anyone used HammerDB or Benchmark Factory and tried SQL 2014 in-memory? Wondering what schema or stored procedure changes would be necessary to make it happen.
Interesting on seeing how...
April 16, 2015 at 12:16 pm
Try this...
DECLARE @t table(ID int not null identity(1,1), name varchar(255));
INSERT INTO @t(name)
SELECT name
FROM sys.databases -WHERE database_id > 4
SET @total = @@ROWCOUNT;
SET @id=1;
WHILE @id <=...
April 16, 2015 at 11:10 am
hudriwudri5 (4/16/2015)
For me there are two possible answers
First : this is something I don't understand
Second: it's...
April 16, 2015 at 10:52 am
mxy (4/16/2015)
April 16, 2015 at 10:46 am
Like Phil explained, performance will never be be optimal. SSIS or bcp is faster.
Having said that and if you can't change your code, I would suggest this read:
April 16, 2015 at 10:30 am
You need to delete in batches. I've done that dozens of times without issues on tables with several millions records. But regardless, you table will be fragmented once you're done,...
April 16, 2015 at 10:22 am
Jason-299789 (4/16/2015)
This is why I detest cursors for all but a few selective requirements.
1+
April 16, 2015 at 8:32 am
I use powershell for this type of cross server activities. Here's an example: USING POWERSHELL TO LOOP THROUGH A LIST OF SQL SERVER DATABASES[/url]
April 15, 2015 at 12:43 pm
Avoid cursors. If you can get same result via pure TSQL, that will always perform better. In fact, getting rid of cursors will help you think in sets.
Regarding your question...
April 15, 2015 at 12:36 pm
PHYData DBA (4/14/2015)
sql-lover (4/10/2015)
I need 100% certainty. The DMV/count is needed to identify the table(s) with an empty set. A massive DDL change will be...
April 14, 2015 at 1:44 pm
Luis Cazares (4/14/2015)
sql-lover (4/14/2015)
I still would like to hear any advice but I think I can't rollback DDL statements in TSQL. In other words,...
April 14, 2015 at 10:04 am
Hmmm .... thinking loud and to myself.
I still would like to hear any advice but I think I can't rollback DDL statements in TSQL. In other words, and after re-reading...
April 14, 2015 at 8:07 am
The script ran beautifully! 😉 Thanks all for your input.
April 14, 2015 at 7:32 am
Viewing 15 posts - 91 through 105 (of 560 total)