Viewing 15 posts - 1,066 through 1,080 (of 13,446 total)
i would add dates and whodunnit information to the history table as well. From what you have show so far, you cannot tell when it occurred, which could be important,...
April 29, 2016 at 11:47 am
j-1064772 (4/29/2016)
Sioban Krzywicki (4/28/2016)
April 29, 2016 at 8:50 am
SQL!$@w$0ME (4/29/2016)
I can't connect to a named instance(TCP/IP) through VPN connection. But I can connect to the default instance(TCP/IP) [highlight="#ffff11"]on the same server[/highlight] through VPN.
The named instance is...
April 29, 2016 at 8:46 am
it's not a one line fix; performance and query tuning and analysis, a have entire books written on the subject.
in general, my knee jerk reaction would be to update statistics...
April 29, 2016 at 6:48 am
just the drops scripts are pretty easy, you can just build the statements from sysjobs;
select
'IF EXISTS (SELECT job_id FROM msdb.dbo.sysjobs_view WHERE name = N''' + name + ''')
EXEC...
April 29, 2016 at 6:38 am
Sioban Krzywicki (4/28/2016)
April 28, 2016 at 1:04 pm
Sioban I'm with you here!
I try like crazy to make everyone replace reserved words, as well as fixing misspelled columns i inherited.
I have a column ProvdierType that makes me crazy,...
April 28, 2016 at 12:48 pm
CTE's would work, as well as subqueries(same thing,really , just different format.
here's my version of your post as CTE's:
DECLARE @personID INT = 123999;
WITH ELDASummary
AS (SELECT...
April 27, 2016 at 6:11 pm
there's no upgrade path for Express to non express versions; instead you need to backup all the databases, script out your logins, as well as anything server related...certificates, linked servers,...
April 27, 2016 at 5:30 pm
a trigger has a COLUMNS_UPDATED integer value which represents a bitmask for the columns that were mentioned in the update, but it does not tell you if the value changed...
April 27, 2016 at 9:45 am
is this on a cluster, where it might be failing over or toggling to the other node?
is it possible someone is downing the server for maintenance?
did you check the...
April 27, 2016 at 6:17 am
i think it's integer division. SQL maintains the datatype, and the avg is truncated to a integer.
change the datatype of the column from int to decimal(19,4) and you get 2.5
Declare...
April 26, 2016 at 3:27 pm
if the table has an implicit or explicit ordering, like an identity() column, or a CREATEDDATE datetime column, you can compare old to new in a set based operation, by...
April 26, 2016 at 3:02 pm
well i dug a little deeper in my old parser utility.
i expected the tables to be identified as TOKEN_TABLE, but they end up being TOKEN_ID instead; i guess with a...
April 26, 2016 at 12:29 pm
Viewing 15 posts - 1,066 through 1,080 (of 13,446 total)