Viewing 15 posts - 211 through 225 (of 1,219 total)
I'm starting to suspect that the issue is with something you have not told us about. It would not be the first that this happens in a forum thread....
But you...
November 14, 2019 at 4:50 pm
If you run
CREATE TABLE #temp(a int NOT NULL)
INSERT #temp(a)
SELECT a FROM OPENQUERY(LLIVE1, 'SELECT 1 FROM dual UNION ALL SELECT 1 FROM dual UNION...
November 14, 2019 at 2:07 pm
What happens if you run the SELECT on its own? What happens if you insert into a local table?
And I can't escape wondering how come you are not running this...
November 14, 2019 at 11:59 am
I would use Profiler to see what is going on. Run it on both machines, and make sure that you include the events Error:Exception and Error:UserMessage. Also include SP:StmtStarting and...
November 7, 2019 at 8:32 pm
Connections to SQL 2005 from SSMS 18 is not officially supported, but as long as you are only using query windows it should work. If you use GUI dialogs you...
November 6, 2019 at 3:58 pm
This is what Scott had in mind:
CREATE UNIQUE INDEX my_index ON tbl(col) WHERE col IS NOT NULL
Although, with an INSTEAD OF trigger, the column can be made NOT NULL, which...
October 30, 2019 at 6:09 pm
I created this procedure in tempdb:
CREATE OR ALTER PROCEDURE slafs_sp @time time(0) AS
SELECT * FROM sys.objects WHERE convert(time(0), modify_date) <= @time
set...
October 30, 2019 at 4:54 pm
It would be better to paste the code for the script, using the insert/edit code sample button rather than posting a picture. That would also permit you hide your sa...
October 30, 2019 at 1:36 pm
So how does your script actually look like?
October 30, 2019 at 1:08 pm
As always when you call a procedure, you put the parameter value after the stored procedure. For instance:
et DBName=DBLive
set DBServerName=ServerLive
set FileName=ClosePrice_N.csv
set param="My parameter value"
bcp "EXEC %DBName%..stp '%param%'"...
October 30, 2019 at 12:11 pm
You mean it tries to insert all the rows at once, and only AFTER they are all inserted, does the trigger begin its work?
Yes.
I can't say whether it is a...
October 30, 2019 at 10:41 am
Yeah, but the trigger is an AFTER trigger. So the trigger does not fail on multi-row inserts. The INSERT statement fails before the trigger is fired. This is why I...
October 30, 2019 at 9:44 am
Not sure that I get this, but if you insert multiple rows at the time, and don't fill something in the CompleteTaxonText column, you have multiple NULL which will validate...
October 30, 2019 at 8:25 am
In the Advanced tab for the job step, specify an output file for the job step. That is better than the job history which has a limit in number of...
October 28, 2019 at 9:47 pm
It's nchar(10), so why only seven?
Anyway:
UPDATE tbl
SET rec_ref = replace(str(rec_ref_to_date, 7), ' ', '0')
The str function returns a number right-justified padded by spaces. Default...
October 24, 2019 at 9:22 am
Viewing 15 posts - 211 through 225 (of 1,219 total)