Viewing 15 posts - 1 through 15 (of 74 total)
FYI,
I figured out lots of things in my code.
I have created proper indexes in my tables which has reduced the execution time.
BTW,Isn't there a way to delete own...
March 6, 2009 at 6:28 am
Sorry for delay.
I have attached two files. One has schema of all the tables used
& second one contains the SQL query which is body of sproc
March 5, 2009 at 10:33 am
Its really long code .. approx 400 lines.
I was hoping to get some tips & tricks .. best practices when using temp tables in sproc
March 5, 2009 at 9:43 am
Yes. That's exactly what I am want to do.
But I don't know if its possible..
btw, I used cursor to do the work. But if its possible with SSIS, I would...
February 12, 2009 at 8:42 am
Sorry to bother u again... but i didn't get it clearly.
Can you explain it a bit more ...
I assume it has to start with creating user variable...using it in ConnectionString...
February 3, 2009 at 10:55 am
Ok... so, I assume once I have datareader rights .. I shd be able to do select from..
Correct?
January 30, 2009 at 9:09 am
I got it.
using sys.columns... precision & scale... it can be determined.
select
object_name(c.object_id) "Table Name"
,c.name "Column Name"
,s.name "Column Type"
,c.precision
,c.scale
from sys.columns c
join sys.systypes s
on (s.xtype = c.system_type_id)
where
object_name(c.object_id) in...
January 30, 2009 at 8:19 am
Thanks!
I figured it out.
Using substring & concatenating them did the trick for me.
Thanks to both of you for your inputs..
January 26, 2009 at 2:38 pm
ok. gotcha!
Thanks for quick reply.
My guess was right....
Btw, is it possible to test this behavior? I couldn't figure how to do it. 🙁
I created a excel sheet with such names.....
January 9, 2009 at 12:24 pm
All servers are SQL server 2005.
Data set isn't large.. 18000 rows approx.
I didn't get this:
what query is run?
January 9, 2009 at 9:31 am
Thanks to both of you. Through your responses, i was able to do it. 🙂
December 17, 2008 at 7:58 pm
yeah.
Mostly, its addition. Deletions are very rare. well... i can't recall any delete actions. Actually, we don't remove codes which are not in use.. they are just kept...
December 16, 2008 at 1:37 pm
no, the lookup values aren't totally replaced each year. Rather, they stay pretty much the same. There can be an addition or deletion from the table.
December 16, 2008 at 1:04 pm
I think you are correct. I can add unique contraint on main table for columns forming composite PK and create an identity column as PK. Same way, I can work...
December 15, 2008 at 9:28 am
Thanks for your time and effort. This explains your idea and makes sense to me.
However, I think my problem is bit different. My main table has composite primary key. Though,...
December 15, 2008 at 8:59 am
Viewing 15 posts - 1 through 15 (of 74 total)