Viewing 15 posts - 421 through 435 (of 2,900 total)
Why do you need the DB off line ?
I was suggesting searching jobs and stored procedures for anything related to backup/restore history tables.
September 14, 2016 at 8:56 am
John Mitchell-245523 (9/13/2016)
(1) Take...
September 13, 2016 at 1:21 pm
Something deleting backup history for that backup ?
For instance, if you drop a database through the GUI, there's a checkbox default to delete backup history. If someone scripted out the...
September 13, 2016 at 1:07 pm
Thanks, we're currently running SQL 2005 & 2008 on our servers.
Current licensing costs for SQL have not justified upgrading, since we have a fairly low volume, low traffic web application.
You...
August 30, 2016 at 1:55 pm
Thanks. I think I will use this variant which worked:
EXECUTE ('update P set P.Email1 = Email1 + ''XYZ''
from MyDatabase.dbo.Profiles P
JOIN MyDatabase.dbo.Complaints EC on EC.ID =...
July 29, 2016 at 2:09 pm
Pulling the whole table back must be the problem. Thanks.
I think I knew that at one point 😉
I was trying this:
update LinkedServer.MyDatabase.dbo.Profiles
set Email1 = 'XYZ'
from LinkedServer.MyDatabase.dbo.Profiles P
JOIN LinkedServer.MyDatabase.dbo.Complaints C on...
July 29, 2016 at 1:00 pm
Luis Cazares (7/22/2016)
Ahem...Luis Cazares (7/22/2016)
Have you tried printing the statements before executing them? Maybe a null is giving you problems.
Yes, I mentioned that running the exact code in a SQL...
July 22, 2016 at 11:42 am
Thanks for the replies. I know the SP is hitting the correct database, because it completes 1 of the inserts correctly, but just "stops" at the next one.
All I can...
July 22, 2016 at 7:33 am
djj (7/21/2016)
Should @SQL_CMD be NVARCHAR?
I tried it, no improvement
July 21, 2016 at 3:05 pm
djj (7/21/2016)
Should @SQL_CMD be NVARCHAR?
Do you think that would make a difference in my case ?
All our similar SP code uses VARCHAR.
July 21, 2016 at 1:30 pm
In case it helps, here the whole SP, with a comment where @SQL_CMD WORKS and @SQL_CMD DOES NOT WORK.
Must be some dumb mistake somewhere.
ALTER procedure dbo.usp_JobMatch_ListTransfer
@Job_ID int...
July 21, 2016 at 12:08 pm
What's the best way to trap for possible error on the dynamic INSERT statement ?
An earlier dynamic INSERT to a different table in the same database does work, so it's...
July 21, 2016 at 9:26 am
All the "@SQL_CMD" are INSERT statements.
The process is for a simple utility for users. They enter some parameters such as Job#, State, and search string. The Stored Procedure does...
July 21, 2016 at 8:56 am
The stored procedure takes input parameters from a user,
truncates a work table,
runs 3-4 queries to re-populate the work table.
Then I want to select 3 columns of data from that...
June 28, 2016 at 1:26 pm
Viewing 15 posts - 421 through 435 (of 2,900 total)