Viewing 15 posts - 151 through 165 (of 1,957 total)
Eric M Russell (10/7/2015)
mister.magoo (10/6/2015)
select MBT.refID,
hashbytes('MD5',(select MBT.* from (values(null))foo(bar)...
October 7, 2015 at 7:23 am
IMHO trying to use XML to format this is more trouble than it's worth.
A bit of VARCHAR works nicely though.
CREATE TABLE #Temp
(
[Column A] VARCHAR(10),
[Column B] VARCHAR(5),
[Column C] VARCHAR(10)
)
INSERT INTO #Temp...
October 6, 2015 at 5:11 pm
I don't know whether your setup would suit this, but how about converting to xml , then using hashbytes?
select MBT.refID,
hashbytes('MD5',(select MBT.* from (values(null))foo(bar) for xml auto)) as...
October 6, 2015 at 4:34 pm
It gets even more problematic if CustID can be/is updated, then Scott's trigger won't work either, as the join between INSERTED and DELETED will not return the rows for the...
October 5, 2015 at 5:02 pm
jared.smith (10/4/2015)
It works fine if both filters do not look up a data set for their available values. If one...
October 4, 2015 at 5:31 pm
I don't think there is any way to restrict the options in the drop down, but if you are happy to just make it not export for the other options,...
October 2, 2015 at 5:21 pm
This works, but may not look the way you want...
Create your two parameters and allow both to have blank or null values.
Create a Dataset, with this Query:
select case when nullif(@p1,'')...
October 1, 2015 at 6:13 pm
And another answer comes out as x=4 and y=13.
Also, not great for performance, but shows a different technique.
/* Puzzle from SSC
http://www.sqlservercentral.com/Forums/Topic1723602-391-1.aspx
The beautiful problem:
...
September 28, 2015 at 5:35 pm
Perhaps if you provide some sample data and the output required we could help, but as it is, the title doesn't really help.
All I can offer so far is that...
September 28, 2015 at 1:16 pm
Are these connection timeouts or query timeouts?
September 25, 2015 at 11:49 am
One thing that is easy to fix is the WHERE clause from the last remote query, the one in this section:
-------------------------Warehouse Adjustments and AM Pickups 5/29/2014 Sue Klotz
You have this:
WHERE...
September 24, 2015 at 4:28 pm
mceventphoto (9/24/2015)
Thanks for the suggestions. I checked permissions and everything is okay there. Collation is the same on old and new server, include the column collations. Local DB...
September 24, 2015 at 10:28 am
select ID
FROM #table
group by ID
having count(distinct value)>1;
Oops misread the requirement
select base.ID,base.value
from #table base
join (
select grp.ID
FROM #table grp
group by grp.ID
having count(distinct grp.value)>1
) mto -- More Than One
on mto.ID = base.ID;
September 24, 2015 at 7:44 am
Assuming you have the properties of the Linked Server matched on the old and new servers, it could be down to...
1. Permissions - the login that is used to access...
September 23, 2015 at 4:30 pm
jameslauf (9/23/2015)
I want individual LineitemNumbers per each InvoiceId.
so I cna have Invoice#97865 with LineItemNumbers 1,2,3.
right now I...
September 23, 2015 at 3:26 pm
Viewing 15 posts - 151 through 165 (of 1,957 total)