Viewing 15 posts - 181 through 195 (of 429 total)
How about this:
SELECT REPLACE(CustomerName,'*NA','')
That will remove all instances of '*NA' within CustomerName.
Would that work for you, or is there a chance that the string '*NA' will show up...
December 6, 2013 at 1:00 pm
Hmm, I wonder if the confusion comes from the 'replacement' section:
None.
ANSI_NULLS, ANSI_PADDING and CONCAT_NULLS_YIELDS_NULL will always be set to ON. SET OFFSETS will be unavailable.
I assume that indicates the state...
November 19, 2013 at 7:54 am
For one-off stuff I do for myself, I cheat and use sp_Send_DBMail to create a tab delimited file named like it is an Excel spreadsheet.
DECLARE @Delimiter Char(1)
SET @Delimiter...
November 18, 2013 at 12:49 pm
I suppose you could change your procedure to have local variables, and then try to add logic that would guess which parameters get mapped to which local variables based on...
November 12, 2013 at 10:13 am
You can include Nulls for the two parameters not being used when you call it.
If that's not possible either, then I think you'll need to write another stored procedure as...
November 12, 2013 at 10:09 am
You can call the procedure like this:
exec [dbo].[GetPerson] @RecordNumber = '123', @ActiveOnly = 1, @ActiveDate = '10/10/2013'
November 12, 2013 at 9:32 am
If you are going to go to all the trouble of rewriting the logic to use a table, I'm not sure why you'd want to wrap it back up in...
November 11, 2013 at 6:30 am
It seems like your issue is that there is an additional 'test' condition, that overrides the other conditions?
You could forget the 'or' logic and include all iterations including the test...
November 8, 2013 at 10:47 am
You'll probably have to post actual sample tables/data/queries for anyone to help you with this, but try something like this:
SELECT *
FROM tables and joins
WHERE clauses, ...
AND Ssn IN
(
SELECT Ssn
FROM tables...
November 7, 2013 at 7:40 am
You could also set the database to single user mode (with immediate rollback).
This will kick everyone but you off of the database, and keep other people out until you set...
November 7, 2013 at 7:31 am
No problem, glad I could help. 🙂
November 6, 2013 at 7:21 am
The results returned over a linked server to Active Directory are limited to somewhere around 1000 if memory serves me. Anything more than that and you will get an...
November 5, 2013 at 1:29 pm
If this is an error notification, you probably don't need anything particularly fancy for the html formatting.
I suggest ditching the temp table and the query in the sp_send_dbmail call, and...
November 5, 2013 at 1:05 pm
Are you looking for a query that will list all of the scheduled jobs that contain an SSIS step?
SELECT
Job.Name AS Job_Name,
Step.Step_ID AS Step_Number,
Step.Step_Name,
Step.Command AS Step_Command
FROM
MSDB.dbo.SysJobs Job
JOIN
MSDB.dbo.SysJobSteps Step
ON...
November 5, 2013 at 12:07 pm
Hmm, sorry I don't know then.
Can you confirm that the catch block is firing?
October 28, 2013 at 9:51 am
Viewing 15 posts - 181 through 195 (of 429 total)