Viewing 15 posts - 1 through 15 (of 20 total)
If you want to make this super-robust a guard that tests if sys.dm_exec_describe_first_result_set_for_object can determine the metadata could be worthwhile. For example, using this technique for sp_who2 does not...
March 22, 2016 at 7:11 am
[Flag] [decimal](20,0) is not the right data type choice. It is a 4-byte int https://msdn.microsoft.com/en-us/library/ms680832(v=vs.85).aspx
July 27, 2015 at 7:35 am
Again I wonder how they choose a "Featured Script". Is this "featured" as an anti-pattern? I guess that I assume something is featured to show a best practice....
July 22, 2015 at 11:58 am
Useful for a number of reasons. Most I can think of don't need a survey like this. However, off the top of my head, if you are deciding...
April 24, 2015 at 12:36 pm
I typically put an existence guard when I do a DROP TABLE: IF OBJECT_ID('tempdb..#tblHOLD') IS NOT NULL DROP TABLE #tblHOLD
Even for temp tables, I would use meaningful names, especially...
April 24, 2015 at 8:38 am
I don't know how "Featured Scripts" are chosen. As LuckyNickyBoy observed the procedure is inefficient as it executes 4 tests where 2 are needed. Also, it uses the...
April 21, 2015 at 6:54 am
shivaram challa (10/29/2013)
Actually, this script will work for 2000, 2005, 2008 and hopefully 2012. I dont know if this will work for 6.5 though.
The reason is sys tables...
October 29, 2013 at 2:39 pm
shivaram challa (10/29/2013)
October 29, 2013 at 11:45 am
Dohsan (2/28/2013)
if the sum...
March 1, 2013 at 8:25 am
We're DINKS so I have some time & money.
My desktop has 1TB, raw 500 GB net in 4 drives. The system mirror has an XP, Vista, and Ubuntu boot partition. ...
January 25, 2007 at 10:07 pm
Is this what you are looking for:
create procedure uspNest
as
select top 10 uid, status
from model.dbo.sysusers
go
create table #Tempo
(uid int,
status int)
insert into #Tempo ...
April 7, 2006 at 8:36 am
I'd use an ActiveX script
set oConnection = oPackage.Connections("ConnectionName")
oConnection.DataSource = "FileName.xls"
April 7, 2006 at 8:03 am
Another bad question with no right answer. The best choice to add to the list of answers would have been "Not enough information to determine". The next best to add...
July 16, 2004 at 7:52 am
I would just like to add my voice to those who have pointed out that the purported answer to this question is wrong. Procedure caches are not typically thought of...
July 16, 2004 at 7:46 am
Viewing 15 posts - 1 through 15 (of 20 total)