Viewing 15 posts - 14,506 through 14,520 (of 15,381 total)
Just a thought about triggers. Make sure you build your logic so that it can handle more than 1 record. In other words you want to join to the inserted...
June 21, 2011 at 1:04 pm
No, in an update you "inserted" (the new values) and "deleted" (the current values). That make sense?
June 21, 2011 at 1:02 pm
Yes you can use the "inserted" table.
select * from inserted
This will be the same structure as your table but will be the new values. In a delete trigger you have...
June 21, 2011 at 12:31 pm
Thanks Matt. I knew I had seen a way to do that somewhere in my past but couldn't think of it for the life of me.
June 21, 2011 at 10:32 am
There is probably another way to do this but I have always done that like this.
select '<fields>' +
(
select [Your Field] as field from [Your Table] for xml path ('')
)
+...
June 21, 2011 at 10:10 am
skynet_si (6/20/2011)
I have given you all the info. & data you need.Also,I know the diff. between Access and SQL server sql...
All I am asking is how should the query go.:-)
Well...
June 20, 2011 at 3:24 pm
Well you are attempting to create a multi statement table function but your syntax is that of Inline table valued function. You will have to define the layout of the...
June 20, 2011 at 1:49 pm
skynet_si (6/19/2011)
Did you read the q. ?
Reading the question was the easy part. The hard part was reading your mind. As ColdCoffee asked in the first post we need some...
June 20, 2011 at 6:59 am
skynet_si (6/16/2011)
Since this is used in connection to programming , the way I pass my parameters to the queery :
ADOQuery1.Parameters.ParamByName('a1').asString := lookupcombobox1.text;
etc...
SQL is...
June 17, 2011 at 7:40 am
Well unless you are willing to share you salary we aren't going to do your homework for you. There is plenty of information on this site and across the internet...
June 17, 2011 at 7:17 am
The other big advantage of varchar over char fields is that there is a lot more work on the front end of apps when all the fields are char fields....
June 17, 2011 at 7:15 am
Or you could just add distinct to your select.
select DISTINCT ct.name,cot.id
from tags ct,ct_tags cot,doc_details cds,cont_poperties ccp
where ct.tagid=cot.tag_id and cot.contentid=cds.contentid and cds.contentid=ccp.contentid
June 16, 2011 at 8:12 am
The SQL connection could not possibly know the windows login ID of the person who established a database connection. You will have to do this in your application. You can...
June 16, 2011 at 8:10 am
I'm going to be off site the next couple days with a client. I will try to check back this evening and help if I can. Hopefully somebody else will...
June 16, 2011 at 7:00 am
Glad you found a solution and thanks for posting your final code. Will definitely help others having similar issues down the road.
June 15, 2011 at 2:51 pm
Viewing 15 posts - 14,506 through 14,520 (of 15,381 total)