Viewing 15 posts - 421 through 435 (of 2,897 total)
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
I believe I have the state code worked out. Thanks for all the help.
Now working on the lack of results.
The records selected in the stored procedure's SELECT JOB, STATE...
June 28, 2016 at 11:08 am
Smendle (6/27/2016)
homebrew01 (6/27/2016)
If I select just sate CA, I get...
June 28, 2016 at 7:58 am
BUT ....... Now RS seems to handle the parameters in a select list differently if there's 1 chosen or multiples.
If I select just sate CA, I get good results...
June 27, 2016 at 2:50 pm
Viewing 15 posts - 421 through 435 (of 2,897 total)