Viewing 13 posts - 31 through 43 (of 43 total)
While you can use the sys.dm_db_index_usage_stats view to identify when an index was last accessed by a user, this also requires that you make assumptions regarding the last time it...
March 20, 2020 at 5:12 pm
If the Excel attachment requirement exists, that will make things a bit more complicated to perform this using T-SQL. I believe it also requires 'Ad Hoc Distributed Queries' enabled as...
March 20, 2020 at 2:07 pm
I'm actually stuck in that boat myself trying to finish off the MCSE: Data Management and Analytics now, before it's retired. I can appreciate the new direction Microsoft is taking...
March 13, 2020 at 12:55 pm
Nevada, as you mentioned the single quotes around each item being inserted into the corresponding "char" columns will fix the issue. The values turning red seems to indicate there was...
February 14, 2020 at 7:32 pm
Hey George,
The PackageFormatVersion is still 8 with a TargetServerVersion of SQL Server 2019. It was previously 6 with SQL Server 2012, but has not changed since.
With the newest Integration Services...
December 30, 2019 at 3:44 pm
Thanks for the question, Steve! This was fresh on my mind after having recently read jonfrisbee's article on the subject.
December 2, 2019 at 2:05 pm
Great question! I've been enjoying the computed column questions recently, as I don't work with computed columns very often. As mentioned previously, it does look like the answers are using...
November 5, 2019 at 1:59 pm
If you had the following table:
person_id|first_name
---------|----------
1 |John
2 |Wally
3 |James
4 |John
The query in your post would return:
person_id|first_name
---------|----------
1 |John
2 |Wally
3 |James
Which removed the other "John" with...
November 4, 2019 at 4:18 pm
Hey John,
Based on the previous answers, the sys.objects view with a search condition on is_ms_shipped would likely be your best bet to accomplish this.
Using SQL Server 2017, you can also...
November 4, 2019 at 2:51 pm
Are you asking the best way to store the data?
The HTML character set was extended to ISO 10646, which is similar to Unicode. I would recommend using nvarchar (MAX) or...
October 16, 2019 at 2:49 pm
Hey George,
This gets into a rather tricky area. Referencing error message 15250:
"The database name component of the object qualifier must be the name of the current database."
As John suggested, this...
October 15, 2019 at 1:19 pm
You could use ROW_NUMBER() to partition by the AppNumber and order by the Time_GeneratedAt columns using SQL Server 2008 R2. Using the LAG() or LEAD() function would be more ideal...
September 27, 2019 at 1:35 pm
Viewing 13 posts - 31 through 43 (of 43 total)