Viewing 15 posts - 39,616 through 39,630 (of 59,098 total)
Welsh Corgi (2/26/2010)
There are many ways to exploit Dynamic SQL and this is well documented.
In my humble;e opinion you have to take steps to minimize...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 9:25 pm
kyounger (2/26/2010)
Basically, I could put any INSERT, UPDATE, SELECT, etc. query, and it...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 9:18 pm
Alex 469216 (2/26/2010)
More over, what should I do if I need to consolidate more tables in the future?
You could insert your top 20 ActiveDirectory records into a temp table
and UNION...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 9:12 pm
iqtedar (2/26/2010)
thanks everyone ...i know i cant have two dbs with same name under same instance...i was looking is there a way setup some alias..or something else..
Synonyms, pass through views,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 9:10 pm
sanketahir1985 (2/23/2010)
i want O\P in foll. format
dbdate dbname datasize_MB
====== ======== ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 9:01 pm
Trybbe (2/26/2010)
Staffno name position posid headcount period
123 john developer ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:57 pm
thummalalavanya (2/26/2010)
i want to insert bulk data in one field in a table without using txt file directly using insert statement .plese reply me.
OPENROWSET or text based linked server....
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:53 pm
I just have to ask this question... what's so wrong with India that all the techies want to bail out of it? I'm not trying to be a smart...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:51 pm
Welsh Corgi (2/26/2010)
There are many reasons to avoid this. If you want SQL Injection...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:49 pm
lmu92 (2/26/2010)
A common way to resolve this issue is the usage of FOR XML PATH.
Something like
SELECT [EnrolleeID],
STUFF(
(SELECT '-' +...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:37 pm
ChrisM@home (2/26/2010)
DROP TABLE #Sampler
DECLARE @TableSize INT, @SampleSize INT
SET @TableSize = 1200000
SET @SampleSize = @TableSize/10 -- 10%
SELECT TOP(@SampleSize) SampleID = ABS(CHECKSUM(NEWID()))%@TableSize
INTO...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:35 pm
manojkanoi (2/26/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:28 pm
Heh... poor ol' dynamic SQL... nobody loves it anymore.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:22 pm
I hate all times as they are. It's odd that some folks want to move to the metric system and are still perfectly happy with the insanity of a...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:18 pm
Jason... you might also want to try Gianluca's enhancement with the original "seed" using UNPIVOT. Between what he came up with, your original work, and Tom's enhancement, you should...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2010 at 8:04 pm
Viewing 15 posts - 39,616 through 39,630 (of 59,098 total)