Viewing 15 posts - 3,661 through 3,675 (of 26,490 total)
Greg Edwards-268690 (6/9/2016)
Y.B. (6/9/2016)
I realize that there...
June 9, 2016 at 9:16 am
Mention Dynamic SQL and suddenly that is THE solution for the immediate problem, but what problems may it cause down the road?
Won't be surprised if we hear from that OP...
June 8, 2016 at 2:11 pm
erouse (6/8/2016)
3Last 7 daysDATEADD(day,...
June 8, 2016 at 12:12 pm
Brandie Tarvin (6/8/2016)
User asks me to move this bit of code into QA:
ALTER TABLE MyTable
ADD Col1 INT,
Col2 INT
GO
I push back and say "Please add your statement...
June 8, 2016 at 12:07 pm
Firemander (6/8/2016)
Selecting * from a particular table that is well indexed (SELECT * FROM tbEmployees)
...
June 8, 2016 at 12:04 pm
j-1064772 (6/8/2016)
OK, thanks.[font="Comic Sans MS"](but it still looks weird...)[/font]
Won't deny that, looks even weirder when you use the same variable name on each side. I have done it and...
June 8, 2016 at 11:58 am
Steve Jones - SSC Editor (6/8/2016)
Lynn Pettis (6/7/2016)
Hugo Kornelis (6/7/2016)
GilaMonster (6/7/2016)
June 8, 2016 at 11:56 am
j-1064772 (6/8/2016)
I...
June 8, 2016 at 11:49 am
komal145 (6/8/2016)
all accounts are stored in TableA witrh dates specified
Then TRUNCATE TABLE TableA will do just that, truncate the table of all data regardless if any of the data should...
June 8, 2016 at 11:36 am
mw112009 (6/8/2016)
? ( I mean via T-SQL ) What sys.xxx should I be querying
You need to link sys.views and sys.sql_modules.
June 8, 2016 at 11:22 am
komal145 (6/8/2016)
Declare @Truncate bit
BEGIN TRY
EXEC [GetLoadStatus]
@Query = N'accountname',
@StatusFlag = @Truncate OUTPUT
IF @Truncate...
June 8, 2016 at 11:18 am
Welsh Corgi (6/8/2016)
SELECT DISTINCT ID, Name, Abbreviation, CountryID
FROM Postal_StateProvince
WHERE CountryID = 2
It returns the following values:
IDNameAbbreviationCountryID
52AlbertaAB2
53British ColumbiaBC2
54ManitobaMB2
55New BrunswickNB2
56NewfoundlandNL2
57Northwest TerritoriesNT2
58Nova ScotiaNS2
59NunavutNU2
60OntarioON2
61Prince Edward IslandPE2
62QuebecQC2
63SaskatchewanSK2
64Yukon TerritoryYT2
It return the following...
June 8, 2016 at 11:12 am
Welsh Corgi (6/8/2016)
John Mitchell-245523 (6/8/2016)
Welsh Corgi (6/8/2016)
I queried the source table and there is only one record with value of...
June 8, 2016 at 11:07 am
j-1064772 (6/8/2016)
I am having difficulty understanding how to make available a parameter set with dynamic T-SQL.
I expect value of the [font="Courier New"]@s_MaxOrderOut[/font] to be already defined in the [font="Courier...
June 8, 2016 at 11:04 am
Ed Wagner (6/8/2016)
SQLRNNR (6/8/2016)
Ed Wagner (6/8/2016)
Jeff Moden (6/7/2016)
Lynn Pettis (6/7/2016)
Hugo Kornelis (6/7/2016)
GilaMonster (6/7/2016)
June 8, 2016 at 10:40 am
Viewing 15 posts - 3,661 through 3,675 (of 26,490 total)