Viewing 15 posts - 14,701 through 14,715 (of 15,381 total)
Something like this?
Update users
Set deleted = '1'
from users u
join UserStatus us on u.username = us.username
where us.status = 'inactive'
May 13, 2011 at 10:15 am
Presumably you want to send this to the front end? What language? This is usually pretty simple.
May 13, 2011 at 10:10 am
Is this a one time thing??? I created a script several years ago to do just this sort of thing but it is 100% **cough** cursor **cough** based. It was...
May 13, 2011 at 10:00 am
This is because there is no record where name = '(''Name1'',''Name2'')'
You can't use a single variable like that. You will have to split this variable first. You should check out...
May 12, 2011 at 1:31 pm
If we do your homework for you, you don't learn anything. You need to at the very least try this yourself.
May 12, 2011 at 8:16 am
This is the same as your previous post. Please direct all replies here
May 12, 2011 at 8:13 am
The access form would still be the front end. You would change the forms to use sql server instead of access as the db.
May 12, 2011 at 7:14 am
If you want help figuring it out post some ddl and some sample data and we can give it a whirl.
May 12, 2011 at 7:06 am
So there is a field in each record of the Journal table that tells you which table name to join to?? This is what I have been suspecting all along....
May 11, 2011 at 1:16 pm
I tried the following code before and it works fine except that I need to supply the @jtName variable dynamically inline the query.
DECLARE @jtName nvarchar(max);
DECLARE @qry nvarchar(max);
SET @jtName = '0c183530-9a0b-447b-8bf5-ac5b2ed36231';
SET...
May 11, 2011 at 1:01 pm
I suspect that dynamic sql is the only way you are going to have a chance. If you can post some ddl and sample data along with desired output we...
May 11, 2011 at 11:04 am
ilker.cikrikcili (5/11/2011)
arun.sirpal (5/11/2011)
cant you use nvarchar(max) meaning maximum storage size is 2^31-1 bytes?NVARCHAR(MAX) works. Thank you!
Glad you found a working solution. 😀
May 11, 2011 at 10:10 am
This sounds like a really strange requirement. Do you have a column in your first table that tells you which table the additional information is stored? Are you planning on...
May 11, 2011 at 8:31 am
Please don't create new posts to continue a topic. it just fragments discussions and makes it harder for other to learn from the solution. As you stated please direct all...
May 11, 2011 at 8:20 am
You know all the people who answer question on these forums are volunteers. You provided little of the information needed for someone to be able to help you. You have...
May 11, 2011 at 8:11 am
Viewing 15 posts - 14,701 through 14,715 (of 15,381 total)