Viewing 15 posts - 436 through 450 (of 506 total)
If you can't create the constraint, there must be data that violates it as Gail said. (BTW Gail, nice B-5 quote from the Rangers)
select j.*
from...
May 23, 2017 at 1:24 pm
When I just select $60:
It looks as though it casts it as smallmoney.
May 22, 2017 at 4:27 pm
May 22, 2017 at 3:30 pm
revoke impersonate on user::privileged_user to group_of_unprivileged_users;
May 22, 2017 at 2:43 pm
Is S: a mapped drive or a local drive? Is this run as a SQL Agent Job? If so, does the account it runs under have permissions on that path?...
May 17, 2017 at 3:20 pm
May 15, 2017 at 6:02 pm
Please read this and re-post as suggested.
http://www.sqlservercentral.com/blogs/spaghettidba/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/
May 15, 2017 at 5:51 pm
Try running update statistics on the tables preferably in an off peak usage period? EXEC sys.sp_MSforeachtable @command1 = N'UPDATE STATISTICS ?', @replacechar = N'?';
May 15, 2017 at 12:12 pm
Leave off the Raiserror function and maybe add logging to a table instead.
May 10, 2017 at 5:49 pm
May 5, 2017 at 12:28 pm
Parsing large XML data sets is very expensive. You would get the fastest results putting the data into in memory tables, that would be fastest if you have Enterprise edition...
April 19, 2017 at 10:32 am
SELECT Count(Distinct [State ID])
, CASE WHEN [State ID] IS NULL OR [State ID] = ' ' THEN 1 ELSE 0 END InvalidStateId
FROM CImport;
April 6, 2017 at 4:52 pm
Sorry, missed that:
This works in 2008:
IF Object_Id(N'tempdb.dbo.#mytable','U') IS NOT NULL
DROP TABLE #mytable;
GO
CREATE TABLE #mytable (
ID int IDENTITY,
PartNum...
April 6, 2017 at 4:45 pm
DROP TABLE IF EXISTS #mytable;
GO
CREATE TABLE #mytable (
PartNum varchar(50),
DueDate datetime,
RequirementFlag tinyint,
Quantity decimal(22,8));
GO
INSERT INTO #mytable (PartNum, DueDate, RequirementFlag,...
April 6, 2017 at 12:13 pm
Viewing 15 posts - 436 through 450 (of 506 total)