Viewing 15 posts - 1,621 through 1,635 (of 2,647 total)
Matt Miller (#4) (2/20/2012)
So - no record is returned since you can't join to a record that doesn't match the join (at least not as is).
EDIT: Isn't that the point...
February 20, 2012 at 12:31 pm
Jeff Moden (2/20/2012)
February 20, 2012 at 12:19 pm
Try this:
create table #my_test (myval varchar(300))
go
declare @sql nvarchar(max)
declare @parmdef nvarchar(25)
DECLARE @param nvarchar(300)
SET @sql = 'INSERT INTO #my_test (myval) VALUES(@value)'
SET @parmdef = N'@value varchar(300)'
SET @param = 'test string'
select @sql
EXEC sp_executesql @sql,@parmdef,@value...
February 20, 2012 at 11:52 am
the set {1, 1, 2} = set {1, 2}, because the repeating "1" is the same as a single "1".
Eh... Kind of? That is if the elements of the...
February 20, 2012 at 11:04 am
SQL Kiwi (2/20/2012)
SQLKnowItAll (2/20/2012)
February 20, 2012 at 10:21 am
SQL Kiwi (2/20/2012)
February 20, 2012 at 10:06 am
S. Kusen (2/20/2012)
SQLKnowItAll (2/20/2012)
S. Kusen (2/20/2012)
Whoops- Let me edit that.. Sorry for the confusion..Was that a pasting error or was that the cause of your update issue? 🙂
LOL- Wasn't the...
February 20, 2012 at 9:41 am
patrickmcginnis59 (2/20/2012)
SQLKnowItAll (2/20/2012)
select
A,
B,
...
February 20, 2012 at 9:35 am
I agree its a matter of taste.
It's not a matter of taste. It is that A * B AS C is not the same as A * ...
February 20, 2012 at 9:25 am
S. Kusen (2/20/2012)
Whoops- Let me edit that.. Sorry for the confusion..
Was that a pasting error or was that the cause of your update issue? 🙂
February 20, 2012 at 9:20 am
patrickmcginnis59 (2/20/2012)
SQLKnowItAll (2/20/2012)
patrickmcginnis59 (2/20/2012)
SQLKnowItAll (2/20/2012)
patrickmcginnis59 (2/20/2012)
Now try to...
February 20, 2012 at 8:54 am
It should not be an issue if you have the proper indexes. I would think that there should be one on Region, Division, Group. If your data is in that...
February 20, 2012 at 8:42 am
Look at the difference between this:
and (case
when CHARINDEX('\', dpi.instancename, 1) = 0 then dpi.instancename
when CHARINDEX('\', dpi.instancename, 1)...
February 20, 2012 at 8:38 am
Are you sure this is what you want in your update?
SELECT SUBSTRING('SERVERNAME\NAMEDINSTANCE', 1, CHARINDEX('\', 'SERVERNAME\NAMEDINSTANCE', 1) - 1)
Because this gives the server name in the case of a named instance...
February 20, 2012 at 8:34 am
Viewing 15 posts - 1,621 through 1,635 (of 2,647 total)