Viewing 15 posts - 166 through 180 (of 224 total)
Rups (6/2/2010)
Why Can't you just use:
update xxx set account_nbr = '00' + account_nbr
update xxx set au_entity = '00' + au_entity
I didn't see that Rups had replied. You can do the...
June 3, 2010 at 1:16 am
Hey, I cannot really understand why you have to do all these. Try the following query and check if it gives you the desired result.
update XXX set account_nbr = '00'...
June 3, 2010 at 1:12 am
🙂 Didn't see the other responses. Good to find multiple people responding so fast though.
- arjun
May 26, 2010 at 4:39 am
You gotta use left outer join
SELECT TT.ID, CASE TT.ID WHEN -1 THEN 'NOVALUE' ELSE T.IdName END IDNAME ,VALUE1
FROM #tmpTran TT
left outer join #TMP T
on T.ID = TT.ID
-...
May 26, 2010 at 4:36 am
Thanks a lot Stefan. I didn't know about the update scenario.
- arjun
May 19, 2010 at 1:37 am
A couple of good resources on parameter sniffing -
http://elegantcode.com/2008/05/17/sql-parameter-sniffing-and-what-to-do-about-it/
http://blogs.msdn.com/queryoptteam/archive/2006/03/31/565991.aspx
- arjun
May 18, 2010 at 3:25 am
noelconroy15 (5/17/2010)
I am scoping a development for a vendor developed application. Historically the reports for this system (SQL Server Reporting Services) simply displayed values from a table in our...
May 18, 2010 at 3:09 am
Jacob, how would he use sp_msforeachdb. He wants to execute the statement for a particular DB.
Can you explain?
-arjun
May 12, 2010 at 11:18 pm
with that in mind, here is how you would use xp_cmdshell to call the program and get it's results in a table...you'd then need to parse the results.
create table #Results...
May 12, 2010 at 6:14 am
Well it sounds greek to me Raju. Someone who has better exposure will help you soon. Stick around.
- arjun
May 12, 2010 at 5:02 am
Your requirement somehow sounds very weird - Passing the database name as a parameter!
If you do not want to 'hard-code' DB name, you can use synonyms.
You can read more...
May 12, 2010 at 4:01 am
Do you mean version? Please be more specific in your questions. Otherwise you will find that your questions remain unanswered for a long time.
If you mean version, use the following...
May 12, 2010 at 3:52 am
Is this what you need?
----
----
where
((SELECT Value FROM Parameters WHERE Parameter = 'Export') = 'all')
or (id in (SELECT ID FROM LIST))
- arjun
May 11, 2010 at 3:02 am
Mushana, read this article. It describes how to solve your problem.
http://www.sqlservercentral.com/articles/APPLY/69953/
- arjun
May 11, 2010 at 2:53 am
Viewing 15 posts - 166 through 180 (of 224 total)