Viewing 15 posts - 871 through 885 (of 9,641 total)
The only way to do this is to compare the value in that column between the inserted and deleted tables. Here's how I'd do it:
INSERT INTO [dbName].[dbo].[log_table]
...
July 17, 2014 at 8:13 am
SQLRNNR (7/17/2014)
Eirikur Eiriksson (7/16/2014)
Jack Corbett (7/16/2014)
Eirikur Eiriksson (7/16/2014)
July 17, 2014 at 7:54 am
Eirikur Eiriksson (7/16/2014)
No implied either, my respect on handling the situation! So far, JC is the only one that has managed to rub me the wrong way:-D😎
Hmmm, I hope I'm...
July 16, 2014 at 2:00 pm
Jason Selburg (7/16/2014)
Not saying that my approach is better, but you should always try different methods to see which performs better in your environment. ** just good practice IMHO.
I'm pretty...
July 16, 2014 at 1:46 pm
For the error in mine you just need to replace the max_policy_status_v_id to i because I aliased the CTE in the FROM clause.
July 16, 2014 at 1:31 pm
Jason Selburg (7/16/2014)
I'd also recommend coming up with another way to identify the data_set_nbr. That is what...
July 16, 2014 at 1:10 pm
T-SQL beginnger (7/16/2014)
Basically the reason for creating this view is to get the latest version of policy since there are a lot of of policies in...
July 16, 2014 at 12:57 pm
Can you provide the requirements of view? Something like:
"Return the Policy information for active policies based on the most recent status of the policy."
I know that isn't right, but...
July 16, 2014 at 12:29 pm
Stefan Krzywicki (7/16/2014)
I posted a question here (http://www.sqlservercentral.com/Forums/Topic1593226-391-1.aspx) on Memory Grants and Varchar(max) and I'd love to hear any opinions the people in this thread might have.
For some reason when...
July 16, 2014 at 12:13 pm
You don't. There really isn't way I know of to do what you are trying to do. You could look into BIML, but even then you need metadata...
July 16, 2014 at 10:42 am
As HanShi said, there really isn't one query (I suppose you could write one) that would get all that for you. I recommend you look at SQL Power Doc[/url]...
July 16, 2014 at 10:39 am
You need to work with a rows groups, http://msdn.microsoft.com/en-us/library/dd255263(v=sql.110).aspx.
Your "header" group would group on product (and any other fields you would include on the header) and in the group properties...
July 16, 2014 at 10:33 am
As far as I'm concerned your vendor hasn't provided any evidence for making any changes on your server.
Are you experiencing performance issues and how do you know? ...
July 16, 2014 at 10:28 am
SQLRNNR (7/16/2014)
The Dixie Flatline (7/15/2014)
Sometimes I think MVPs are a real pain in the ***. Present company excepted.I agree
I wouldn't except present company all the time.
July 16, 2014 at 8:49 am
Steve Jones - SSC Editor (7/16/2014)
GilaMonster (7/16/2014)
Jeff Moden (7/15/2014)
To be honest, I'm glad this person is taking such caution and has such FUD about it.
I would be, if he...
July 16, 2014 at 8:48 am
Viewing 15 posts - 871 through 885 (of 9,641 total)