Viewing 15 posts - 1 through 15 (of 18 total)
Thanks Jeff,
I will consider this:
"If you have the new user execute stored procedures as part of the query that creates an attachment, you might want to create a "db_Executor" role...
March 25, 2017 at 10:27 pm
Hi Jeff,
Thanks for the help. After doing few experiments I managed to fix the issue. The issue wasn't in the mail profile and this is what I have done.
I have...
March 24, 2017 at 12:26 am
I changed the query to like this: (@exclude_query_output = 0)
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'TestMailProfile',
@recipients = '<valid_email>',
@subject = 'Email Attachement Check',
@body = 'Sample Body...
March 23, 2017 at 9:37 pm
There's a workaround for this issue.
1. Close all the SSMS enviorenments.
2. Open the registry editor and locate the key '\HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\Find'.
3. Change the value of 'HitReplaced' to...
April 11, 2012 at 10:39 am
Cadavre (2/9/2012)
manjuke (2/9/2012)
DECLARE @xml AS XML = (
SELECT @id AS '@id',@name AS '@name',@onclick AS '@onclick',(
SELECT TOP 100 PERCENT A.* FROM(
SELECT '0' AS '@value',...
February 9, 2012 at 9:25 am
Well you could try something like this..
DECLARE @xml AS XML = (
SELECT @id AS '@id',@name AS '@name',@onclick AS '@onclick',(
SELECT TOP 100 PERCENT A.* FROM(
SELECT '0' AS '@value', NULL AS...
February 9, 2012 at 8:31 am
Hi Paul,
It would have been nicer if you could provide some sample data and the schema of your table. Anyway looking at your select query I created a sample table....
February 8, 2012 at 7:59 pm
Hi,
You can use the dense_rank to get the desired results. Please check the following sample..
--===== Create Sample Data ======
declare @sample as table(
InvoiceIDint,
ClientIDvarchar(1),
ProviderID varchar(1)
)
insert into @sample (InvoiceID, ClientID, ProviderID)
select 100,'a','e' union
select...
February 6, 2012 at 1:11 am
Hi,
Please provide the following information in order to provide a better solution.
1. Does the value which represent the letter is same for the column only ?
2. According to the Sample...
February 5, 2012 at 11:08 pm
meelan (1/20/2012)
January 20, 2012 at 7:44 am
Hi,
This may not be the best way, but you can do something like this :
--Populate Test Data
declare @OrderMissing as table(
KeyNoteint,
Qtyint
)
insert into @OrderMissing (KeyNote, Qty)
select 1234,3 union
select 1235,23 union
select 1783,5
declare @OrderHeaderMissing...
January 17, 2012 at 6:36 pm
Hi,
This is possible using the SQL MERGE. You can do something like this :
--Test Data
declare @SampleTable as table(
Account varchar(10)
,Organization varchar(20)
,Period varchar(2)
,[Year] int
,Amount money
)
insert into @SampleTable
...
January 17, 2012 at 1:00 am
Anyway assuming you have the following table structures I have done 2 samples. One using pivot and another without using pivot.
--Sample Tables
declare @address as table(
id int
,[address] varchar(100)
,postcode int
)
declare @billing as...
January 11, 2012 at 7:41 pm
Hi,
Will you be able to provide the structures of your source tables ?
January 11, 2012 at 6:57 pm
Well then as 'Lutz' mentioned, you can do it using the PIVOT. Please see the code below. I took the sample code that Lutz had mentioned in his post.
declare @table1...
January 10, 2012 at 8:49 am
Viewing 15 posts - 1 through 15 (of 18 total)