Viewing 15 posts - 46 through 60 (of 147 total)
I partially agree with everyone on the auditing.
I actually do both. I want to be able to know who inserted the record as well as who last updated it...
September 7, 2016 at 2:16 pm
That looks pretty much what I am looking for.
As has been said the design is incorrect. The actual tables are correct. I was just trying to get a...
September 7, 2016 at 10:33 am
That explains it.
Thanks,
Tom
March 3, 2016 at 11:57 am
Actually the 3rd filter I was using was:
%[PD].%
So all three were:
exec sp_reset_connection
%PD.%
%[PD].%
I think it has something to do with the [].
If I take the "[" out it works fine and...
March 2, 2016 at 3:56 pm
I didn't know there was a return value for isnull.
In most of the samples on line that is not even mentioned. But I did see a few that talked...
January 30, 2016 at 12:57 pm
That was it.
Not sure why I didn't see that.
Thanks,
Tom
January 29, 2016 at 2:02 pm
I am running on SSMS 2012 version 11.0.3000.0.
January 21, 2016 at 12:07 pm
They all look pretty good and solve my problem.
Thanks a lot.
Tom
November 3, 2015 at 2:37 am
Serg,
That also works for my ALL question.
Serg and twin.devil,
I was looking at both solutions as I am not sure which I will need until tomorrow.
They both help out...
November 3, 2015 at 1:19 am
Ok.
The same table and split function as above.
The following Insert statements.
INSERT CSVTest(Name, States) Values('Joe','CA,FL,HI')
INSERT CSVTest(Name, States) Values('Mark','FL,MI')
INSERT CSVTest(Name, States) Values('Greg','MI,AR,AL')
INSERT CSVTest(Name, States) Values('Mary','AL')
INSERT CSVTest(Name, States) Values('Frank','AL,AR,WI')
Select @stemp = 'AR,AL'
This should...
November 3, 2015 at 1:06 am
This gives me any row that has any of the states in the @stemp variable.
Can the query be changed to give back only rows that have ALL the states in...
November 3, 2015 at 12:05 am
I agree on the design. Unfortunately, this isn't my design and I am working with someone else's database.
Your solution works except that it will not filter out duplicates?
select @stemp...
November 2, 2015 at 11:39 pm
So sp_executesql doesn't care what the parameters are - just that you have the same types in the same order as in the query.
So even if you use the same...
September 28, 2015 at 2:52 pm
In your solution, was there a reason you changed the order of the WHEN clauses or does it matter.
It didn't seem to in my solution after I added the converts.
Thanks
May 16, 2015 at 2:59 pm
Viewing 15 posts - 46 through 60 (of 147 total)