Viewing 15 posts - 4,846 through 4,860 (of 7,187 total)
Beware - this will bite you if any row you are updating (call it table1) has more than one match in the table you are updating from (table2). You...
December 16, 2011 at 4:22 am
Marco V (12/16/2011)
anyways his typo in the alter loginALTER USER ram WITH LOGIN = ram
Yes indeed. It was an error in the code that I posted, but I...
December 16, 2011 at 4:11 am
Marco V (12/16/2011)
if you now check the properties of the user on the database it will have his login mapped now
What, even though there were 0 users fixed? My...
December 16, 2011 at 3:59 am
EXEC sp_change_users_login 'Auto_Fix', 'user'
That syntax is deprecated and you should avoid using it where possible.
i tries this
ALTER USER [ram] WITH LOGIN [ram]
but it giving following error :-
Msg 102, Level...
December 16, 2011 at 3:43 am
You need to go into each database and use the ALTER USER command on each user that is affected, in order to associate it with the login on the new...
December 16, 2011 at 3:18 am
I don't think you can use that syntax. You could try sp_executesql with an output parameter.
John
December 15, 2011 at 9:21 am
Lowell (12/15/2011)
the WHERE statement looks correct to me:
1. it's checking one specific table
2. finding only the columns that are lower cased
3. findinf only...
December 15, 2011 at 8:38 am
It needs to come immediately after the predicate to which you want it to apply. Try swapping the order of the AND lines.
John
December 15, 2011 at 8:30 am
Use the COLLATE clause, like Lowell showed you.
John
December 15, 2011 at 8:21 am
I'm guessing your database has a case-sensitive collation. Look at the name of the table you created, and look at the name of the table you're trying to insert...
December 15, 2011 at 7:18 am
Eric
How did you create the table?
John
December 15, 2011 at 7:12 am
It's not an elegant way of doing it, but you could schedule your job to run every 45 minutes starting at midnight, and include an initial step to check that...
December 15, 2011 at 4:55 am
Please will you post your table DDL in the form of a CREATE TABLE statement, some sample data in the form of INSERT statements, and, given that sample data, the...
December 14, 2011 at 6:21 am
Try building your ALTER_TABLE statement as a @sql variable. Then you can PRINT @sql as well as EXEC (@sql). If any of the statements fail to add the...
December 14, 2011 at 6:16 am
Parameter name is Param1 for the first parameter, Param2 for the second, and so on.
John
December 13, 2011 at 9:08 am
Viewing 15 posts - 4,846 through 4,860 (of 7,187 total)