Viewing 15 posts - 466 through 480 (of 698 total)
What might be an option for you though, is to wrap your function call into a stored procedure. Have the stored procedure run the function, and have the stored proc...
July 11, 2011 at 11:12 am
Damn. Well, tried creating a single index with all foreign keys in it, and that didn't work. Although in retrospect, I suppose that makes sense - if I do a...
July 11, 2011 at 11:02 am
Ninja's_RGR'us (7/11/2011)
GilaMonster (7/11/2011)
Back to the original question though, short of better...
July 11, 2011 at 9:55 am
I'd like to dig your head a bit more on this topic if possible GilaMonster,
The basic query which I'm using against this table structure is always set up as follows:
SELECT
t1.ID,
t1.Field,
t2.Field,
t3.Field,
t4.Field
FROM...
July 11, 2011 at 9:54 am
Oh! Of course. Hadn't really thought about it at all like that, but it makes much more sense. It hadn't really clicked because in this situation we're looking at JOIN...
July 11, 2011 at 9:24 am
Backups are currently being made to an off-machine drive - that was one of the first things that I did. The transaction logs use SIMPLE as their type.
July 11, 2011 at 9:02 am
Unfortunately it doesn't really help, GilaMonster.
I understand that in a situation in which I had a query that did a WHERE clause against all 10 columns, having a single index...
July 11, 2011 at 8:59 am
I'm curious, why is it that using UNION instead of OR makes for performance increases? For most situations like this, the query optimiser is usually smart enough to do the...
July 11, 2011 at 8:42 am
Well, the individual indexes on the 10 columns in question are all required, as any query against this table can be made with any one of the columns as the...
July 11, 2011 at 8:36 am
IMO your best bet would be to just try researching your particular solution's needs, instead of trying to find a book on the topic.
Though you should probably try to avoid...
July 11, 2011 at 7:44 am
your best bet is to write a stored procedure from SQL Server, and then execute that stored procedure in VB.NET. It is *much* better to have all your SQL code...
July 11, 2011 at 6:42 am
you basically thinking something along the lines of
INSERT INTO TABLE1 (Columns)
OUTPUT INSERTED.ID INTO #TempTable
SELECT FROM InputRecordSet
INSERT INTO TABLE2 (Columns)
SELECT ID FROM...
July 8, 2011 at 8:11 am
That is true. Didn't think of that. A better solution would probably be to just encase the entire thing in a stored procedure, and then have the stored procedure contain...
July 8, 2011 at 7:58 am
The XML solution is the better of the choices, if you're going to be dealing with a large string. I remember one application I was developing was to build sitemaps...
July 8, 2011 at 7:43 am
IDENT_CURRENT could have the same problem - if another record is inserted into that same table from another process, you could end up with the wrong ID value.
July 8, 2011 at 7:30 am
Viewing 15 posts - 466 through 480 (of 698 total)