Viewing 15 posts - 3,496 through 3,510 (of 13,855 total)
Your code works , if you place the columns as you want to see result ( as example i provided) , but if i place all the columns in...
June 19, 2019 at 8:40 pm
If you are OK with locking/blocking while the transaction completes, I suggest you look into the possibility of using
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
June 19, 2019 at 6:51 pm
As long as there are always exactly two statuses, this should work:
DROP TABLE IF EXISTS #LoanStatus;
CREATE TABLE #LoanStatus
(
LOANNUMBER INT
,CLOSED VARCHAR(200)
...
June 19, 2019 at 6:46 pm
Nor have I been able to find a tally table solution to fixing my car's engine trouble. They're useful, but not universally so.
Can you post some sample DDL, INSERT statements...
June 19, 2019 at 6:31 pm
Please provide sample DDL and INSERT statements for the above structure and you'll have a working solution very quickly.
June 19, 2019 at 6:27 pm
I'd suggest that your 'real table' contains a row with a missing semicolon.
Or is this just a blog post?
June 19, 2019 at 3:35 pm
Here's another way which is slightly more robust (because IsNumeric() can return unexpected results).
SELECT d.name
FROM sys.databases d
WHERE d.database_id > 4
AND PATINDEX('%[0-9][0-9]',...
June 19, 2019 at 2:20 pm
You are using command line sqlcmd, so SSMS is not relevant here.
June 19, 2019 at 1:38 pm
Can other people make changes to it?
Trying to establish whether the problem is with the table itself, or with your Access instance.
June 18, 2019 at 9:37 pm
Replace
DATEPART("ww" ,GETDATE())
with
DATEPART( "ww", dateadd("d",-7,getdate() ))
June 18, 2019 at 9:26 pm
I don't like this design much, but here's an idea that might help.
DROP TABLE IF EXISTS #Ops;
CREATE TABLE #Ops
(
ProductId INT
,PriorityOrder...
June 18, 2019 at 7:33 pm
Something like this:
INSERT INTO Archive_table (<column_list>)
SELECT (<column_list>)
FROM TableA AS A
INNER JOIN TableB AS B
...
June 18, 2019 at 6:46 pm
By 'Reports', are you referring to SSRS reports?
When you say 'few', do you mean that some reports are OK and others are not?
Do you get any errors? If so, please...
June 18, 2019 at 4:10 pm
But how will you coordinate the synonym switch with what the Java app is doing?
June 18, 2019 at 3:30 pm
Viewing 15 posts - 3,496 through 3,510 (of 13,855 total)