Get Record count of all tables of current database
This script will return record count of all user tables from the current database
2008-11-05
1,076 reads
This script will return record count of all user tables from the current database
2008-11-05
1,076 reads
How do you handle this error? "Cannot create index on view, because the view is not schema bound".
2008-11-05
3,263 reads
2008-11-04
3,438 reads
Another method to create arrays in T-SQL which is actually a "throwback" to the earlier days of compilers!
2008-11-04
11,806 reads
2008-11-03
3,383 reads
The following article shows how to compare dates in an iterative manner for a particular set of records in a single query
2008-10-27
4,953 reads
This paper introduces key new Transact-SQL programmability features in Microsoft SQL Server 2008 as well as SQL/Common Language Runtime (CLR) enhancements.
2008-10-24
6,178 reads
I'm designing a table and I've decided to create an auto-generated primary key value as opposed to creating my own scheme or using natural keys. I see that SQL Server offers globally unique identifiers (GUIDs) as well as identities to create these values. What are the pros and cons of these approaches?
2008-10-23
5,803 reads
Auditing data changes in your production environment is very important, especially if you are dealing with confidential information.
2008-10-23
4,223 reads
In my T-SQL code I always use set based operations. I have been told these types of operations are what SQL Server is designed to process and it should be quicker than serial processing. I know cursors exist but I am not sure how to use them. Can you provide some cursor examples?
2008-10-21
5,907 reads
By Steve Jones
I’ve often done some analysis of my year in different ways. Last year I...
By Steve Jones
This was Redgate in 2010, spread across the globe. First the EU/US Here’s Asia...
By John
Today is Christmas and while I do not expect anybody to actual be reading...
I have a couple of SQL Agent job steps which run PowerShell commands of...
Comments posted to this topic are about the item Database security permissions save script
I have a SQL Agent job for backing up a set of Analysis Services...
I want to use the new BASE64_ENCODE() function in SQL Server 2025, but return a string that isn't large type. What is the longest varbinary string I can pass in and still get a varchar(8000) returned?
See possible answers