Viewing 15 posts - 76 through 90 (of 121 total)
it would look like
WHERE '+ ' [' + @FieldName + '] '+ ' = ' + Char(39) + @SearchText + Char(39)
September 22, 2011 at 5:28 am
above solution will work or u can just add '[' and closing brackets ']' just before and after your column name variable.
September 22, 2011 at 5:27 am
another way to do that is to use openrowset or openquery function.
for more details you can follow these links
September 22, 2011 at 5:13 am
my problem is in 2005 server the same query is taking less time compare to 2008 server and the time difference is around 10 min. indexes are same in both,...
September 22, 2011 at 2:46 am
if you update all columns from table2 to table1 u can use merge,(for more u can check BOL) or if u want to update a set of columns then u...
September 21, 2011 at 10:45 pm
I think u can do it though a rank funtion, rank it via as per your indid,
if u wanna to get help post your ddl and some sample data properly.
if...
September 21, 2011 at 10:33 pm
you can do it through an outer join.
it might look like
update emp1 set emp1.col1=emp2.col1,emp1.col2=emp2.col2
from emp2 left join emp1 on emp2.id=emp1.id
September 21, 2011 at 10:24 pm
thats grt, i will check it once for sure, as i use redgate sql prompt i found it very net and clean product for sql formatter, but the only pain...
September 21, 2011 at 12:32 am
Is there any way to do it from sql server logs.
no i don't have any, its a development database so we don't take backup at regular basis.
September 19, 2011 at 3:32 am
i think that one, where u r stucking, just start it once and try it should work, i also have faced the same problem. i have done the same it...
September 9, 2011 at 9:52 am
once u set up sql server in remote machine u will be able to access it but following condition has to be met.
1) go to configuration manager and enable tcp/ip.
2)...
September 9, 2011 at 3:13 am
It will work u just need to change something
UPDATE Community
Set NetworkLogin = 'c' + cast(id as varchar(255))
FROM Community c INNER JOIN
Constituencies cn ON c.ID = cn.ID
WHERE cn.ConstitCode = @PC
in join...
September 9, 2011 at 1:23 am
specially lowell, i will try to manipulate the code u have given to me.
September 7, 2011 at 7:31 am
thanks all,
for your replies.
September 7, 2011 at 7:30 am
thanks all,
as per sean, i am thinking to come up with a solution that at the time of saving the datetime i have to save the offset of it with...
September 7, 2011 at 1:05 am
Viewing 15 posts - 76 through 90 (of 121 total)