The SELECT permission was denied on the object 'sysjobs', database 'msdb',...
Hi all, I'm having a problem here and I don't know what's wrong because it worked in my development environment but test is a disaster. I'm using SQL Server 2014 and I'm getting this error:[b]The...
View ArticleClause in ON vs Clause in WHERE what's the best for performance
Hi,I have a question, in terms of performance what's best in a query with LEFT JOIN:- Put the clause in ON of the LEFT JOIN- Put the clause in WHERE in the end of the queryI have search this topic and...
View ArticleFK references only part of an existing PK
I have an odd ball situation...Table A has a 3 part compound key. (GroupID, PayorID, EffectiveDate)Table B need a check foreign key constraint that references only GroupID & PayorID.Of course, the...
View ArticleSQL 2014 estimated rows for calculated tables
Does anyone know or can point me to documentation of how the estimated rows are calculated for in-memory tables?
View ArticleWake Forest vs Clemson Live stream ...NCAAF...online..2015...
https://www.reddit.com/3tpuvy/https://www.reddit.com/3tpuvy/https://www.reddit.com/3tpuvy/https://www.reddit.com/3tpuvy/https://www.reddit.com/3tpuvy/https://www.reddit.com/3tpuvy/https://www.reddit.co...
View ArticleFrEE!!TV#Clemson vs.. Wake Forest Live NCAAF...Football.. 2014...
https://www.reddit.com/3tq69d/https://www.reddit.com/3tq69d/https://www.reddit.com/3tq69d/https://www.reddit.com/3tq69d/https://www.reddit.com/3tq69d/https://www.reddit.com/3tq69d/https://www.reddit.co...
View Articlehttps://www.reddit.com/3tqock/
https://www.reddit.com/3tqock/ https://www.reddit.com/3tqock/ https://www.reddit.com/3tqock/ https://www.reddit.com/3tqock/ https://www.reddit.com/3tqock/ https://www.reddit.com/3tqock/...
View ArticleMy battle to query XML continues - Can you help?
Hi all,It's official, me and XML don't get on, at least not when I have to query it. So I'm after a bit of help please. I've attached a zip file which contains a SQL scriptto declare a table variable,...
View ArticleTricky Problem with Group by Clause
Hi All, I have trapped with below problem, which am facing this issue from last 4 days, below is my table: CSATEQID Revis FileName Jobcode Jobqal Material1 1 Mick 1 A 101 1 Mick 2 B 201 1 Mick 3 C 301...
View Articlehow to select dynamic date from table1 to use in select table2
scenario:remote_table2 extracts from odbc connection (cloud)local_table1 is local that is always truncated and loaded with new data prior to table2.we want to compare data between local_table1 and...
View ArticleHow to check the user which revoked the object permission
Hello,On my SQL Server there are many logins which can manage permissions.Is there any way we can check the user/application which revoked particular object level permission?Thanks in advanceSree
View ArticleQuery help on Previous record
Hello experts,-----------------------------------------------------------I have below dataID start enddate p1 p2 Update date3144187 2015-07-01 00:00:00.000 2015-12-31 00:00:00.000 18005 test1...
View ArticleNo Record Found message vb.net+Sql 2012
Hello . . . i use this code for searching in sql database what i want is where should i put the message "No Record Found "[code="vb"] If TextBox1.Text = "" Then MsgBox("Please Enter License Number ",...
View ArticleHelp me understand bulk insert blocking chains on unrelated tables
Here's an issue I've been observing (SQL 2014 SP1 CU3):- In a database with 20 tables (clustered key on a bigint identity column, one other index, no constraints/defaults/foreign keys/triggers)- And 20...
View ArticleUpdate table from join that generates duplicates - how does this work behind?
Hi,I'm wondering what does the T-SQL engine does in this case:I created two simple tables with data as an example:[u]Table FACT:[/u]ID_SYSTEM ID_ACCOUNT 0 1 0 2 0 1[u]Table DIM:[/u]ID_ACCOUNT...
View ArticleUDF based on UNSAFE CLR Assembly with Native C++ Freeze on MSSQL 2014
To make faster our client database solution we need to use the our c++ native dll-library from UDF. I read several articles about registering the UNSAFE Assemblies on MSDN and other sources (i skip...
View ArticleYour favorite database development/administration third party helper tools...
In order to share some of my own experience of third party SQL Server tools (mostly free) and In hope of learning about some new onesI would like to start a listing about my favorite third party SQL...
View ArticleReturning all rows from multiple partitions of a partitioned table
I have a table that is partitioned into multiple filegroups and spread out over multiple tables b y month. My partition scheme is using a date column. What I would like to do is something like the...
View ArticleIndexes
If you have on Index with Column A and another Index with Column A and Column B can't you just have the Index with Both Columns as long as Column A precedes column B of the composite index?With respect...
View ArticleHow to get SISS package to load data from SQL 2014 to SQL 2005
Hi I'm stuck and hoping you guys can help me out.We have an SSIS package that moves data from one SQL 2005 application db on a remote server to DM database pm SQL 2005 on the local server.The...
View Article