Viewing 15 posts - 3,526 through 3,540 (of 13,877 total)
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
Thom, if that's the case, you are right.
But for the examples provided, I can't see how it's required (excepting, possibly, the change in cost price – though any half-decent application...
June 18, 2019 at 2:56 pm
I mean by running one or more queries which look for validation issues & passing the results of those queries to sp_send_dbmail.
There are many ways of doing it. Here...
June 18, 2019 at 2:39 pm
I'm not a fan of triggers, so my initial thought would be to create a SQL Agent job which runs periodically (hourly? daily?), looking at all rows in the table...
June 18, 2019 at 1:54 pm
June 18, 2019 at 1:41 pm
Viewing 15 posts - 3,526 through 3,540 (of 13,877 total)