Viewing 15 posts - 61 through 75 (of 137 total)
Can you give me the exact example? The row number is arbitrary depending on how you sort so this seems like an odd thing to do. I have...
Darren
May 6, 2003 at 3:32 pm
Is the 100 to 150 a field that you can reference in your table or are you talking simply row numbers? If you have a field just create a...
Darren
May 6, 2003 at 2:53 pm
To find objects with name > 30:
select *
from sysobjects where len(name) > 30
and name not like 'sp_%' --eliminates system procs as long as u dont use sp_
to find columns >...
Darren
May 6, 2003 at 2:47 pm
Take a look at BOL on the topic "OPENROWSET". I think this is what you are referring to. Ad hoc queries on different servers.
Darren
Darren
May 2, 2003 at 11:17 am
Do you have the user name field on each table that you need to filter? If so, you could use a stored procedure that passes in that username when...
Darren
May 2, 2003 at 11:12 am
I'm not sure about the nesting you are using? You simply select and then subselect with no qualification? What is this query supposed to do or is it...
Darren
May 2, 2003 at 11:07 am
Also, right after you insert into that table the last IDENTITY created is stored in @@IDENTITY variable. You could use that as a return value from your insert proc.
Darren
Darren
May 2, 2003 at 11:00 am
Also, is the update changing a field in the primary key? That could cause the dup insert.
Darren
Darren
May 1, 2003 at 10:11 am
I would do an IF EXISTS on the primary key before you do the insert.
Darren
Darren
May 1, 2003 at 10:09 am
Try setting a trace event (sp_trace_setevent)
using the column_id = 18 which shows the CPU time. Would that help?
Darren
Darren
May 1, 2003 at 9:51 am
Could you paste the chunk of vb code that is rolling back, I need to see in order to understand this scenario.
Darren
Darren
May 1, 2003 at 8:32 am
Did you try sp_who2 to see what is running?
Darren
Darren
May 1, 2003 at 8:17 am
Try something like this.
select b.* from syscomments a, syscolumns b where
a.id = object_id('YourStoredProcName) and a.id = b.id
Darren
Darren
May 1, 2003 at 7:21 am
The front end will have to change in that you will have to specify a new connection string to the SQL Server. That is if you are using ADO....
Darren
April 30, 2003 at 12:03 pm
Do a sp_helpindex on your table. The "index_keys" column will have a (-) next to the column that is descending, otherwise it will show nothing if ascending.
Darren
Darren
April 30, 2003 at 11:08 am
Viewing 15 posts - 61 through 75 (of 137 total)