Viewing 15 posts - 526 through 540 (of 1,162 total)
MysteryJimbo (2/9/2012)
February 9, 2012 at 4:46 am
craig-962225 (2/8/2012)
February 8, 2012 at 10:38 am
SSIS is the way to go if you want to speed this up. I find non-MS linked server connections to be really slow.
February 8, 2012 at 8:21 am
It's pretty bad looking code, but it's straight forward. It's adding and substracting numerical values.
E.g. the first select statement is returning a scalar value (a number), to which the other...
February 8, 2012 at 7:17 am
Also, what exact version of SQL Server are you running? There are a few bugs related to this error. You need to get your DBA's involved (if you have them!)...
February 8, 2012 at 3:02 am
Run a DBCC CheckDB on the database. If it's bombing out with a severe error, it could well be database corruption.
February 8, 2012 at 2:53 am
Is this what you're after?
SELECT ROW_NUMBER() OVER(ORDER BY columnA desc)
rn, columnB, columnC
FROM (SELECT TOP 10 * FROM #tableA ORDER BY columnA DESC) a
The key is that you need to...
February 7, 2012 at 10:47 am
Can you give the DDL for the mySQL table you're querying against? Any odd types?
Linked Server isn't perfect and there isn't always a one to one mapping between types,...
February 7, 2012 at 10:14 am
GilaMonster (2/7/2012)
I will admit, recompile would not be my first or even second option for dealing with parameter sniffing.
I'm pretty much in the opposite camp now, but that's mainly because...
February 7, 2012 at 9:32 am
Use the DMV sys.dm_db_partition_stats instead, then it's much easier to tweak.
If you want a complete solution, already built, I quite like this one:
http://www.rmjcs.com/SQLServer/DMVs/sysdm_db_partition_stats/tabid/55/Default.aspx
February 7, 2012 at 7:52 am
It's hard to get my head around the logic without really digging into it, but I'm pretty sure that you could get the effect you're after without the join to...
February 7, 2012 at 6:52 am
Why do you need to run the whole thing in BIDS? After you've debugged it with a smaller number of files, couldn't you just execute the package outside of the...
February 7, 2012 at 5:37 am
This one's particularly amusing in that not only does it have nothing at all to do with the topic, but it's not even T-SQL, it seems to be for Firebird!
I'd...
February 6, 2012 at 7:41 am
Have a look at the BOL article on TRUNCATE:
http://msdn.microsoft.com/en-us/library/ms177570.aspx
It works very differently to DELETE in that it is not selective at all, it literally wipes the table clean by deallocating...
February 3, 2012 at 10:26 am
No, or the database wouldn't be recoverable if it crashed during your transaction.
You can minimally log a TRUNCATE, but you need to have no FK's on the table and clear...
February 3, 2012 at 10:14 am
Viewing 15 posts - 526 through 540 (of 1,162 total)