Viewing 15 posts - 12,511 through 12,525 (of 13,460 total)
sent you a PM, as we might be getting sidetracked in ASP code vs SQL for the forum. I hate posting huge volumes of code and examples which might side...
Lowell
August 14, 2007 at 12:07 pm
<script> tags are for client side usage, whereas stuff inside <% %> would be executed at the server.
the connection does not exist on the clientn side of course.
if your form...
Lowell
August 14, 2007 at 8:33 am
damn I learned something new again. thanks Jeff;
Here's some crappy sample code; you'd probably want to convert to int in order to store the data:
declare @IP varchar(20)
SET @IP = '192.168.1.65'
select...
Lowell
August 14, 2007 at 8:12 am
As Jeff and Sergiy have identified, your data type is doinked. you should have either kept the full IP address, or converted it to an int or big int.
how do...
Lowell
August 13, 2007 at 8:02 pm
can you change your procedure to have the WITH RECOMPILE option in it? that would force it to build a new execution plan, and might fix the issue.
Lowell
August 13, 2007 at 8:39 am
you could keep it scalar by doing something like this:
select ID, dbo.functionName (name) from table where id=1
Lowell
August 10, 2007 at 3:56 pm
did you update statistics?(see BOL "sp_autostats")
As I stated before, long running queries are often a result of bad statistics.
two servers, even with the same data, can have different statistics (and...
Lowell
August 10, 2007 at 9:51 am
yeah this is a common scenario in smaller shops as they get bigger....Jeff's suggestions are right on; you'll upset the apple cart so to speak , as the developers must...
Lowell
August 10, 2007 at 7:10 am
I think the update is a little deeper, you name your views just like I do with "vw_" preceeding it,and that makes me think you need to take look a...
Lowell
August 10, 2007 at 6:42 am
it looks like you are actually updating a view, rather than directly accessing the underlying tables:
UPDATE vw_CostPriceUpdate_Update
SET Cost =[UK Cost]
if you do sp_helptext vw_CostPriceUpdate_Update, i bet the...
Lowell
August 9, 2007 at 1:01 pm
this is a prototype example, because your field names, as welll as other manditory (NOT NULL) columns are not mentioned here.
you want to be able to insert a note from...
Lowell
August 7, 2007 at 2:53 pm
the script below will get you started; the core table you are looking for is sysforeignkeys
typical results:
| CONSTRAINTNAME | REFTABLE | REFCOLUMN | FKTABLE |
Lowell
August 7, 2007 at 11:28 am
here's how i would do it, there's probably a better way:
[edited after posting: Mike Howell beat me to it...same solution i think]
CREATE TABLE #TEST(
SERVER_NAME VARCHAR(30),
DATABASE_NAME VARCHAR(30),
DBSIZE INT)
INSERT INTO #TEST(SERVER_NAME, DATABASE_NAME, ...
Lowell
August 7, 2007 at 11:11 am
speaking form the standpoint of a bit of experience, too many times I've encountered a situation where dates or partial dates were entered into say, a varchar field, It caused...
Lowell
August 7, 2007 at 10:04 am
you have to group by the case statment in this situation..it's wordy, but that's how it works...only in the ORDER BY clause can you reference by alias, so it's like...
Lowell
August 7, 2007 at 9:56 am
Viewing 15 posts - 12,511 through 12,525 (of 13,460 total)