Viewing 15 posts - 1,021 through 1,035 (of 1,838 total)
April 7, 2017 at 10:25 am
d'oh sorry I forgot the square brackets!
April 7, 2017 at 8:54 am
So is it just me, or does that white sheep in the SQL Clone banner adds remind anyone else of Shaun the sheep?
http://www.shaunthesheep.com/
April 7, 2017 at 8:14 am
easiest way is to use the SP_MSFOREACHDB extended stored proc:
CREATE TABLE #SchemaList (db_id int, db_name sysname, schema_name sysname);
EXECUTE sp_msforeachdb 'USE ? INSERT INTO #SchemaList SELECT...
April 5, 2017 at 3:07 pm
If you were to make 2 indexes for the columns, what would the other one be? Creating a unique constraint does create an index so that isn't any different. One...
April 4, 2017 at 3:06 pm
After restoring the SSAS database, just make sure you repoint your Data Sources, so that the cube will use your testing SQL Server database not your production SQL Server databases.
April 4, 2017 at 2:33 pm
The schema permission issue you describe in SQL Server may be related to what's called ownership chaining:
https://www.mssqltips.com/sqlservertip/1778/ownership-chaining-in-sql-server-security-feature-or-security-risk/
If the schemas have the same owner (many times DBO) then it's...
March 31, 2017 at 3:10 pm
You can get a more detailed peek at CPU usage by looking at Performance Monitor in Windows, or even some recent history using the Ring Buffer in SQL Server:
March 31, 2017 at 12:07 pm
actually SQL Server does let you add a foreign key to a unique constraint such as this, you just have to reference all the columns in both sides of the...
March 31, 2017 at 11:50 am
The thing that I find best helps me is hiking. I'm fortunate to live in an area that has a 33,000 acre national park just 5 miles from where I live with...
March 31, 2017 at 9:13 am
March 29, 2017 at 1:06 pm
to fix Steve's, the CTE query needs a DISTINCT in it otherwise it returns 2017-03-28 3 times:
with top_dates as (
select DISTINCT top 3 with...
March 29, 2017 at 12:47 pm
you may be able to use the application name property of the connection:
https://docs.microsoft.com/en-us/sql/t-sql/functions/app-name-transact-sql
Even if your application doesn't set it, you can still tell SSMS. I've used code...
March 28, 2017 at 12:42 pm
March 28, 2017 at 10:24 am
Viewing 15 posts - 1,021 through 1,035 (of 1,838 total)