Viewing 15 posts - 10,411 through 10,425 (of 13,461 total)
Elliot kick *** giving us the sample data to test with!
don't know how close it is to the original posters, but i got similar results whether i choose t1.ZipCode or...
October 19, 2009 at 7:59 pm
an index scan is not really a bad thing; much better than a table scan.
I think it depends on the selectivity of the index in question as to whether you...
October 19, 2009 at 7:10 pm
ok I was playing with this today and found that i somehow broke the code for an computed columns;
I fixed and tested the solution, and here we go again:
October 19, 2009 at 12:48 pm
ahh;
thanks Dave; That got me jump started so i could make a 1-to-many table that i was fishing for.
Thank you again!
October 19, 2009 at 7:58 am
the default trace only shows DDL statements...create table/proc/alter/drop, for example.
you need a separate trace running for DML statments like select/insert/update/delete.
log reader like apex is the way to go here.
October 16, 2009 at 3:52 pm
i may be wrong, but i thought a linked server only allows DML (data manipulation and no DDL; you can't create a temp table, nor use the "SELECT... INTO NewTable...FROM"...
October 16, 2009 at 11:57 am
Elliot thanks, I'm looking at it now, if i get it to work i'll add another version;
sarodude, thanks! i had it working, then was trying to find the right column...
October 14, 2009 at 3:58 pm
the trick is to use the datediff and date add functions
for example here's how to find the first day of "this" quarter, ,and the previous 4 quarters based on today:
--First...
October 14, 2009 at 12:17 pm
i've got a couple of questions related to the same issue.
what is the definition of "Recent Posts>>Posts Added Today"
i just replyed to a post from 5 days ago, and it...
October 14, 2009 at 11:53 am
glad i could help sam; let me know if this wroks out for you.
October 14, 2009 at 11:46 am
you posted in a SQL 2005 forum, so you got 2005-specific examples.
it's not object_name that is stopping your script...it's sys.columns:
SELECT OBJECT_NAME(id) from syscolumns where name ='ORDERID'
will work in 2000
October 14, 2009 at 8:23 am
John Paul-702936 (10/14/2009)
Thanks ..If you don't mind .. Can you tell me
Script to List of the Objects that uses a Specific Column name
aain, you'd use one...
October 14, 2009 at 8:12 am
all objects are in the system view sys.objects
so you'd simply do SELECT * FROM sys.objects where name like'%BIZ%' for example.
October 14, 2009 at 7:58 am
Nathan thanks for the feedback; having a different pair of eyes helps so much shaking down a proc like this.
#2 and #3 on the list of the things you identified...
October 13, 2009 at 4:55 pm
davidlcrooks (10/13/2009)
I have a view with some data.
I want to create an empty table with the same structure...
October 13, 2009 at 8:53 am
Viewing 15 posts - 10,411 through 10,425 (of 13,461 total)