Viewing 15 posts - 211 through 225 (of 251 total)
OK, so is it the service that executes/needs to execute the command?
If so, then if your service uses a domain account and that domain account uses a "trusted" connection to the...
March 24, 2006 at 11:48 am
Take a look at this:
Describes how tom impersonate another account, programmatically.
March 24, 2006 at 7:28 am
Have you profiled the application? You said it's ADO.NET, are you certain that it's the execution of the query that's the problem or is it something else? For example, is...
February 23, 2006 at 7:05 am
Do you have any control over the schema? That is, can you change it or redesign it so that you've got multiple tables instead of everything glommed into a single table?...
February 7, 2006 at 6:57 am
Yes, you should be able to do that, but with a table of 100 million records I'm not sure how well it'll perform. Check out the ROW_NUMBER() function. In conjunction...
February 2, 2006 at 7:28 am
RETURN is supposed to be used with a value of type INT. It appears to misbehave when you use a resultset as the return value, which is what my example...
October 11, 2005 at 7:59 am
OK, here's what I was talking about:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=14697&p=2
Try this stored proc:
CREATE PROCEDURE dbo.StoredProcedure1 AS
Print 'Here 1'
RETURN
(Select Count(*) from INFORMATION_SCHEMA.COLUMNS)
Print 'Here 2'
RETURN
(Select Count(*) from INFORMATION_SCHEMA.TABLES...
October 11, 2005 at 7:23 am
OK, there's no wink character in SQL Server, you'll have to use a closing paren. Sorry about that.
October 11, 2005 at 7:11 am
Isn't there a problem in SQL Server where, in a stored proc, SQL statements that follow a RETURN will get executed anyway? Not sure if this is the case, but...
October 11, 2005 at 7:08 am
Check out SQLDTS.COM, they've got a listing of files that need to be installed to get DTS to work on its own.
http://www.sqldts.com/default.aspx?225
Doubt that these files are freely distributable, so...
October 7, 2005 at 7:18 am
OK, I'm goign to stop double-teaming now.
September 29, 2005 at 7:23 am
WRT your original example, what if I set the value of valueForParam to the following?
NULL; DROP PROCEDURE usp_Test;
?
Naturally, that assumes I have priviliges to do a DROP PROCEDURE, but it...
September 29, 2005 at 7:21 am
Whoa, bad idea. You're opening yourself up for a SQL injection attact with that code.
September 29, 2005 at 7:15 am
Don't know if it's related to the problem or even if it's a problem, but you appear to be missing the parameter for the proc's return value (which is parameter zero)....
June 23, 2005 at 7:45 am
No problem, glad to help. BTW, googling for "XPath tutorial" turns up some pretty good links (but an awful lot of them). This is one I've used that's fairly decent,...
June 17, 2005 at 12:06 pm
Viewing 15 posts - 211 through 225 (of 251 total)